Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

GCC 4.1.1 and glibc 2.4 stable on x86 and amd64

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
389 posts
  • Page 3 of 16
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 16
  • Next
Author
Message
Headrush
Watchman
Watchman
User avatar
Posts: 5597
Joined: Thu Nov 06, 2003 12:48 am
Location: Bizarro World

  • Quote

Post by Headrush » Thu Aug 31, 2006 4:27 pm

Dominique_71 wrote:
Headrush wrote:Is it safe to assume that the stage tarballs for 2006.1 I see on the mirrors has been compiled with gcc-4.1.1?

Code: Select all

gcc --ver
will show you which version it is.

EDIT: It is gcc-4.1.1
I assume they are, it wouldn't make much sense to mark gcc-4.1.1 and glibc-2.4-r3 stable and release 2006.1 compiled with an older version.
I was just checking to see if the stages were updated as although close, 2006.1 was released final yet.

How does gcc --ver show if the binary packages in a tarball are compiled with a specific version of gcc?
My system is already compiled with the newer versions, I was justing looking for verification for someone else who was waiting on installing.
Top
thorak
n00b
n00b
Posts: 9
Joined: Thu Jul 14, 2005 10:32 pm

  • Quote

Post by thorak » Thu Aug 31, 2006 4:35 pm

I already had gcc-4.1.1 installed, after upgrade to glibc-2.4-r3, gcc no longer works,
emerging libtool I get (On amd64):

checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

config.log says:

configure:2385: x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe conftest.c >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/libc.so: file format not recognized; treating as linker script
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/libc.so:5: syntax error
collect2: ld returned 1 exit status

Any suggestions?
Top
novazur
Guru
Guru
Posts: 461
Joined: Sat Mar 19, 2005 6:59 pm
Location: Martinique

  • Quote

Post by novazur » Thu Aug 31, 2006 4:50 pm

massimo71 wrote:So my question is :
i can abilitate distcc after switch to new gcc for speed up ?
I tried that, but I had an error compiling 6th package (gettext), so I disabled distcc...
Top
rickj
Guru
Guru
User avatar
Posts: 432
Joined: Thu Feb 06, 2003 8:30 pm
Location: Calgary, Alberta, Canada
Contact:
Contact rickj
Website

  • Quote

Post by rickj » Thu Aug 31, 2006 4:57 pm

Hey, this is toooo easy. Following the Guide slavishly, just finished the

Code: Select all

emerge -eav system
and started on the world merge. It'll take a while (827 packages) but no hint of a problem, and I'm running on the system while it upgrades. Did it all with distcc running, on two systems to speed things up. Thanks for all the hard work.

One minor point, not covered in the guide. Wouldn't it be preferable to re-compile the kernel, too, just to have it match the rest of the system?
Top
Gergan Penkov
Veteran
Veteran
User avatar
Posts: 1464
Joined: Sat Jul 17, 2004 9:42 pm
Location: das kleinste Kuhdorf Deutschlands :)

  • Quote

Post by Gergan Penkov » Thu Aug 31, 2006 5:04 pm

rickj wrote:Hey, this is toooo easy. Following the Guide slavishly, just finished the

Code: Select all

emerge -eav system
and started on the world merge. It'll take a while (827 packages) but no hint of a problem, and I'm running on the system while it upgrades. Did it all with distcc running, on two systems to speed things up. Thanks for all the hard work.

One minor point, not covered in the guide. Wouldn't it be preferable to re-compile the kernel, too, just to have it match the rest of the system?
i'm not sure, but I think I've had problems in the past with external modules - I think the rule is to have the kernel and the modules compiled with the same compiler - so if you use only in-tree modules there probably will not be problems with the kernel.
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Top
didumos
Guru
Guru
Posts: 322
Joined: Thu Jan 19, 2006 4:46 pm
Location: uk

  • Quote

Post by didumos » Thu Aug 31, 2006 5:06 pm

rickj wrote:One minor point, not covered in the guide. Wouldn't it be preferable to re-compile the kernel, too, just to have it match the rest of the system?
Definately. In fact, I think someone already asked that question in this thead :wink:

Plus, it is actually discussed under the Common Pitfalls section of the guide.
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Thu Aug 31, 2006 5:10 pm

Smoothhound wrote:
JohnerH wrote:I had a moment of noobishness...

CCACHE.... We have to reset it right?

I seem to recall that after each gcc version upgrade I had to reset it.

Thanks in advance,

J
No you don't have to clear CCACHE, the cached code is indexed by (amongst other things) the timestamp of the complier binary

