Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 4.1.2 problem (stubs-32)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
roymaster
n00b
n00b


Joined: 05 Jan 2003
Posts: 64
Location: Europe

PostPosted: Wed Jul 04, 2007 9:13 am    Post subject: GCC 4.1.2 problem (stubs-32) Reply with quote

Hello,

having a problem while compiling 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 -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:346,
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 1621: Called dyn_compile
ebuild.sh, line 973: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
ebuild.sh, line 1311: Called toolchain_src_compile
toolchain.eclass, line 26: Called gcc_src_compile
toolchain.eclass, line 1541: Called gcc_do_make
toolchain.eclass, line 1415: Called die

!!! emake failed with profiledbootstrap


My emerge --info
Portage 2.1.2.9 (default-linux/amd64/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r8genkernel x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8genkernel x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 04 Jul 2007 08:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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 /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en cs_CZ"
MAKEOPTS="-j3"
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.gentoo.org/gentoo-portage"
USE="X acl amd64 apache2 berkdb bitmap-fonts bzip2 cli cracklib crypt ctype cups dri fortran gd gd2 gdbm gif gnome gpm hal iconv ipv6 isdnlog java jpeg kde kdeenablefinal libg++ midi mmx mouse mudflap mysql mysqli ncurses nls nptl nptlonly opengl openmp pam pcre perl php png pppd python readline reflection samba session simplexml slang snmp sockets spl sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts unicode urandom xml xorg zip 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="en cs_CZ" USERLAND="GNU" VIDEO_CARDS="vesa vga"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Should I install some 32bit compatibility packages or what?

With regards,

Roman
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 716
Location: Barcelona, Spain

PostPosted: Wed Jul 04, 2007 9:38 am    Post subject: Reply with quote

I have got GCC without installing any 32bit compatibility packages.

Code:
# uname -a
Linux mimosinnet 2.6.20-gentoo-r8 #4 SMP Mon Jun 18 13:43:34 CEST 2007 x86_64 Intel(R) Core(TM)2 CPU

Code:
# emerge -av gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.1.2  USE="fortran gtk mudflap nls (-altivec) -bootstrap -build -d -doc -gcj (-hardened) (-ip28) (-ip32r10k) (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB


Have you followed the Gentoo GCC Upgrade Guide?

Cheers!
Back to top
View user's profile Send private message
roymaster
n00b
n00b


Joined: 05 Jan 2003
Posts: 64
Location: Europe

PostPosted: Wed Jul 04, 2007 9:56 am    Post subject: Reply with quote

mimosinnet wrote:
I have got GCC without installing any 32bit compatibility packages.

Have you followed the Gentoo GCC Upgrade Guide?

Cheers!


Hello,

"unfortunately" yes I did.

Now I only want to 4.1.1 -> 4.1.2

Btw the same problem appeared when I wanted to emerge libstdc++.

stubs.h is trying to check __WORDSIZE and if it is 32 then it tries to include stubs-32.h but it doesn't exist in my arch.
Where to set correctly __WORDSIZE to 64, that is maybe the question.
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 716
Location: Barcelona, Spain

PostPosted: Thu Jul 05, 2007 3:20 pm    Post subject: Reply with quote

I have not encountered this problem and I do not have any idea of where start from, except by asking questions too obvious, like "have you run revdep-rebuild?".

I can give you my configuration in case you find differences that may be relevant. Sorry I cannot give more precise feedback.

# emerge --info
Portage 2.1.2.7 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 11 Jun 2007 10:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r7
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.16
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo "
LANG="ca_ES.UTF-8"
LC_ALL="ca_ES.UTF-8"
LINGUAS="ca es en"
MAKEOPTS="-j3"
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.gentoo.org/gentoo-portage"
USE="7zip X X509 a52 aac aalib acl acpi alsa amd64 amr arts audiofile bash-completion berkdb bitmap-fonts bzip2 cairo caps cddb cdparanoia cdr chroot cli cracklib crypt cscope css cups curl daap dbus dga directfb dri dts dv dvb dvd dvdr dvdread ecc emerald encode esd fame fbcon ffmpeg flac foomaticdb fortran ggi gif glib glitz gpm gstreamer gtk hal iconv idea idn ieee1394 ifp imagemagick imlib ipv6 isdnlog java jpeg jpeg2k kde libcaca libg++ live logrotate lzo mad midi mikmod mjpeg mmap mng modplug mp3 mpeg mudflap musepack musicbrainz nas ncurses network nextaw nls nptl nptlonly nsplugin oav offensive ogg opengl openmp openntpd oss overlays pam parse-clocks pch pcre pdf perl php png ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection ruby samba sasl sdl session skey slang slp smbkrb5passwd sndfile speex spell spl ssl svg swat symlink syslog tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd visualization vorbis x264 xml xorg xv xvid xvmc 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ca es en" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
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
Page 1 of 1

 
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