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 2 of 16
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 16
  • Next
Author
Message
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 11:51 am

(Nevermind)
Last edited by Pajarico on Thu Aug 31, 2006 11:56 am, edited 1 time in total.
Gentoo: the only software worth paying that is free.
Top
Polynomial-C
Retired Dev
Retired Dev
User avatar
Posts: 1432
Joined: Sun Jun 01, 2003 4:19 pm
Location: Germany

  • Quote

Post by Polynomial-C » Thu Aug 31, 2006 11:53 am

Hi,
amne wrote:If you don't but are aware what's possibly going to happen, give it a try. ;)
Yeah, I know what could happen and I won't blame anybody else than myself if something fails. I'm at emerge -e system on two machines right now and everything seems to work.

Cheers
Poly-C
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Top
Polynomial-C
Retired Dev
Retired Dev
User avatar
Posts: 1432
Joined: Sun Jun 01, 2003 4:19 pm
Location: Germany

  • Quote

Post by Polynomial-C » Thu Aug 31, 2006 11:56 am

Pajarico wrote:I did emerge -e system and then world, and many (all?) of the packages of system are being emerged again with world. Is that normal?
yes, it's normal that all packages from system get recompiled in world, too. I think this is even wanted in case of a gcc-upgrade because this way your toolchain should be sane (means everything was compiled with the same set of tools which were compiled with the same compiler).

Cheers
Poly-C
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Top
swimmer
Veteran
Veteran
User avatar
Posts: 1330
Joined: Mon Jul 15, 2002 10:42 am
Location: Netherlands

  • Quote

Post by swimmer » Thu Aug 31, 2006 11:58 am

Barnoid wrote:For those of you who don't want to compile packages more than once run:

Code: Select all

# emerge -pe system | grep "^\[ebuild .*" | colrm 1 16 | sed "s/\[.*//" | sed "s/USE.*//" | sed "s/.*/=\0/" > system.list
# emerge -pe world | grep "^\[ebuild .*" | colrm 1 16 | sed "s/\[.*//" | sed "s/USE.*//" | sed "s/.*/=\0/" | grep -vFf system.list > world.list
# emerge --oneshot --nodeps `cat system.list world.list`
[...]
I'm afraid you forgot

Code: Select all

sed "s/LINGUAS.*//"
in the chain :-/

Amne: does it any harm if you don't compile those packages twice? I mean - it is still a complete 'emerge -e' of system & world ...

Greetz
swimmer
Last edited by swimmer on Thu Aug 31, 2006 12:06 pm, edited 1 time in total.
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 11:59 am

Polynomial-C wrote:
Pajarico wrote:I did emerge -e system and then world, and many (all?) of the packages of system are being emerged again with world. Is that normal?
yes, it's normal that all packages from system get recompiled in world, too. I think this is even wanted in case of a gcc-upgrade because this way your toolchain should be sane (means everything was compiled with the same set of tools which were compiled with the same compiler).

Cheers
Poly-C
Thanks. I had this thread open in a window and didn't update it in a few hours, so I didn't see previous responses about the issue.
Gentoo: the only software worth paying that is free.
Top
Orific
n00b
n00b
Posts: 67
Joined: Fri Oct 14, 2005 2:41 pm

  • Quote

Post by Orific » Thu Aug 31, 2006 12:15 pm

Barnoid wrote:

Code: Select all

# emerge -e system
# emerge -e world
will compile many packages twice which is a complete waste of time.

For those of you who don't want to compile packages more than once run:

Code: Select all

# emerge -pe system | grep "^\[ebuild .*" | colrm 1 16 | sed "s/\[.*//" | sed "s/USE.*//" | sed "s/.*/=\0/" > system.list
# emerge -pe world | grep "^\[ebuild .*" | colrm 1 16 | sed "s/\[.*//" | sed "s/USE.*//" | sed "s/.*/=\0/" | grep -vFf system.list > world.list
# emerge --oneshot --nodeps `cat system.list world.list`
On my desktop, this saves me double compilation of over 100 packages.