Edit: typo
I have another question. Will a noatime option in fstab interfere with ccache?
"Confirm You are a robot." - the singularity
Top
rickj
Guru
Guru
User avatar
Posts: 432
Joined: Thu Feb 06, 2003 8:30 pm
Location: Calgary, Alberta, Canada
Contact:
Contact rickj
Website

  • Quote

Post by rickj » Thu Aug 31, 2006 5:22 pm

Thanks, didumos, missed that :oops:

I still think that the kernel compile should be a routine part of the procedure, rather than being left for a fix after some poor boob gets into trouble.

The pitfalls section also recommends disabling distcc. This will work, but it's horribly slow in my case. To use distcc it is only necessary to have completed the first two stages:

Code: Select all

# emerge -uav gcc
# gcc-config i686-pc-linux-gnu-4.1.1
on each host you are distcc-ing to.
Top
drphibes
Guru
Guru
User avatar
Posts: 432
Joined: Tue Nov 30, 2004 3:13 pm

  • Quote

Post by drphibes » Thu Aug 31, 2006 5:29 pm

I am definitely going to burn a backup before moving from gcc 3.4.6 to 4.1 and rebuilding the whole works.
Top
didumos
Guru
Guru
Posts: 322
Joined: Thu Jan 19, 2006 4:46 pm
Location: uk

  • Quote

Post by didumos » Thu Aug 31, 2006 5:37 pm

I totally agree that a suggestion of rebuilding the kernel should be part of the main instructions; I probably wouldn't have realised/remembered that it was necessary if I hadn't read this thread.

Something that I think should also be mentioned in the guide is the requirement to enable the nptl/nptlonly USE flags for the new stable glibc. I know the ebuild will warn if they aren't enabled but it's useful to know before hand so that the system build doesn't need to be restarted. Thanks go to RazielFMX in this thread for that.
Top
dark_knight
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 112
Joined: Sat Apr 22, 2006 8:18 am
Contact:
Contact dark_knight
Website

  • Quote

Post by dark_knight » Thu Aug 31, 2006 6:32 pm

Many people around say that

Code: Select all

emerge -e system
emerge -e world
aren't necessary, because of the ABI not changing between gcc 3.4 and 4.1. Since all the new features (like the nptl one) were introduced in a long period of time, they say, the updates are not too deep to require such recompiles. What do you think about it? Is really necessary to rebuild everything?
You can say that you are a true Gentoo-addicted when you type emerge --update --deep --newuse happiness.
Top
Paapaa
l33t
l33t
User avatar
Posts: 955
Joined: Sun Aug 14, 2005 8:45 am
Location: Finland

  • Quote

Post by Paapaa » Thu Aug 31, 2006 6:36 pm

dark_knight wrote:Many people around say that

Code: Select all

emerge -e system
emerge -e world
aren't necessary, because of the ABI not changing between gcc 3.4 and 4.1.
http://www.gentoo.org/doc/en/gcc-upgrading.xml
Warning: It should be noted that upgrading from GCC-3.4 to GCC-4.1 or greater still requires you to follow the general upgrading instructions, as GCC-3.4 and GCC-4.1 use slightly different ABIs.
slightly different == different
Top
CRV§ADER//KY
Guru
Guru
User avatar
Posts: 405
Joined: Mon Aug 30, 2004 6:47 pm
Location: Torino
Contact:
Contact CRV§ADER//KY
Website

  • Quote

Post by CRV§ADER//KY » Thu Aug 31, 2006 8:20 pm

the guide omits a quite important thing: doing

Code: Select all

USE="-java -X -gtk -tcl -tk -gnome -kde" emerge -e system
emerge -e world
will speed up recompilation A LOT since while rebuilding the toolchain you will skip hundreds of useless packages.

(note: the two commands are on SEPARATE LINES).
Kyrie, Ignis Divine, Eleison ~ Elfen Lied
Top
Paapaa
l33t
l33t
User avatar
Posts: 955
Joined: Sun Aug 14, 2005 8:45 am
Location: Finland

  • Quote

Post by Paapaa » Thu Aug 31, 2006 8:31 pm

CRV§ADER//KY wrote:the guide omits a quite important thing: doing

Code: Select all

USE="-java -X -gtk -tcl -tk -gnome -kde" emerge -e system
emerge -e world
will speed up recompilation A LOT since while rebuilding the toolchain you will skip hundreds of useless packages.

(note: the two commands are on SEPARATE LINES).
I'm repeating myself over and over again, but:

It would be REALLY nice if Portage new the build order itself without users having to wonder what to rebuild and how many times. Portage should have a third group (in addition to system and world) called "toolchain" which is a subset of system which is a subset of world, so that:

1. If you rebuild world: first Portage builds toolchain IN CORRECT ORDER, then the rest of the system files, then the rest of world files. No need to build ANY package more than once.
2. If you rebuild system, it first builds a sane toolchain then the rest of the system files.

I have no idea if this is hard/easy to implement but the need for this seems to be very high.
Top
M@rijn
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 145
Joined: Wed Jan 28, 2004 4:01 pm
Location: Zierikzee (The Netherlands)
Contact:
Contact M@rijn
Website

  • Quote

Post by M@rijn » Thu Aug 31, 2006 8:37 pm

It look likes GCC 4.1.1 loops while installing here, on my AMD X2 4200+ (32-bit installation) it takes 5 hours of compiling now, and it look likes the same checking ..... and compiling stuff is scrolling on the screen, anyone else had the problem?
Gentoo is just an Aston Martin, "Power, beauty and soul"
Top
CRV§ADER//KY
Guru
Guru
User avatar
Posts: 405
Joined: Mon Aug 30, 2004 6:47 pm
Location: Torino
Contact:
Contact CRV§ADER//KY
Website

  • Quote

Post by CRV§ADER//KY » Thu Aug 31, 2006 8:42 pm

Paapaa wrote:It would be REALLY nice if Portage new the build order itself without users having to wonder what to rebuild and how many times. Portage should have a third group (in addition to system and world) called "toolchain" which is a subset of system which is a subset of world, so that:

1. If you rebuild world: first Portage builds toolchain IN CORRECT ORDER, then the rest of the system files, then the rest of world files. No need to build ANY package more than once.
2. If you rebuild system, it first builds a sane toolchain then the rest of the system files.

I have no idea if this is hard/easy to implement but the need for this seems to be very high.
AFAIK, system IS the toolchain. you can't extract a subgroup.

for the same reason, what you're asking is not possible: packages in the toolchain normally require GTK, X, and Java, so you simply can't emerge them completely before the others - unless you're emerging them twice like now.

it would be very useful to have an "emerge toolchain" that emerges system exclusively with the USE flags in the profile and everything else switched off, so that it doesn't have any external dependency.

Another useful addition would be
emerge --toolchain world
which does
1)emerge toolchain
2)emerge -e world, except the packages in system that don't need recompilation since no USE flags had been stripped

analogally,
emerge --toolchain system
would result in a sane stage 3 without having to recompile packages twice when it's not necessary.
Kyrie, Ignis Divine, Eleison ~ Elfen Lied
Top
Paapaa
l33t
l33t
User avatar
Posts: 955
Joined: Sun Aug 14, 2005 8:45 am
Location: Finland

  • Quote

Post by Paapaa » Thu Aug 31, 2006 8:55 pm

CRV§ADER//KY wrote:AFAIK, system IS the toolchain. you can't extract a subgroup.
I think system != toolchain. Toolchain is constituted of glibc, gcc, binutils, linux-headers (anything else crucial?) - a very small subset of system. System has many additional Gentoo core components which are not part of toolchain and they definitely don't have to be built before other packages.
Top
RazielFMX
l33t
l33t
User avatar
Posts: 835
Joined: Sat Apr 23, 2005 6:35 pm
Location: NY, USA

  • Quote

Post by RazielFMX » Thu Aug 31, 2006 9:00 pm

Just to let you all know, it's not in the upgrade guide, but you should probably rebuild your kernel after the emerge -e world. I run an x86_64 system.

emerge -e world failures and fixes for the x86_64
(I will tackle my x86 box next)

xmms-crossfade -> Unmask new version in /etc/portage/package.keywords

x11-libs/fox, and XFE -> unmerge xfe, then run emerge -a --depclean, then, try to remerge. Now, start adding things to your keyworld file... xfe and fox of course, then keep emerge -p xfe until you find all the packages you need to add.

Then you are good to go!
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Top
psic
n00b
n00b
User avatar
Posts: 63
Joined: Sun Dec 11, 2005 7:30 pm
Location: Slovenia
Contact:
Contact psic
Website

  • Quote

Post by psic » Thu Aug 31, 2006 9:07 pm

