Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Multilibs problem in Amd64 (32 & 64 bit) :Glibc & Gcc failed
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Tue Jan 23, 2007 10:01 pm    Post subject: Multilibs problem in Amd64 (32 & 64 bit) :Glibc & Gc Reply with quote

Hi All,

I tried to do an emerge -e system and it resulted in the portage causing error for gcc and then for glibc

So i compiled Glibc separate with

Code:

us="multilib" features="-sandbox" emerge glibc



But that resulted in the following error

Code:


checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

!!! ERROR: sys-libs/glibc-2.4-r4 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  glibc-2.4-r4.ebuild, line 1163:   Called src_compile
  glibc-2.4-r4.ebuild, line 1174:   Called toolchain-glibc_src_compile
  glibc-2.4-r4.ebuild, line 257:   Called glibc_do_configure 'nptl'
  glibc-2.4-r4.ebuild, line 925:   Called die




Then i left glibc and tried to compile GCC which resulted in the following error
Code:


/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../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.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.1-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1536:   Called gcc_do_make
  toolchain.eclass, line 1410:   Called die

!!! emake failed with profiledbootstrap




My emerge --info gives the following

Code:

Gentoo Base System version 1.12.6
Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.4-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Opteron(tm) Processor 250
Last Sync: Tue, 12 Dec 2006 18:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 bitmap-fonts cli cracklib crypt cups dga dlloader dri eds elibc_glibc emboss encode fbcon foomaticdb fortran gd gif gpm gstreamer gtk gtk2 iconv imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java jikes jpeg kernel_linux lzw lzw-tiff mailwrapper mng mp3 mpeg mysql ncurses nptl nptlonly oggvorbis opengl pam pcre png pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts usb userland_GNU userlocales video_cards_nvidia xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS



Can anyone please help me to correct this error. Any help will be appreciated
Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Tue Jan 23, 2007 10:02 pm    Post subject: Reply with quote

From the informations given in other posts, I tried so many variations.

1. firstly added ntpl & ntpl flags to /etc/make. conf use flages
2. Used the following command

Code:

use="multilib" features="-sandbox" emerge glibc


Which didn't work.
3. so used the following

Code:
 use="multilib" features="-sandbox" ACCEPT_KEYWORDS="~amd64" emerge glibc


Which also didn't work.

Anyone has any suggestions?? I desperately need some help, :cry:
Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Wed Jan 24, 2007 4:22 pm    Post subject: Reply with quote

Can anybody help me to sort this out?

Thanks in advance
Back to top
View user's profile Send private message
s.hase
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 293

PostPosted: Wed Jan 24, 2007 6:17 pm    Post subject: Reply with quote

There is no multilib use-flag for glibc!

Regards
Sebastian

edit: https://forums.gentoo.org/viewtopic-t-523658.html
Back to top
View user's profile Send private message
datpeter
n00b
n00b


Joined: 26 Jan 2007
Posts: 2

PostPosted: Fri Jan 26, 2007 5:02 am    Post subject: Reply with quote

I'm pretty sure, you forgot to switch on the IA32 emulation in your kernel. :roll:

try to compile with
Code:
# echo 'int main() {return 0;}' | gcc -m32 -xc -
# ./a.out


I had exactly the same problems (now fixed).
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Jan 26, 2007 5:17 am    Post subject: Reply with quote

First of all, the variable names are case sensitive:

Code:

USE="multilib" FEATURES="-sandbox" ACCEPT_KEYWORDS="~amd64" emerge glibc


Would be correct, but this line that you posted:

Code:

use="multilib" features="-sandbox" ACCEPT_KEYWORDS="~amd64" emerge glibc


Means this for portage:

Code:

ACCEPT_KEYWORDS="~amd64" emerge glibc


Because portage does not read a variable called "use" or "features", but "USE" and "FEATURES".

Besides that, as someone already pointed, gcc does not have such an USE flag since long ago. It is the profile which enables or disables multilib nowadays. So, unless you have explicitly selected a multilib profile like default-linux/amd64/2006.1/no-multilib/ you are using a multilib capable profile.

