View previous topic :: View next topic |
Author |
Message |
trapni Retired Dev

Joined: 16 May 2002 Posts: 251 Location: Germany/Berlin
|
Posted: Thu May 23, 2002 1:13 pm Post subject: Argh! lots of ebuild packages can't be compiled using gcc 3. |
|
|
Hi all.
I recently updated to the gcc3 make profile and updated to gcc-3.1-r1 with optimizations as follows: -march=athlon -mcpu=athlon -O3.
Now I tried to recompile the world with these new compiler and its new optimization features.
compiling gcc3 works fine with -march=i686, then I recompiled them using the options mentiond at first.
A simple `emerge --emptytree world` doesn't work since I noticed that the emerge breaks at the perl ebuild. ("No rule to make target <build-in> ..."). Hm... Then I emerged every little dirty package by hand (86) and noticed that the following packages doesn't compile too ! *argh!*
Code: | `emerge file` breaks with
lots of compile errors at file readelf.c
`emerge glibc` breaks with
"sed: couldn't write 69 items to {standard output}: Broken pipe
stdout: Broken pipe" |
Argh! I do really hope that this is an ebuild or package error rather than gcc3 issue, so I just need to wait for its new ebuild/package release.
Did anyone notice the same or even can help me out how to recompile at least glibc with gcc3 and the new C[XX]FLAGS?
Many many thanks,
Christian Parpart. |
|
Back to top |
|
 |
Guest Guest
|
Posted: Thu May 23, 2002 2:34 pm Post subject: |
|
|
Why are you using both -march and -mcpu? They are somewhat contradictory options. March is for compiling code only for a specific CPU type whereas mcpu optimizes for a specific type but the code still runs on other CPU's. Try using just -march. |
|
Back to top |
|
 |
trapni Retired Dev

Joined: 16 May 2002 Posts: 251 Location: Germany/Berlin
|
Posted: Thu May 23, 2002 3:17 pm Post subject: |
|
|
Guest wrote: | Why are you using both -march and -mcpu? They are somewhat contradictory options. March is for compiling code only for a specific CPU type whereas mcpu optimizes for a specific type but the code still runs on other CPU's. Try using just -march. |
Okay, that's what I noticed then too.
Now it is more specific to my computer
Code: |
C[XX]FLAGS=-march=athlon-mp -m3dnow -msse -mmmx -mfpmath=sse -O3 -pipe
|
Well, but this didn't raise the compiler errors (unfortunately)...
Regards,
Christian Parpart |
|
Back to top |
|
 |
Guest
|
Posted: Fri May 24, 2002 9:53 am Post subject: |
|
|
Take a look at the mailing list archives. The problem (with fix) is mentioned there. |
|
Back to top |
|
 |
Klavs Guru


Joined: 22 May 2002 Posts: 536 Location: Denmark
|
Posted: Fri May 24, 2002 11:57 am Post subject: |
|
|
Do you happen to have a link to the gcc fix you are talking about?
does it have anything with what I suggest here (last post)?
https://forums.gentoo.org/viewtopic.php?t=2902 _________________ Best regards,
Klavs Klavsen
Denmark
Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38. |
|
Back to top |
|
 |
Guest
|
Posted: Fri May 24, 2002 4:18 pm Post subject: |
|
|
I think you have to unmask a newer perl version. |
|
Back to top |
|
 |
Klavs Guru


Joined: 22 May 2002 Posts: 536 Location: Denmark
|
Posted: Fri May 24, 2002 5:45 pm Post subject: |
|
|
Sorry if I'm stupid here, but how does that fix a glibc compile problem?
did you read the link I mentioned? according to that link (of a page that no longer resides where google found it) there is a glibc compile bug in gcc-3.1 which is fixed in CVS. My thought was that if one downloaded gcc from CVS, things might compile..? _________________ Best regards,
Klavs Klavsen
Denmark
Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38. |
|
Back to top |
|
 |
Guest
|
Posted: Fri May 24, 2002 11:07 pm Post subject: |
|
|
Klavs wrote: | Sorry if I'm stupid here, but how does that fix a glibc compile problem?
did you read the link I mentioned? according to that link (of a page that no longer resides where google found it) there is a glibc compile bug in gcc-3.1 which is fixed in CVS. My thought was that if one downloaded gcc from CVS, things might compile..? |
i got glibc to compile with gcc-3.1, however I couldnt compile mozilla, galeon, X, and quite a few other things I use -march=athlon -m3dnow |
|
Back to top |
|
 |
Klavs Guru


Joined: 22 May 2002 Posts: 536 Location: Denmark
|
Posted: Sat May 25, 2002 12:56 pm Post subject: |
|
|
Which means we will have to wait a bit, until we can "harvest" the 15-20% improvement gcc-3.1 incl. profiling has over gcc-2.95.. I hope it happens soon.. would be very cool.. _________________ Best regards,
Klavs Klavsen
Denmark
Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38. |
|
Back to top |
|
 |
trapni Retired Dev

Joined: 16 May 2002 Posts: 251 Location: Germany/Berlin
|
Posted: Sat May 25, 2002 8:00 pm Post subject: Works mostly now, except ..... at least perl |
|
|
Anonymous wrote: | Klavs wrote: | Sorry if I'm stupid here, but how does that fix a glibc compile problem?
did you read the link I mentioned? according to that link (of a page that no longer resides where google found it) there is a glibc compile bug in gcc-3.1 which is fixed in CVS. My thought was that if one downloaded gcc from CVS, things might compile..? |
i got glibc to compile with gcc-3.1, however I couldnt compile mozilla, galeon, X, and quite a few other things I use -march=athlon -m3dnow |
Well, glibc compiles now on my box too. I restarted from scratch using the default-1.0-gcc3 profile and the specific C[XX]FLAGS as mentioned above.
I unfortunately hat to fix some syntax errors in recent ncurses-5.2-20020511 snapshot by hand. That's not the problem at all:
I want a working gcc3.1 compiled perl and exactly this breaks as of an Makefile error I didn't find out right now.
The error message is still as follows:
Code: | No rule to make target <build-in> in perl.o |
Please, please, please... does anyone know how to fix that bug by hand? - or even someone who can pretent that this bug will be fixed soon by .ebuild?
Thanks,
Christian. |
|
Back to top |
|
 |
rac Bodhisattva


Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sun Aug 18, 2002 9:37 pm Post subject: |
|
|
From GCC3 to Other Things Gentoo.
EDIT: Moved to P&P, since GCC is a fairly core part of Gentoo/Portage. --pjp _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
 |
|