psic wrote:Hi, weedman, the same thing happened to me, basically, I edited the make.conf, re-emerged gcc, followed all of the steps in the upgrade guide (the gcc-config, the source /etc/profile, etc.), and am now running 'emerge -ev sistem', which is (so far) going well.
A bit of an update: I did the above after changing the CHOST from i386 to i686. The first emerge -ev sistem went well until it came to gcc-4.1, which gave me an 'emake failed with profiledbootstrap' error. I then re-emerged gcc-4.1 (oh, and yes, it is indeed using the gcc-4.1) and am now doing a emerge -e sistem again, though this time I'm going through the packages slowly, about 15 at a time (anyone know it there's something wrong with this? I did emerge -pe sistem and am going through this list). I don't know if I'll try emerge -e gcc again, it takes quite a while and I don't know if it will work or not. Anyways, I hope an emerge world will fix any problems.

Anyone have any ideas about the gcc-4.1? Should I just emerge -e sistem (without gcc) followed by a emerge -e world?
Top
Pajarico
Guru
Guru
User avatar
Posts: 493
Joined: Sat May 01, 2004 5:44 pm
Location: Madrid, España.
Contact:
Contact Pajarico
Website

  • Quote

Post by Pajarico » Thu Aug 31, 2006 9:56 pm

Is there a way to avoid re-emerging binary packages? I have to re-install openoffice-bin, mplayer-bin, realplay, googleearth and acroread; they sum about 200 M. Also it would be cool to be able to skip packages which do not require compiling like scripts, fonts, media... but I guess this is even "more impossible".

EDIT: Also: x86 compatibility libs, java jre's and jdk's, opera...
Gentoo: the only software worth paying that is free.
Top
H-Dragon
Guru
Guru
User avatar
Posts: 547
Joined: Tue Oct 22, 2002 1:04 pm
Contact:
Contact H-Dragon
Website

GCC 4.1 and Glibc 2.4-r3: emerge system compile error

  • Quote

Post by H-Dragon » Thu Aug 31, 2006 10:04 pm

Hi!

I updated to GCC 4.1 following the general upgrade guide. I updated system with the new gcc, but with 10 packages left, it chose to fail on WGET.

Code: Select all

ptimer.o: In function `posix_measure':
ptimer.c:(.text+0x17): undefined reference to `clock_gettime'
ptimer.o: In function `ptimer_new':
ptimer.c:(.text+0xe2): undefined reference to `clock_getres'
collect2: ld gab 1 als Ende-Status zurück
make[1]: *** [wget] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/wget-1.10.2/work/wget-1.10.2/src'
make: *** [src] Fehler 2

!!! ERROR: net-misc/wget-1.10.2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  wget-1.10.2.ebuild, line 45:   Called die
There have been no other errors the whole time.
WEBSITE
Do not meddle with the affairs of Dragons, for you are crunchy and tasty with ketchup!
Top
j79zlr
Apprentice
Apprentice
User avatar
Posts: 235
Joined: Sun Dec 05, 2004 8:44 am
Location: Chicago, IL
Contact:
Contact j79zlr
Website

  • Quote

Post by j79zlr » Thu Aug 31, 2006 10:15 pm

emerge -ev world --resume --skipfirst :D

Let it finish and then try and figure out what went wrong with wget. That shouldn't be a big deal as far as the system not running properly.
Top
rickj
Guru
Guru
User avatar
Posts: 432
Joined: Thu Feb 06, 2003 8:30 pm
Location: Calgary, Alberta, Canada
Contact:
Contact rickj
Website

  • Quote

Post by rickj » Thu Aug 31, 2006 10:27 pm

And, when you really get down to it, re-emerging the kernel sources is a bit of a waste of time too...
Top
orlfman
n00b
n00b
Posts: 68
Joined: Mon Jul 31, 2006 4:12 pm

  • Quote

Post by orlfman » Thu Aug 31, 2006 10:40 pm

Shit. I'm just going to build a new system to be safe. Last time I updated all my packages at once turned into a big mess. This time at least I can have a nice clean system built from scratch.
Orlfman
Top
tld
Veteran
Veteran
Posts: 1889
Joined: Tue Dec 09, 2003 9:35 pm

  • Quote

Post by tld » Thu Aug 31, 2006 10:41 pm

HELP...I need to use the ~x86 version of x11-libs/fox for a 4.1.1 bug fix. It blew up my 'emerge -eav world'.

http://bugs.gentoo.org/show_bug.cgi?id=128917

If I add fox to package.keywords and try resuming that. it still wants to use the one that won't compile (x11-libs/fox-1.2.6-r3). Is there anyway I can do this without loosing the ability to resume?? I'm really far into the world recompile.

Thanks a million for any help.

Tom
Top
Post Reply

389 posts
  • Page 3 of 16
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 16
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic