Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

2005.0 and multilib

Have an x86-64 problem? Post here.
Locked
Advanced search
46 posts
  • Previous
  • 1
  • 2
Author
Message
Maedhros
Bodhisattva
Bodhisattva
User avatar
Posts: 5511
Joined: Wed Apr 14, 2004 8:10 pm
Location: Durham, UK

  • Quote

Post by Maedhros » Tue Apr 05, 2005 3:21 pm

Because multilib isn't controlled by USE flags anymore, but the profile itself. :)
No-one's more important than the earthworm.
Top
Decibels
Veteran
Veteran
User avatar
Posts: 1635
Joined: Fri Aug 16, 2002 12:51 am
Location: U.S.A.

  • Quote

Post by Decibels » Tue Apr 05, 2005 8:05 pm

Thanks, that explains it. Docs seems a little dated, at least the ones I had, so was a little worried about it.
But everything seemed to be going very well, so was thinking it was really being used, but not shown. Or
don't really need it.
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Top
hjh
n00b
n00b
Posts: 37
Joined: Tue Jul 20, 2004 1:44 am

  • Quote

Post by hjh » Fri Apr 29, 2005 3:12 am

My profile seems to strictly forbid me from emerging gcc or glibc with a "multilib" USE flag. As I watch the output of the gcc emerge I see the configure script selecting --disable-multilib.

I haven't been able to find a solution to this from what I have read and it prevents me from following some of the clearly excellent advice in this thread. I wonder if I should try a route suggested earlier of installing again on a new partition and building a multilib gcc from there?

Any useful suggestions would be appreciated.

Also, emerging portage I notice that it tells me I do not have a vaild multilib environment. Something is screwed but I don't know where to look.
Top
spielc
Guru
Guru
Posts: 452
Joined: Tue Apr 20, 2004 2:26 pm

  • Quote

Post by spielc » Fri Apr 29, 2005 7:50 am

that's a easy one :wink: :

to get a working gcc and glibc with multilib do the following (i assume you have either multilib in your useflags or use 2005.0):

Code: Select all

features="-sandbox" emerge gcc
emerge glibc
emerge portage (now portage shouldn't complain about a "not valid multilib environment"
I hope that helps you a bit with the solution of your problems!
Top
pallaert
n00b
n00b
Posts: 29
Joined: Fri Apr 29, 2005 10:47 am
Contact:
Contact pallaert
Website

emerge --update --newuse --deep --pretend --verbose world

  • Quote

Post by pallaert » Fri Apr 29, 2005 4:28 pm

Just after changing from profile 2004.3 to 2005.0 doing:

Code: Select all

emerge --update --newuse --deep --pretend --verbose world
give me the following package to emerge:

Code: Select all

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild   R   ] sys-devel/gcc-3.4.3-r1  (-altivec) -bootstrap -boundschecking -build -debug +fortran -gcj -gtk -hardened -ip28 (-multilib)* -multislot (-n32) (-n64) +nls -nocxx -objc -static (-uclibc) 0 kB
[ebuild  N    ] app-emulation/emul-linux-x86-glibc-1000  0 kB
Is this normal that this 2 ebuilds want to be merged after the Gentoo's 2005.0 Upgrade guide (http://www.gentoo.org/proj/en/base/amd6 ... t=1&chap=1) said to do:

Code: Select all

...
emerge unmerge emul-linux-x86-glibc
emerge -upv system
emerge -uv system
I found strange emul-linux-x86-glibc have to be merged and that the Upgrade guide said to unmerge it...
For gcc, maybe this is due to the --newuse that detects that previous gcc was build with +multilib and that the new USE flags prevent to use multilib as it is done at profile level...
Top
spielc
Guru
Guru
Posts: 452
Joined: Tue Apr 20, 2004 2:26 pm

Re: emerge --update --newuse --deep --pretend --verbose worl

  • Quote

Post by spielc » Fri Apr 29, 2005 9:58 pm

pallaert wrote: I found strange emul-linux-x86-glibc have to be merged and that the Upgrade guide said to unmerge it...
For gcc, maybe this is due to the --newuse that detects that previous gcc was build with +multilib and that the new USE flags prevent to use multilib as it is done at profile level...
the emul-linux-x86-glibc-1000 package is just a "dummy" package (this means that actually nothing gets installed when you emerge it)

all the "work" is done by emerging glibc now (this means that glibc is compiled twice if you have multilib and four times if you have nptl enabled too)

but it is correct yeah, if you wanna have a working multilib environment you need the dummy package too
Top
hjh
n00b
n00b
Posts: 37
Joined: Tue Jul 20, 2004 1:44 am

  • Quote

Post by hjh » Sat Apr 30, 2005 12:45 am

You may have noted those instructions have been repeated many times in this and similar threads. My emerge of gcc with the -sandbox feature does not result in a multilib enabled gcc. So clearly it is not such an easy one.
Top
spielc
Guru
Guru
Posts: 452
Joined: Tue Apr 20, 2004 2:26 pm

  • Quote

Post by spielc » Sat Apr 30, 2005 9:33 am

hjh wrote:You may have noted those instructions have been repeated many times in this and similar threads. My emerge of gcc with the -sandbox feature does not result in a multilib enabled gcc. So clearly it is not such an easy one.
Well maybe i misunderstood you but i thought you wanted to have a working multilib environment (with sandbox and the like) and you'll get that by issueing the commands i mentioned in my earlier post
Top
supermihi
Guru
Guru
User avatar
Posts: 348
Joined: Wed Feb 09, 2005 9:15 am

  • Quote

Post by supermihi » Sat Apr 30, 2005 8:43 pm

I'm doing a new, clean 2005.0 amd64 install. I also wondered about the

Code: Select all

(-multilib)
when emerging gcc. So I found this thread, and now I'm wondering: Do I need the emul-linux-libraries at all when I directly install from 2005.0? I'm a bit confused about all the 32/64 libraries, I tried to install the fritzcapi ISDN drivers from AVM which carry a precompiled, likely 32bit kernel module. Am I able to use this one at all? I have no internet access without ... :(
"You may say I'm a dreamer, but I'm not the only one."
Top
spielc
Guru
Guru
Posts: 452
Joined: Tue Apr 20, 2004 2:26 pm

  • Quote

Post by spielc » Sun May 01, 2005 9:43 am

supermihi wrote:I'm doing a new, clean 2005.0 amd64 install. I also wondered about the

Code: Select all

(-multilib)
when emerging gcc. So I found this thread, and now I'm wondering: Do I need the emul-linux-libraries at all when I directly install from 2005.0? I'm a bit confused about all the 32/64 libraries, I tried to install the fritzcapi ISDN drivers from AVM which carry a precompiled, likely 32bit kernel module. Am I able to use this one at all? I have no internet access without ... :(
Multilib means that you have multiple versions of some libraries on your computer. As 2005.0's default profile forces multilib you can't go without the emul-packages besides portage won't let you do that anyway...

When you really want to go without multilib you can (i would not do it if i were you tho) cuz there is a 2005.0 profile that doesn't use multilib (i think it's called 2005.0-nomultilib).
Top
hjh
n00b
n00b
Posts: 37
Joined: Tue Jul 20, 2004 1:44 am

  • Quote

Post by hjh » Sun May 01, 2005 11:51 pm

OK I should be more specific. I HAVE issued those commands but they have not produced the expected result. This was the reason for my post. Given that the fix is not working in this case I wondered if anyone else had encountered the same problem and could perhaps assist me in looking for the problem. Thanks for your suggestion.

I just noticed the following at the end of my re-emerge of gcc (with USE=multilib and FEATURES=-sandbox):

/usr/bin/gcc-config: line 1: /etc/env.d/gcc/x86_64-pc-linux-gnu: No such file or directory
* /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu
* Switching to x86_64-pc-linux-gnu-3.4.3 compiler... [ ok ]
Top
hjh
n00b
n00b
Posts: 37
Joined: Tue Jul 20, 2004 1:44 am

  • Quote

Post by hjh » Wed May 04, 2005 12:59 am

anyone? anyone? Bueller? anyone?
Top
spielc
Guru
Guru
Posts: 452
Joined: Tue Apr 20, 2004 2:26 pm

  • Quote

Post by spielc » Wed May 04, 2005 8:35 am

hjh wrote:OK I should be more specific. I HAVE issued those commands but they have not produced the expected result. This was the reason for my post. Given that the fix is not working in this case I wondered if anyone else had encountered the same problem and could perhaps assist me in looking for the problem. Thanks for your suggestion.

I just noticed the following at the end of my re-emerge of gcc (with USE=multilib and FEATURES=-sandbox):

/usr/bin/gcc-config: line 1: /etc/env.d/gcc/x86_64-pc-linux-gnu: No such file or directory
* /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu
* Switching to x86_64-pc-linux-gnu-3.4.3 compiler... [ ok ]
well what does gcc-config -l say?? what's the output of gcc-config <number of fresh emerged gcc>?
Top
hjh
n00b
n00b
Posts: 37
Joined: Tue Jul 20, 2004 1:44 am

  • Quote

Post by hjh » Wed May 04, 2005 11:38 pm

[1] x86_64-pc-linux-gnu-3.3.4
[2] x86_64-pc-linux-gnu-3.4.3 *
[3] x86_64-pc-linux-gnu-3.4.3-hardened
[4] x86_64-pc-linux-gnu-3.4.3-hardenednopie
[5] x86_64-pc-linux-gnu-3.4.3-hardenednossp


Thanks for staying with me on this one. I currently have the 2004.3 profile. I was forced to recompile gcc and glibc earlier due to a glitch with xorg which was eventually resolved but has perhaps borked the profile setup somehow.

Let me re-iterate, when I check the flags that the configuration step of the emerge process picks up for gcc, it specifically invokes --disable-multilib. Without a multilib gcc I can't emerge a multilib portage. Emerge specifically comments on this when I try.

Thankfully none of this is stopping me from doing the work that I need to do. It just bugs me though!!!

Cheers

J.
Top
spielc
Guru
Guru
Posts: 452
Joined: Tue Apr 20, 2004 2:26 pm

  • Quote

Post by spielc » Thu May 05, 2005 9:09 am

Okey this looks alright...

I guess you tried to emerge portage again?
/usr/bin/gcc-config: line 1: /etc/env.d/gcc/x86_64-pc-linux-gnu: No such file or directory
* /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu
* Switching to x86_64-pc-linux-gnu-3.4.3 compiler... [ ok ]
this shouldn't be a real problem if you are able to compile/emerge other things without problems but it was important that you were able to compile gcc with multilib and -sandbox. I would really try to go for another emerge portage as it looks like the emerge of gcc with multilib went fine (USE=multilib FEATURES=-sandbox emerge gcc if that was the command you issued and the emerge finished without compile error you should be ready to go...)
Top
hjh
n00b
n00b
Posts: 37
Joined: Tue Jul 20, 2004 1:44 am

  • Quote

Post by hjh » Thu May 05, 2005 11:35 pm

* No valid multilib environment found!
* Building without multilib support. If
* you want to have multilib support,
* emerge gcc with "multilib" in your
* useflags.


The above is the output from emerge portage. "--disable-multilib" is clearly flagged in the gcc compile. I can keep emerging it until the cows come home but somewhere, somehow the configure script is deciding that multilib is not for gcc. If you do "USE=multilib FEATURES=-sandbox emerge -pv gcc" it will show multilib in parentheses which I believe indicates that this flag is not permitted under the current profile.

Options would appear to include the following:

- hope somebody can diagnose the issue, implement a fix and then switch to 2005 profile

- backup all necessary files and configs and blow it all away and do a clean install from 2005 CD

- install my existing 2004.3 distro again in a new partition, compile gcc with multilib, fix portage on the existing system and try to switch that to 2005 profile

- leave it as it currently is and do nothing until things are broken enough to compromise stability or my ability to get work done

Thanks for you efforts.
Top
spielc
Guru
Guru
Posts: 452
Joined: Tue Apr 20, 2004 2:26 pm

  • Quote

Post by spielc » Fri May 06, 2005 7:54 am

hjh wrote:* No valid multilib environment found!
* Building without multilib support. If
* you want to have multilib support,
* emerge gcc with "multilib" in your
* useflags.


The above is the output from emerge portage. "--disable-multilib" is clearly flagged in the gcc compile. I can keep emerging it until the cows come home but somewhere, somehow the configure script is deciding that multilib is not for gcc. If you do "USE=multilib FEATURES=-sandbox emerge -pv gcc" it will show multilib in parentheses which I believe indicates that this flag is not permitted under the current profile.

Options would appear to include the following:

- hope somebody can diagnose the issue, implement a fix and then switch to 2005 profile

- backup all necessary files and configs and blow it all away and do a clean install from 2005 CD

- install my existing 2004.3 distro again in a new partition, compile gcc with multilib, fix portage on the existing system and try to switch that to 2005 profile

- leave it as it currently is and do nothing until things are broken enough to compromise stability or my ability to get work done

Thanks for you efforts.
Two things just came to my mind:

first: what profile is your /etc/make.profile pointing to?? You changed the profile back to 2004.3 after you found out the 2005.0-script isn't working? If NOT change the simlink /etc/make.profile back to the 2004.3 profile and recompile gcc with USE=multilib FEATURES=-sandbox emerge gcc

Second: did you recompile glibc after you reemerged gcc?? If not try that followed by emerge portage
Top
Kuhrscher
Guru
Guru
User avatar
Posts: 498
Joined: Mon Dec 29, 2003 9:10 pm
Location: Hamburg, Germany

  • Quote

Post by Kuhrscher » Fri May 06, 2005 10:28 pm

HJH: A long time ago I had the same problem. So don't give up :wink:

Please try to boot using a 2004.3-livecd, chroot into your environment and reemerge portage and gcc and portage (again). If portage complains about missing multilib, just ignore it a this moment.

Code: Select all

USE=multilib emerge --oneshot portage

Code: Select all

USE=multilib FEATURES=-sandbox emerge --oneshot gcc

Code: Select all

USE=multilib emerge --oneshot portage
Top
dmpogo
Advocate
Advocate
Posts: 3714
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Sat May 07, 2005 1:03 am

As I understand,

in 2005.0 multilib is forced not in the way that the option is always set.
It is forced in a way that there is NO SUCH OPTION AT ALL, while multilib functionality is built in.
As the result, packages which check this option come back with (-multilib), since they
cannot even find such option. And it does not show in emerge info
Top
hjh
n00b
n00b
Posts: 37
Joined: Tue Jul 20, 2004 1:44 am

  • Quote

Post by hjh » Mon May 09, 2005 4:41 am

spielc - profile is 2004.3 and correctly setup as far as I can tell. Yes, I have re-emerged glibc and attempted to then emerge portage.

Kurscher - nice suggestion. I tried this but it did not change anything. Same problem as above.

As an aside, I briefly found myself in a situation where none of gcc, portage and glibc would compile, the latter with the dreaded "long double" error. I regained the ability to compile these things when I switched to the "hardened" version of the compiler. This used to be the default but there was some issue with the hardened profile for an xorg-x11 update. I wonder if the actual switch to the non-hardened profile was not completely or properly made. Still, the wondering doesn't really prompt me with a solution for the current problem. How am I to get a multilib-enabled gcc and portage?

I've seen some comments about re-emerging the toolchain when making updates to things like glibc. Might this be pertinent to my current situation?
Top
hjh
n00b
n00b
Posts: 37
Joined: Tue Jul 20, 2004 1:44 am

  • Quote

Post by hjh » Mon May 09, 2005 11:55 pm

Well....somewhat cautiously I might claim success. I don't truly know the reason for the issue but problems with my gcc setup I think are a root cause. I switched back to gcc-3.3.4 which is multilib enabled on my system. I was then able to follow the directions of "my world" in the "Glibc-long double" thread and manually migrated to the 2005 profile. I will attempt to move back to gcc3.4.x in the future. I will wait and see now whether everything is indeed operating as it should.

Thanks for the suggestions.
Top
Locked

46 posts
  • Previous
  • 1
  • 2

Return to “Gentoo on AMD64”

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