Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 4.3.0 testing! (part 2)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Wed Sep 17, 2008 10:17 pm    Post subject: Reply with quote

If you scroll up a bit, you'll see devsk's step by step instructions.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
ultimA
n00b
n00b


Joined: 17 Sep 2008
Posts: 4

PostPosted: Wed Sep 17, 2008 10:33 pm    Post subject: Reply with quote

Sorry, I'm really starting to feel dumb, but I still don't get it. That sequence of console instructions, although clear in a way, seem illogical to me:

#Untar patches for 4.3.1
tar xjpf /usr/portage/distfiles/gcc-4.3.1-patches-1.1.tar.bz2
cd patch

#Remove a patch
\rm 75_all_gcc43-pr36533.patch
cd ..

#Retar for 4.3.2
tar cjpf /usr/portage/distfiles/gcc-4.3.2-patches-1.1.tar.bz2 patch/

That would mean, remove a patch from version 4.3.1, so that it can become version 4.3.2? What am I missing? Wouldn't I need to add more patches instead of just removing?

Thanks in advance.
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Thu Sep 18, 2008 12:27 am    Post subject: Reply with quote

Nope, just remove that patch and all is fine.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
pdw_hu
Apprentice
Apprentice


Joined: 02 Jun 2008
Posts: 200
Location: Budapest, Hungary

PostPosted: Thu Sep 25, 2008 6:45 pm    Post subject: Reply with quote

Could someone tell me what the gtk USE flag does for gcc?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Sep 25, 2008 7:06 pm    Post subject: Reply with quote

pdw_hu wrote:
Could someone tell me what the gtk USE flag does for gcc?


it provides some kind of graphical interface for gcj (have a deeper look at the ebuild, there you'll see that the gtk useflag is dependent on the gcj useflag)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
pdw_hu
Apprentice
Apprentice


Joined: 02 Jun 2008
Posts: 200
Location: Budapest, Hungary

PostPosted: Thu Sep 25, 2008 7:08 pm    Post subject: Reply with quote

kernelOfTruth wrote:
pdw_hu wrote:
Could someone tell me what the gtk USE flag does for gcc?


it provides some kind of graphical interface for gcj (have a deeper look at the ebuild, there you'll see that the gtk useflag is dependent on the gcj useflag)


Thanks. Didn't check the ebuild, only equery uses.
Back to top
View user's profile Send private message
Xake
Guru
Guru


Joined: 11 Feb 2004
Posts: 588
Location: Göteborg, the rainy part of scandinavia

PostPosted: Fri Sep 26, 2008 3:21 pm    Post subject: Reply with quote

pdw_hu wrote:
Could someone tell me what the gtk USE flag does for gcc?


Quote:
--enable-java-awt=PEER(S)
Specifies the AWT peer library or libraries to build alongside `libgcj'. If this option is unspecified or disabled, AWT will be non-functional. Current valid values are gtk and xlib. Multiple libraries should be separated by a comma (i.e. --enable-java-awt=gtk,xlib).
(from http://gcc.gnu.org/install/configure.html)
Back to top
View user's profile Send private message
callx
n00b
n00b


Joined: 06 Jul 2006
Posts: 28
Location: Toronto, Canada

PostPosted: Thu Oct 02, 2008 3:02 am    Post subject: Reply with quote

I was using GCC 4.3 with cflags="-O2 -march=amdfam10 -pipe" on an x86_64 box and never really had any issue. But now, I'm building an x86 box and seems like I can't rebuild gcc with -march=amdfam10. Had to fall back to cflags="-O2 -march=k8 -msse3 -pipe".. :cry: Does anyone know if the amdfam10 is x86_64 only?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Oct 02, 2008 4:17 am    Post subject: Reply with quote

callx wrote:
I'm building an x86 box and seems like I can't rebuild gcc with -march=amdfam10.

What was the error message ?
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2843

PostPosted: Thu Oct 02, 2008 8:03 am    Post subject: Reply with quote

Try with march=native
Back to top
View user's profile Send private message
reavertm
Developer
Developer


Joined: 05 Feb 2004
Posts: 264
Location: Wrocław

PostPosted: Fri Oct 03, 2008 6:01 pm    Post subject: Reply with quote

Anyone else experienced broken (segfaulting) xorg-server when built with gcc-4.3.1 on amd64 box with -ftree-vectorize? Well, stay away.
_________________
Maciek
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Oct 03, 2008 6:31 pm    Post subject: Reply with quote

reavertm wrote:
Anyone else experienced broken (segfaulting) xorg-server when built with gcc-4.3.1 on amd64 box with -ftree-vectorize? Well, stay away.


are you using hardened compiler ? if yes, then you need to fix your toolchain, since I encountered something similar (march=core2) with xorg-server

fixing == using the ebuilds and patches, etc. from the hardened / toolchain overlay Xake/zorry provide

alternatively

try gcc-4.3.2 :idea:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
reavertm
Developer
Developer


Joined: 05 Feb 2004
Posts: 264
Location: Wrocław

PostPosted: Fri Oct 03, 2008 8:45 pm    Post subject: Reply with quote

kernelOfTruth wrote:
are you using hardened compiler ? if yes, then you need to fix your toolchain, since I encountered something similar (march=core2) with xorg-server

fixing == using the ebuilds and patches, etc. from the hardened / toolchain overlay Xake/zorry provide

alternatively
try gcc-4.3.2 :idea:


Well, maybe I'll try 4.3.2 but I'm rather pursuing less experimental/breaking setup.
Thx, no I'm not using hardened - I'm using rather stable (non keyworded) installation with some exceptions (portage - because of kde4 EAPI-2, gcc-4.3.1 from portage due to ecj/gcj compiler, glibc - required by gcc-4.3, X-git because of ati gfx card and kde4) and rather safe CFLAGS ("-march=nocona -O2 -pipe -msse3").

I've tried -ftree-vectorize just for fun (I recompiled @system and it's working) and only X surprised me with 100/100 segfaults during kde4 session start. Disabling only this flag helped - so if gcc-4.3.1 is going to enter stable in portage without more patches, -ftree-vectorize should be filtered out for xorg-server at least - and that's for sure.
_________________
Maciek
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Oct 04, 2008 11:53 pm    Post subject: Reply with quote

reavertm wrote:
Anyone else experienced broken (segfaulting) xorg-server when built with gcc-4.3.1 ...

Not me, but some other people have.
They say it is fixed in gcc-4.3.2
https://bugs.gentoo.org/show_bug.cgi?id=227311
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37101
Back to top
View user's profile Send private message
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Sun Oct 05, 2008 12:02 am    Post subject: Reply with quote

Gcc-4.3.2 is in the tree :)
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Oct 11, 2008 11:03 pm    Post subject: Reply with quote

Hi learned friends,

I've come back to trying to complete this 4.3.2 world rebuild.

I also have X segging out but I have not been able to rebuild some packages yet. I regard getting that fixed as a prerequisite for debugging the X problem.

My principal worry is gtk+ is still crapping me about pango. Pango is there and has been rebuild several times. I can't see why the precompile test is failing.
Code:

checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking X11/extensions/XShm.h... yes
checking Pango flags... -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1   -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 
configure: error:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org

!!! Please attach the following file when seeking support:
!!! /usr/portage/tmp/portage/x11-libs/gtk+-2.14.3-r2/work/gtk+-2.14.3/config.log
 *
 * ERROR: x11-libs/gtk+-2.14.3-r2 failed.


Any ideas?

Thx.
8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Oct 11, 2008 11:48 pm    Post subject: Reply with quote

Code:
/usr/lib/opengl/nvidia/lib/libGL.so.1: undefined reference to `_nv000188gl'
/usr/lib/opengl/nvidia/lib/libGL.so.1: undefined reference to `_nv000698gl'
/usr/lib/opengl/nvidia/lib/libGL.so.1: undefined reference to `_nv000756gl'
/usr/lib/opengl/nvidia/lib/libGL.so.1: undefined reference to `_nv000711gl'
/usr/lib/opengl/nvidia/lib/libGL.so.1: undefined reference to `_nv000798gl'
/usr/lib/opengl/nvidia/lib/libGL.so.1: undefined reference to `_nv001244gl'
/usr/lib/opengl/nvidia/lib/libGL.so.1: undefined reference to `_nv000738gl'
/usr/lib/opengl/nvidia/lib/libGL.so.1: undefined reference to `_nv000621gl'
/usr/lib/opengl/nvidia/lib/libGL.so.1: undefined reference to `_nv000251gl'
collect2: ld returned 1 exit status
make[2]: *** [test-gksu] Error 1
make[2]: Leaving directory `/usr/portage/tmp/portage/x11-libs/libgksu-2.0.5/work/libgksu-2.0.5/libgksu'


also this prob with libgksu , there's a shit load of these missing definitions.

just rebuild nvidia-drivers-1.0.9626 to be sure. Older hardware locks be back to this version.

Oddly this is not a problem on my 4.2 built root partition.

Is this some new strictness throwing an error that was previously ignored?

TIA 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
piwacet
Guru
Guru


Joined: 30 Dec 2004
Posts: 486

PostPosted: Thu Oct 23, 2008 5:38 pm    Post subject: Reply with quote

Well hog-tie me and call me a drunkin skunk.

I emerged system and world in a chroot to see how it would go using gcc 4.3.2 and glibc-2.8_p20080602, and was able to do almost all 652 packages from stable. I only had to bump a handful of packages to testing branch:

=sys-libs/gpm-1.20.4 ~amd64
=net-misc/netkit-rsh-0.17-r9 ~amd64
=sys-auth/consolekit-0.2.10 ~amd64
=x11-libs/qt-4.3.4-r1 ~amd64
=dev-libs/boost-1.35.0-r2 ~amd64
=dev-util/boost-build-1.35.0-r1 ~amd64
=dev-util/kbuild-0.1.4 ~amd64
=dev-util/monotone-0.39 ~amd64
=media-libs/libcaca-0.99_beta13 ~amd64

Virtualbox also said it doesn't like gcc 4.3, so it would have to be compiled with an earlier compiler.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1701
Location: Poland => Lodz

PostPosted: Thu Oct 23, 2008 6:26 pm    Post subject: Reply with quote

How far away are we from a stable 4.3 gcc? It's been ~ for quite a while and some packages form overlays won't build without it, so I thought that you might tell me something encouraging :)
Back to top
View user's profile Send private message
reavertm
Developer
Developer


Joined: 05 Feb 2004
Posts: 264
Location: Wrocław

PostPosted: Thu Oct 23, 2008 9:59 pm    Post subject: Reply with quote

I've emerged 4.3.2 the day it appeared in Portage, emerged @system on amd64 (non keyworded with some exceptions), @X-git on the same machine, kde (4.1.2 from portage) on the same machine, @system on ~x86 (virtualbox) and no problems so far.

And as opposite to 4.3.1 - -ftree-vectorize is safe and working on my 4.3.2 (amd64)
_________________
Maciek
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Thu Oct 23, 2008 11:43 pm    Post subject: Reply with quote

szczerb wrote:
How far away are we from a stable 4.3 gcc? It's been ~ for quite a while and some packages form overlays won't build without it, so I thought that you might tell me something encouraging :)


quite a while?? It only got into the tree as unstable at the begining of the month.

IMHO it will be a while before anyone wants to call it stable.

BTW I have found some of my issues were package related. The pango crap was due to DirectFB , tho' hell knows why or how.

Once I have my main partition rebuilt with 4.2.3 I may give this version another go.

I think any posts can go into portage & prog forum now. This is not longer unsupported.

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Schwinni
Apprentice
Apprentice


Joined: 02 Sep 2004
Posts: 214
Location: quadrant1.earth. germany.wuerzburg

PostPosted: Fri Oct 24, 2008 7:41 am    Post subject: Reply with quote

I have one question about "march=native".

Will it make any difference if I use "-march=native -O2 -pipe" or "-march=native -O2 -pipe -fomit-frame-pointer" on x86?

I ask, because when looking at the safe cflags @ Gentoo Wiki, I see that (when using march=<cputype>) -fomit-frame-pointer is regarded as a safe cflag for 32bit.
When using march=native it is recommended to leave the -fomit-frame-pointer away for 32bit also - well that's not actually said there, but it isn't said to use it:

Quote:
If you are using gcc-4.2.0 or newer (and do not intend to create packages to be run on other machines), it is easiest and probably best to just use -march=native, which tells GCC to automatically detect the settings it should use for your specific machine.

E.g.:

32-bit

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"

vs.
Quote:
Intel Core Solo/Duo, Pentium Dual-Core T20xx/T21xx

vendor_id : GenuineIntel
cpu family : 6
model : 14, 22
model name : Genuine Intel(R) CPU TXXXX @ XXXGHz
model name : Intel(R) Celeron(R) CPU 220 @ 1.20GHz
model name : Intel(R) Celeron(R) CPU 4X0 @ XXXGHz

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"


Best regards
Chris
Back to top
View user's profile Send private message
chrisstankevitz
Guru
Guru


Joined: 14 Dec 2003
Posts: 472
Location: Santa Barbara, CA, USA

PostPosted: Fri Oct 31, 2008 8:58 pm    Post subject: Reply with quote

Hi,

1. How do I build my system with GCC 4.3 (or at least see what doesn't build and start helping solve problems)? Just unmask, upgrade, and go? Presumably that won't work.

1a. Is it possible to build certain packages with GCC 4.3

2. Approximately how long until GCC 4.3 is stable? More than 2 years? (I imagine it's a big deal)

3. Is there a list of packages that don't work with GCC 4.3? I found the gcc 4.3 tracker bug.

4. How do the package managers at ubuntu deal with all the packages that do not build on GCC 4.3? Do they compile some packages with gcc 4.2 and others with 4.3?

Thanks,

Chris
Back to top
View user's profile Send private message
Schwinni
Apprentice
Apprentice


Joined: 02 Sep 2004
Posts: 214
Location: quadrant1.earth. germany.wuerzburg

PostPosted: Sat Nov 01, 2008 12:20 am    Post subject: Reply with quote

chrisstankevitz wrote:
1. How do I build my system with GCC 4.3 (or at least see what doesn't build and start helping solve problems)? Just unmask, upgrade, and go? Presumably that won't work.

The "normal" way is:
1. unmask gcc-4.3.2, then:
2. emerge --sync
3. emerge -uDN @world
4. revdep-rebuild
5. gcc-config <nr-of-gcc-4.3.2-in-the-list>
6. emerge -e @system
7. emerge -e @world
8. emerge --unmerge <youroldgccversion>

My (more risky) way is to do step 8 after step 4. ;)

Quote:
1a. Is it possible to build certain packages with GCC 4.3

Yes, just switch gcc with gcc-config before.

Quote:
3. Is there a list of packages that don't work with GCC 4.3? I found the gcc 4.3 tracker bug.

I know that pdftk doesn't compile with gcc > 4.2.x
Everything else compiles for me (Gnome with Firefox, Thunderbird, Openoffice, several Java versions, Inkscape, Gimp, and some more), but I am using ~arch anyway.
So it could be that some packages from the stable tree won't compile.

Quote:
4. How do the package managers at ubuntu deal with all the packages that do not build on GCC 4.3? Do they compile some packages with gcc 4.2 and others with 4.3?

Probably, but ask them! ;)

Best regards
Chris
Back to top
View user's profile Send private message
reavertm
Developer
Developer


Joined: 05 Feb 2004
Posts: 264
Location: Wrocław

PostPosted: Sat Nov 01, 2008 2:00 am    Post subject: Reply with quote

4.3 incompatibilities are just 'missing' include files, and it's not gcc-itself but rather glibc-2.8 "issue" (dependency of gcc-4.3 in gentoo) - so to fix this it's necessary to add some #include definitions. some possible issues with __gnu_cxx namespace (classes from this namespace - like hash_map - will generate backward compatibility warning and it may fail for packages with -Werr). There are packages that explicitly don't work with gcc compiler 4.3 - like virtualbox-ose. It may take some time before all these issues are resolved in most portage packages, and only this would allow 4.3 'stabilization'.
_________________
Maciek
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum