View previous topic :: View next topic |
Author |
Message |
tsk1979 n00b

Joined: 03 Nov 2004 Posts: 9
|
Posted: Fri Sep 30, 2005 3:56 am Post subject: no-multilib to multilib |
|
|
Hi,
I had a no-multilib 2003.4 system which i upgraded to 2005.0 no-multilib. I want to have a 2005.0 multilib system.
Bases on forum search and doc search i came to know i have to revert back to my old make profile, and then recompile gcc with having multilib, -sandbox and emul-linux in my USE flags
I found these posts which have the exact libc.so and libc.a ld error which i get
https://forums.gentoo.org/viewtopic-t-309931.html
https://forums.gentoo.org/viewtopic-t-309902.html
Code: |
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2
!!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1279, Exitcode 2
!!! emake failed with profiledbootstrap
|
After doing the steps in the links given above
i.e. the steps i followed were
Code: | /lib32 -> /emul/linux/x86/lib
/usr/lib32 -> /emul/linux/x86/usr/lib |
Code: | emerge emul-linux-x86-glibc emul-linux-x86-compat emul-linux-x86-baselibs |
I did a
Code: | USE="multilib" FEATURES="-sandbox" emerge --oneshot gcc |
I still get the same of ld.
Could anyone point out what more could i try. Found only the two above posts relating to this topic[/code] |
|
Back to top |
|
 |
tsk1979 n00b

Joined: 03 Nov 2004 Posts: 9
|
Posted: Fri Sep 30, 2005 5:20 pm Post subject: |
|
|
Okay that error went away. Seemed like i just had to create symlink for libc.so pointing to libc.so.5 in /usr/lib32
But now i get this error
"checking for library containing gettext... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES."
This was supposed to be fixed in aug according to gentoo forums, i did an emerge sync just now and i get this error while compiling multilib gcc!
According to aug posts on forums this was due to a tab before __guard somewhere in the code, and it was patched in aug.
The full error is
Code: |
checking for library containing gettext... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build'
make: *** [profiledbootstrap] Error 2
!!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1279, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.
|
emerge info
Code: |
Portage 2.0.52-r1 (default-linux/amd64/2004.3, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo x86_64)
=================================================================
System uname: 2.6.13-gentoo x86_64 4
Gentoo Base System version 1.12.0_pre6
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python: 2.3.4
sys-apps/sandbox: 1.2.13
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -fpermissive"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa apm arts avi berkdb bitmap-fonts browserplugin cdr crypt cups curl dvd dvdread eds emboss emul-linux encode esd exif f77 fam flac foomaticdb fortran gd gdbm gif gmail gnome gpm gstreamer gtk gtk2 imlib ipv6 java javascript jpeg kde libwww lzw lzw-tiff mad mikmod motif mozilla mp3 mpeg multilib mysql ncurses nls nvidia offensive ogg opengl pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd tiff truetype-fonts type1-fonts usb userlocales vorbis xine xml2 xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
|
Anything more which i can try doing fellas? |
|
Back to top |
|
 |
blubb Retired Dev

Joined: 16 Feb 2004 Posts: 51 Location: Switzerland
|
|
Back to top |
|
 |
tsk1979 n00b

Joined: 03 Nov 2004 Posts: 9
|
Posted: Sat Oct 01, 2005 3:25 pm Post subject: |
|
|
Code: | FEATURES=-sandbox USE=multilib emerge gcc |
This is the first step in the upgrade guide. I am following manual upgrade since i had -multilib in my use flags earlier therefore i need to first recompile multilib gcc. During the gcc compile i am getting that error |
|
Back to top |
|
 |
tsk1979 n00b

Joined: 03 Nov 2004 Posts: 9
|
Posted: Sun Oct 02, 2005 2:04 am Post subject: Solved! |
|
|
I could recompile gcc successfully and move to 2005.0.
The reason for the problem was that my emul-linux-x86-gcc version. It was getting a dummy package. So by putting >=app-emulation/emul-linux-x86-glibc-1000 in package.mask, things worked fine |
|
Back to top |
|
 |
|
|
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
|
|