Cheers,
Barnoid
It does not work very well for me. It leaves a bracket "]" after the "=" sign:

Code: Select all

# less system.list
=] sys-libs/zlib-1.2.3
=] sys-libs/gpm-1.20.1-r5
=] sys-libs/ncurses-5.5-r2
=] app-shells/bash-3.1_p16
= ] sys-libs/readline-5.1_p4
= ] virtual/libiconv-0
...
Top
Polynomial-C
Retired Dev
Retired Dev
User avatar
Posts: 1432
Joined: Sun Jun 01, 2003 4:19 pm
Location: Germany

  • Quote

Post by Polynomial-C » Thu Aug 31, 2006 12:17 pm

Hi,

woah... I just ran genlop -t gcc and this is the result:

Code: Select all

     Tue Apr 18 13:51:31 2006 >>> sys-devel/gcc-3.4.6-r1
       merge time: 21 minutes and 45 seconds.

     Thu Aug 31 12:18:39 2006 >>> sys-devel/gcc-4.1.1
       merge time: 1 hour, 1 minute and 2 seconds.
So can someone tell me which ${superpowers} gcc-4.1.1 has that requires such an increase in compiletime? ;)

Cheers
Poly-C
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Top
amne
Bodhisattva
Bodhisattva
User avatar
Posts: 6378
Joined: Sun Nov 17, 2002 6:00 pm
Location: Graz / EU

  • Quote

Post by amne » Thu Aug 31, 2006 12:38 pm

swimmer wrote:Amne: does it any harm if you don't compile those packages twice? I mean - it is still a complete 'emerge -e' of system & world ...
No one will be able to tell you for sure, so i'll just link to wolf31o2's post again.
Dinosaur week! (Ok, this thread is so last week)
Top
Orific
n00b
n00b
Posts: 67
Joined: Fri Oct 14, 2005 2:41 pm

  • Quote

Post by Orific » Thu Aug 31, 2006 12:42 pm

Polynomial-C wrote:
Pajarico wrote:I did emerge -e system and then world, and many (all?) of the packages of system are being emerged again with world. Is that normal?
yes, it's normal that all packages from system get recompiled in world, too. I think this is even wanted in case of a gcc-upgrade because this way your toolchain should be sane (means everything was compiled with the same set of tools which were compiled with the same compiler).

Cheers
Poly-C
OK It is good to have a sane toolchain for compiling world, but are the recompilations necessary ?
Top
amne
Bodhisattva
Bodhisattva
User avatar
Posts: 6378
Joined: Sun Nov 17, 2002 6:00 pm
Location: Graz / EU

  • Quote

Post by amne » Thu Aug 31, 2006 1:06 pm

Orific wrote:OK It is good to have a sane toolchain for compiling world, but are the recompilations necessary ?
Yes.
Dinosaur week! (Ok, this thread is so last week)
Top
chrysler
n00b
n00b
User avatar
Posts: 17
Joined: Thu Jun 19, 2003 11:10 am
Location: Berlin/Germany

  • Quote

Post by chrysler » Thu Aug 31, 2006 1:31 pm

is the ebuild using the distcc feature for compiling gcc?
Top
Weedman
n00b
n00b
Posts: 52
Joined: Fri Mar 17, 2006 8:46 am
Location: Tasmania, Australia

  • Quote

Post by Weedman » Thu Aug 31, 2006 1:35 pm

I was soo happy...then All of a sudden:

Code: Select all

glibc-2.4 is nptl-only!
NPTL requires a CHOST of i486 or better
I discover that I need to add the "nptl" and "nptlonly" use flags to make.conf. Fair enough, easy as pie!

But it still bums out. The same error message.

Thanks to google, I discovered that nptl isn't available for systems with the CHOST set below i486. Mines set to i386!

What am I going to do?

Research showed a total recompile was nes. But what are the steps, considering this isn't an everyday "emerge -e world".
Would something like this make sense?

Code: Select all

emerge gcc glibc
emerge -e system
emerge -e world
Is there anything else that I would need to do before or after the "emerge -e"'s?

Thanks,

weed
"Reality is merely an illusion, albeit a very persistent one." - Albert Einstein
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 1:42 pm

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.
Top
amne
Bodhisattva
Bodhisattva
User avatar
Posts: 6378
Joined: Sun Nov 17, 2002 6:00 pm
Location: Graz / EU

  • Quote

Post by amne » Thu Aug 31, 2006 1:44 pm

Weedman wrote:Would something like this make sense?

Code: Select all

emerge gcc glibc
emerge -e system
emerge -e world
Changing CHOST can be a bit troublesome, but i hope/assume that should work fine.
Dinosaur week! (Ok, this thread is so last week)
Top
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 1:47 pm

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?
Top
Weedman
n00b
n00b
Posts: 52
Joined: Fri Mar 17, 2006 8:46 am
Location: Tasmania, Australia

  • Quote

Post by Weedman » Thu Aug 31, 2006 1:55 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.
So you edited the CHOST setting? I just had to clarify that.

In all of my n00bish moments, I am having one right now. The system in question in an AMD Sempron laptop. Should I switch to i686? I am almost certain I should....
amne wrote:Changing CHOST can be a bit troublesome, but i hope/assume that should work fine.
Thanks. This is my first time at doing something like this (as in involved, and serious), even if I have used Gentoo since late last year.

I'll probably leave it compiling overnight. It's 10 to 12 here in Australia.

Thanks for your super quick replys!

weed
"Reality is merely an illusion, albeit a very persistent one." - Albert Einstein
Top
Orific
n00b
n00b
Posts: 67
Joined: Fri Oct 14, 2005 2:41 pm

  • Quote

Post by Orific » Thu Aug 31, 2006 2:13 pm

amne wrote:
Orific wrote:OK It is good to have a sane toolchain for compiling world, but are the recompilations necessary ?
Yes.
OK. But it is frustrating for people with slow machines (like me :( ). Barnoid's idea interested me very much.
amne wrote:Changing CHOST can be a bit troublesome, but i hope/assume that should work fine.
I agree with the troublesome part... I did it once, without problems, but it is better to take a look at this post before.
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 2:27 pm

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
Last edited by Dominique_71 on Thu Aug 31, 2006 3:12 pm, edited 1 time in total.
"Confirm You are a robot." - the singularity
Top
Barnoid
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Fri Jul 30, 2004 2:44 am
Contact:
Contact Barnoid
Website

  • Quote

Post by Barnoid » Thu Aug 31, 2006 2:42 pm

@Orific:
It does not work very well for me. It leaves a bracket "]" after the "=" sign:

Code: Select all

# less system.list
=] sys-libs/zlib-1.2.3
=] sys-libs/gpm-1.20.1-r5
=] sys-libs/ncurses-5.5-r2
=] app-shells/bash-3.1_p16
= ] sys-libs/readline-5.1_p4
= ] virtual/libiconv-0
...
hmm.., then your emerge -p format differs. Simply cut away two more columns (i.e. 'colrm 1 18' instead of 'colrm 1 16'), and you should be fine.
As swimmer pointed out, you should also remove any 'LINGUAS=...' strings, so

Code: Select all

# emerge -pe system | grep "^\[ebuild .*" | colrm 1 16 | sed "s/\[.*//" | sed "s/USE.*//" | sed "s/LINGUAS.*//" | sed "s/.*/=\0/" > system.list
# emerge -pe world | grep "^\[ebuild .*" | colrm 1 16 | sed "s/\[.*//" | sed "s/USE.*//" | sed "s/LINGUAS.*//" | sed "s/.*/=\0/" | grep -vFf system.list > world.list
# emerge --oneshot --nodeps `cat system.list world.list`
(You'll still need to modify the 'colrm')

Be aware that some say not compiling the left-out packages twice is not safe. I hadn't had any problems neither with the gcc 3.3 -> 3.4 nor the 3.4 -> 4.1 transition, though.
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 2:58 pm

this was posted on gentoo-amd64 some time ago, I don't know who the author is, but:

Code: Select all

emerge -ep world|cut -d] -f2|cut -d" " -f2|grep /|sed -e s/^/=/ > pkglst
but as it was stated it is strongly recommended to emerge -e system && emerge -e world and not to take shortcuts, as it ensures that the toolchain is sane, the problem is with the order in which certain packages get emerged from portage and that there are circular dependancies between the toolchain packages (at least in order to enable certain features in them for example).
"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
Smoothhound
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Tue Sep 23, 2003 4:42 pm

  • Quote

Post by Smoothhound » Thu Aug 31, 2006 3:00 pm

For those wondering about the rationale behind the recommendations for redundant system & world rebuilds check out this thread and perhaps use hielvc's excellent emwrap.sh script to get the most stable system with the minimum number of compiles.
Top
JohnerH
Apprentice
Apprentice
User avatar
Posts: 197
Joined: Mon Mar 01, 2004 1:05 pm
Location: Manchester,United Kingdom

  • Quote

Post by JohnerH » Thu Aug 31, 2006 3:12 pm

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
------------------------------------------------------
I think I had a thought once but it Died of Lonelyness...
Top
gian
Apprentice
Apprentice
User avatar
Posts: 212
Joined: Mon Jul 26, 2004 2:35 pm
Location: Europe
Contact:
Contact gian
Website

  • Quote

Post by gian » Thu Aug 31, 2006 3:12 pm

I have a simple and rather direct question: I use a commercial application (whose name I avoid here, and... no, it is not possible to ask them to change their code...) that works only if I
setenv LD_ASSUME_KERNEL 2.4.1
in this case I get

Code: Select all

gian@mir> ldd /..../myapplication.exe
        linux-gate.so.1 =>  (0xffffe000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb7f3e000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e4f000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7e41000)
        libg2c.so.0 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libg2c.so.0 (0xb7e1e000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7e1a000)
        libm.so.6 => /lib/libm.so.6 (0xb7df8000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7de3000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7d91000)
        librt.so.1 => /lib/librt.so.1 (0xb7d7d000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5 (0xb7cc7000)
        libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libgcc_s.so.1 (0xb7cbe000)
        libc.so.6 => /lib/libc.so.6 (0xb7ba8000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7b9f000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb7b87000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7b84000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7b7e000)
        /lib/ld-linux.so.2 (0xb7fb1000)
and myapplication works properly, if I do not set the LD_ASSUME_KERNEL my application simply aborts with the well known

Code: Select all

gian@mir> myapplication.exe
/.../myapplication.exe: relocation error: /.../myapplication.exe: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
and ldd tells me, as it is obvious, that the libs in /usr/tls are being used in this case;

My question

Does this mean that if I want to keep using myapplication as I'm doing now I must not upgrade to the new glibc ? (or, equivalently, must absolutely change to the hardened or no-nptl profile...?)

This would be quite sad since I want to use both NPTL applications... but also myapplication and possibly for a long time...
Top
massimo71
n00b
n00b
User avatar
Posts: 15
Joined: Thu Mar 31, 2005 3:09 pm
Location: Italia (PN)

  • Quote

Post by massimo71 » Thu Aug 31, 2006 3:24 pm

I have my best machine already on gcc 4.11 (xeon 3.0 2gb ram raid 5)

now i want upgrade other gentoo pc. (pIII pIV etc)

So my question is :
i can abilitate distcc after switch to new gcc for speed up ?

like here :

> ** distcc disable **
> emerge -uav gcc
> gcc-config i686-pc-linux-gnu-4.1.1
> source /etc/porfile
> fix_libtool_files.sh 3.4.6
> emerge --oneshot -av libtool
> ** distcc enable **
> emerge -eav system
> emerge -eav world


Thanks.
Top
Smoothhound
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Tue Sep 23, 2003 4:42 pm

  • Quote

Post by Smoothhound » Thu Aug 31, 2006 3:52 pm

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
Top
Post Reply

389 posts
  • Page 2 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