Look for the IA32 emulation support in the kernel, enable it, recompile, reinstall, reboot on that kernel (make sure after that that it is the correct one using uname -a and looking at the compilation date). After that, try again.
Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Sat Feb 03, 2007 4:41 pm    Post subject: Reply with quote

Thanks guys for your reply. But it is still not working. I capitalised the USE & FEATURES and still the same error

then i tried this

Code:


 # echo 'int main() {return 0;}' | gcc -m32 -xc -
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../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/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../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/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status



Does anyone know what is wrong ?[/code]
Back to top
View user's profile Send private message
met0d
n00b
n00b


Joined: 01 Aug 2006
Posts: 27

PostPosted: Sat Feb 03, 2007 4:48 pm    Post subject: Reply with quote

Post the output of
Code:

gcc -v


I have the same problem as you do it seems.
Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Sat Feb 03, 2007 4:52 pm    Post subject: Reply with quote

this is the output which i got

Code:


 # gcc -v
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/hardened.specs
Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)

Back to top
View user's profile Send private message
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 452

PostPosted: Sat Feb 03, 2007 5:17 pm    Post subject: Reply with quote

a_smartboy8 wrote:
this is the output which i got

Code:


 # gcc -v
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/specs
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/hardened.specs
Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)



Woah that's a damn old version of gcc! did you have a look at this?
Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Sat Feb 03, 2007 5:24 pm    Post subject: Reply with quote

I have a newer version of GCC to . i.e 4.1.1

But when i compile with that one also , i have the same problem. so i switched back to the old working version

MY GCC versions are the following

Code:

# gcc-config -l
 [1] x86_64-pc-linux-gnu-3.4.1
 [2] x86_64-pc-linux-gnu-3.4.1.old
 [3] x86_64-pc-linux-gnu-3.4.4
 [4] x86_64-pc-linux-gnu-3.4.4-hardened *
 [5] x86_64-pc-linux-gnu-3.4.4-hardenednopie
 [6] x86_64-pc-linux-gnu-3.4.4-hardenednopiessp
 [7] x86_64-pc-linux-gnu-3.4.4-hardenednossp
 [8] x86_64-pc-linux-gnu-4.1.1


When i again try to compile 4.1.1, this is what i get

Code:

/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.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1539:   Called gcc_do_make
  toolchain.eclass, line 1413:   Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.

Back to top
View user's profile Send private message
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 452

PostPosted: Sat Feb 03, 2007 5:46 pm    Post subject: Reply with quote

a_smartboy8 wrote:
I have a newer version of GCC to . i.e 4.1.1

But when i compile with that one also , i have the same problem. so i switched back to the old working version

MY GCC versions are the following

Code:

# gcc-config -l
 [1] x86_64-pc-linux-gnu-3.4.1
 [2] x86_64-pc-linux-gnu-3.4.1.old
 [3] x86_64-pc-linux-gnu-3.4.4
 [4] x86_64-pc-linux-gnu-3.4.4-hardened *
 [5] x86_64-pc-linux-gnu-3.4.4-hardenednopie
 [6] x86_64-pc-linux-gnu-3.4.4-hardenednopiessp
 [7] x86_64-pc-linux-gnu-3.4.4-hardenednossp
 [8] x86_64-pc-linux-gnu-4.1.1


When i again try to compile 4.1.1, this is what i get

Code:

/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.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1539:   Called gcc_do_make
  toolchain.eclass, line 1413:   Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.



Okey did you check you have IA32-Emulation enabled in your kernel?

Code:

grep IA32 /usr/src/linux/.config
CONFIG_IA32_EMULATION=y


If not enable it and try it again.

And could you post your emerge --info?
Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Sun Feb 04, 2007 12:01 pm    Post subject: Reply with quote

Yes i have IA32 emulation enabled in my kernel . My emerge --info is the following
Code:



Gentoo Base System version 1.12.6
Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-hardened, glibc-2.4-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Opteron(tm) Processor 250
Last Sync: Sat, 03 Feb 2007 14:00:02 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 bitmap-fonts cli cracklib crypt cups dga dlloader dri eds elibc_glibc emboss encode fbcon foomaticdb fortran gd gif gpm gstreamer gtk gtk2 iconv imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java jikes jpeg kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lzw lzw-tiff mailwrapper midi mng mp3 mpeg mysql ncurses nptl nptlonly oggvorbis opengl pam pcre png pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts usb userland_GNU userlocales video_cards_nvidia xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS



Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Sun Feb 04, 2007 7:47 pm    Post subject: Reply with quote

Code:

# grep IA32 /usr/src/linux/.config
CONFIG_IA32_EMULATION=y
CONFIG_IA32_AOUT=y

Back to top
View user's profile Send private message
a_smartboy8
n00b
n00b


Joined: 21 Nov 2006
Posts: 69

PostPosted: Sun Feb 04, 2007 10:40 pm    Post subject: Reply with quote

this means ia32 is switched on in my kernel. Do you know any other reason for this error?
Back to top
View user's profile Send private message
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 452

PostPosted: Mon Feb 05, 2007 7:58 am    Post subject: Reply with quote

a_smartboy8 wrote:
this means ia32 is switched on in my kernel. Do you know any other reason for this error?


the last thing that comes to my mind, is that you are using a hardened version of gcc. Maybe this is causing troubles?!?
Back to top
View user's profile Send private message
sergeyn
n00b
n00b


Joined: 29 Jan 2006
Posts: 10

PostPosted: Sat Feb 17, 2007 11:24 pm    Post subject: Reply with quote

I got the same problem when I switched from no-multilib to desktop profile
the solution was to firs reemerge gcc, and then emerge glibc

Regards,
Sergey.
Back to top
View user's profile Send private message
Sir Alaran
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 182
Location: KSJC

PostPosted: Tue Feb 20, 2007 4:58 pm    Post subject: Reply with quote

sergeyn wrote:
I got the same problem when I switched from no-multilib to desktop profile
the solution was to firs reemerge gcc, and then emerge glibc


The "checking size of double... configure: error: cannot compute sizeof (double), 77" also shows up when emerging gcc, so that doesn't really help. Any devs have an idea?
_________________
D is awesome.
Textadept is my friend.
Back to top
View user's profile Send private message
sergeyn
n00b
n00b


Joined: 29 Jan 2006
Posts: 10

PostPosted: Fri Feb 23, 2007 9:45 pm    Post subject: Reply with quote

I've also switched to 2007 profile.

Hope it helps,
Sergey.
Back to top
View user's profile Send private message
shrub
n00b
n00b


Joined: 04 Mar 2004
Posts: 8

PostPosted: Mon Mar 26, 2007 4:08 pm    Post subject: Reply with quote

I have exactly the same problem after changing m profile from non-multilib to multilib.

I cannot compile gcc or glibc.

Is there a recommended way to change profiles?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Mon Mar 26, 2007 8:53 pm    Post subject: Reply with quote

from what I've heard you cant change profiles, you need to reinstall gentoo
Back to top
View user's profile Send private message
shrub
n00b
n00b


Joined: 04 Mar 2004
Posts: 8

PostPosted: Mon Mar 26, 2007 10:31 pm    Post subject: Reply with quote

bas*&^&s
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Thu Oct 18, 2007 5:17 pm    Post subject: Reply with quote

Hi, same problem here.
I'm coming from a stage3-amd64-2007.0.tar.bz2, trying to build on a Xen domU as a server. Using the /usr/portage/profiles/default-linux/amd64/2007.0 profile emerge -e system runs fine except for gcc-4.1.2.

Using the /usr/portage/profiles/hardened/amd64 profile sys-devel/gcc-3.4.6-r2 compiles fine.
I know I can't switch from a non-multilib to a multilib profile, and the toolchain from the hardened profile is non-multilib. But the current toolchain from the stage3 tar.gz is multilib:
Code:
# gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r3)


And here's how gcc-4.1.2 fails:
Code:
ake[4]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc'
./xgcc -B./ -B/usr/x86_64-pc-linux-gnu/bin/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -L/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc/../ld -O2 -O2 -march=nocona -O2 -pipe  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I32 -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/32 -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/../libcpp/include  -m32 -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time  -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
          -c /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/crtstuff.c -DCRT_BEGIN \
          -o 32/crtbegin.o
In file included from /usr/include/features.h:345,
                 from /usr/include/stdio.h:28,
                 from /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/tsystem.h:90,
                 from /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/crtstuff.c:68:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[4]: *** [32/crtbegin.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc'
make[3]: *** [extra32] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build/gcc'
make: *** [profiledbootstrap] Error 2
 *
 * ERROR: sys-devel/gcc-4.1.2 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1334:   Called toolchain_src_compile
 *   toolchain.eclass, line 26:   Called gcc_src_compile
 *   toolchain.eclass, line 1546:   Called gcc_do_make
 *   toolchain.eclass, line 1420:   Called die
 *
 * emake failed with profiledbootstrap
It hangs a while at this point, swapping a lot. Maybe it runs out of memory and 128M phys. / 256M swap isn't enough?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Thu Oct 18, 2007 5:20 pm    Post subject: Reply with quote

And for completeness:
# emerge --info:
Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.1, glibc-2.6.1-r0, 2.6.18-xenU x86_64)
=================================================================
System uname: 2.6.18-xenU x86_64 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
Timestamp of tree: Tue, 16 Oct 2007 19:50:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
movrev
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2004
Posts: 114
Location: Berkeley, CA - USA

PostPosted: Sun Oct 28, 2007 2:37 am    Post subject: Reply with quote

So, I'm having a similar problem to you guys. For a few days now, after I upgraded to glibc-2.6.1 I suppose, I've had apps like mail-notification and gnome-power-manager crash when trying to display notification I think.

I was told that this related to the glibc update and that I should disable kernel preemption (have it for skype), ccache (that's why it shows as disabled in my emerge info, below) and rebuild my system and world.

I haven't yet disabled kernel preemption, but have rebuilt all of my system save for gcc-4.1.2, which segfaults, freezing generally my keyboard and requiring a manual reboot since I think it meses up something related to the kernel and I even had processor segfaults midway through the reboot process, freezing it.

Now, I might just as well try remerging gcc with Skype and maybe even X closed from a vt and see what happens. If not, I'm willing to disable kernel preemption just for upgrading gcc and then re-enabling it, but is this needed at all? If anyone has more insight in this matter I'll appreciate it.

Thanks and here's some info:

I have an AMD64 system running gcc-4.1.2:

Code:
# gcc-config -l
[1] x86_64-pc-linux-gnu-4.1.2 *


I have IA32 emulation in the kernel:

Code:
# grep IA32 /usr/src/linux/.config
CONFIG_IA32_EMULATION=y
CONFIG_IA32_AOUT=y


This is my gcc -v output:

Code:
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2)


And my emerge --info

Code:
Portage 2.1.3.16 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.21-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Sun, 28 Oct 2007 01:20:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://213.186.33.37/gentoo-distfiles/ ftp://mirror.usu.edu/mirrors/gentoo/ http://213.186.33.38/gentoo-distfiles/"
LANG="en_US"
LINGUAS="en en_US es es_AR fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="16bit-indices X a52 aac acpi alsa amazon amd64 arts audiofile beagle berkdb bitmap-fonts blender-game bonobo bzip2 cairo ccache cdaudio cdda cddb cdparanoia cdr cdrom cli cracklib crypt cups dbus dri dvd dvdr eds emboss encode esd exif fam ffmpeg fftw firefox flac fortran gaim gdbm gif glitz gmail gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv imap imlib ipod ipv6 isdnlog jabber java javascript jpeg jpeg2k kde kerberos lame lapack lcms ldap mad maildir mbox midi mikmod mng mono mp3 mpeg msn mudflap musepack musicbrainz nas ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl openmp openntpd oscar oss pam pcre pdf perl png pop ppds pppd python qt3 qt4 quicktime readline realmedia reflection reiserfs sasl sdl session spell spl sqlite ssl svg tcpd theora tiff timidity trayicon truetype truetype-fonts type1 type1-fonts unicode usb visualization vorbis wxwindows xcomposite xine xinerama xml xorg xrandr xscreensaver xv xvid yahoo zlib" ALSA_CARDS="ice1724" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US es es_AR fr fr_FR" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Shuttle SN25P - FN25 mobo nForce 4 - AMD Athlon 64 3500+ - nVidia GeForce 6800 - Maxtor 200Gb - 2x1024 Mb Corsair XMS RAM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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