Created attachment 360830 [details] bzip2ed build.log 'emerge gcc' fails with: ... checking for style of include used by make... GNU checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: in `/var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/x86_64-pc-linux-gnu/32/libquadmath': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[1]: *** [configure-target-libquadmath] Error 1 root@condor:/var/tmp/portage/app-emulation/virtualbox-4.2.18(33)# emerge --info '=sys-devel/gcc-4.8.1-r1::gentoo' Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.11.0-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.11.0-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.2 KiB Mem: 7069872 total, 1947500 free KiB Swap: 50347696 total, 50034064 free Timestamp of tree: Sun, 13 Oct 2013 04:00:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.5-r2, 3.2.5-r2, 3.3.2-r2 dev-util/cmake: 2.8.11.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.1 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.6.4, 4.7.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.11 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo x11 science sunrise lordvan local g-cpan g-octave Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/opsys/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages/" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage_condor" PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/lordvan /usr/local/portage /var/lib/cpan /var/lib/g-octave" USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli cmake consolekit cracklib crypt css cuda cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3 id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libkms libnotify libsamplerate lirc live lm_sensors lua lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime raw readline real reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 ssl ssse3 startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb userlocales utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx wav webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm mdraid syslog" DVB_CARDS="tda10045 tda10046lifeview" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau displaylink" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON root@condor:/var/tmp/portage/app-emulation/virtualbox-4.2.18(37)# emerge -pqv '=sys-devel/gcc-4.8.1-r1::gentoo' [ebuild NS ] sys-devel/gcc-4.8.1-r1 [4.6.4, 4.7.3] USE="cxx doc fortran gcj gtk mudflap (multilib) nls nptl objc openmp (-altivec) (-fixed-point) -go -graphite (-hardened) (-libssp) -lto -multislot -nopie -nossp -objc++ -objc-gc -regression-test -vanilla"
"Please include /var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/gcc-build-logs.tar.bz2 in your bug report"
Created attachment 360848 [details] /var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/gcc-build-logs.tar.bz2
*** Bug 488458 has been marked as a duplicate of this bug. ***
I still find a config.log file in the /var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/x86_64-pc-linux-gnu/32/libquadmath directory. There I find the following lines: configure:3248: /var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -V >&5 xgcc: error: unrecognized command line option '-V' xgcc: fatal error: no input files compilation terminated. configure:3259: $? = 1 configure:3248: /var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -qversion >&5 xgcc: error: unrecognized command line option '-qversion' xgcc: fatal error: no input files compilation terminated. configure:3259: $? = 1 configure:3275: /var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -o conftest -g -march=native -O2 -pipe conftest.c >&5 configure:3278: $? = 0 configure:3307: checking for C compiler default output file name configure:3329: /var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -g -march=native -O2 -pipe conftest.c >&5 configure:3333: $? = 0 configure:3370: result: a.out configure:3386: checking whether the C compiler works configure:3395: ./a.out /var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/gcc-4.8.1/libquadmath/configure: line 3397: ./a.out: No such file or directory configure:3399: $? = 127 configure:3406: error: in `/var/tmp/portage/sys-devel/gcc-4.8.1-r1/work/build/x86_64-pc-linux-gnu/32/libquadmath': configure:3410: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. Any idea, what is here wrong?
Btw, I can not find any conftest.c under /var/tmp/portage/sys-devel/gcc-4.8.1-r1: root@condor:/root(23)# find /var/tmp/portage/sys-devel/gcc-4.8.1-r1/ -name conftest.c root@condor:/root(24)#
does this work: $ echo 'main(){}' > test.c $ gcc -m32 test.c $ ./a.out
(In reply to SpanKY from comment #6) > does this work: > $ echo 'main(){}' > test.c > $ gcc -m32 test.c > $ ./a.out No, it does not work: root@condor:/root(1)# echo 'main(){}' > test.c root@condor:/root(2)# gcc -m32 test.c root@condor:/root(3)# ./a.out -bash: ./a.out: No such file or directory root@condor:/root(6)# ll a.out -rwxr-xr-x 1 root root 6886 Oct 19 11:02 a.out*
root@condor:/root(7)# zgrep 32 /proc/config.gz CONFIG_ZONE_DMA32=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_NR_CPUS=32 CONFIG_IA32_EMULATION=y # CONFIG_IA32_AOUT is not set CONFIG_X86_X32=y # CONFIG_NF_CONNTRACK_H323 is not set # CONFIG_NETFILTER_XT_MATCH_U32 is not set # CONFIG_NF_NAT_H323 is not set # CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set # CONFIG_ICS932S401 is not set CONFIG_AIC7XXX_CMDS_PER_DEVICE=32 CONFIG_AIC79XX_CMDS_PER_DEVICE=32 # CONFIG_PATA_NINJA32 is not set # CONFIG_USB_ALI_M5632 is not set CONFIG_SERIAL_8250_NR_UARTS=32 # CONFIG_MFD_RDC321X is not set # CONFIG_REGULATOR_TPS51632 is not set CONFIG_SND_MAX_CARDS=32 # CONFIG_SND_AZT3328 is not set CONFIG_SND_HDA_CODEC_CA0132=y # CONFIG_SND_HDA_CODEC_CA0132_DSP is not set # CONFIG_SND_RME32 is not set # CONFIG_USB_SERIAL_F81232 is not set # CONFIG_USB_SERIAL_MCT_U232 is not set # CONFIG_RTC_DRV_DS3232 is not set # CONFIG_RTC_DRV_BQ32K is not set # CONFIG_NLS_CODEPAGE_932 is not set CONFIG_CRYPTO_CRC32C=y # CONFIG_CRYPTO_CRC32C_INTEL is not set # CONFIG_CRYPTO_CRC32 is not set # CONFIG_CRYPTO_CRC32_PCLMUL is not set # CONFIG_CRYPTO_RMD320 is not set CONFIG_CRC32=y # CONFIG_CRC32_SELFTEST is not set CONFIG_CRC32_SLICEBY8=y # CONFIG_CRC32_SLICEBY4 is not set # CONFIG_CRC32_SARWATE is not set # CONFIG_CRC32_BIT is not set CONFIG_LIBCRC32C=y
I suppose this issue and bug https://bugs.gentoo.org/show_bug.cgi?id=487886 have the same reason.
(In reply to Juergen Rose from comment #7) > (In reply to SpanKY from comment #6) > > does this work: > > $ echo 'main(){}' > test.c > > $ gcc -m32 test.c > > $ ./a.out > > No, it does not work: > > root@condor:/root(1)# echo 'main(){}' > test.c > root@condor:/root(2)# gcc -m32 test.c > root@condor:/root(3)# ./a.out > -bash: ./a.out: No such file or directory > > root@condor:/root(6)# ll a.out > -rwxr-xr-x 1 root root 6886 Oct 19 11:02 a.out* root@condor:/usr/src(38)# ldd a.out not a dynamic executable root@condor:/usr/src(39)# file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped At working systems I see: root@impala:/root(25)# ldd a.out linux-gate.so.1 (0xf7715000) libc.so.6 => /lib32/libc.so.6 (0xf74c1000) /lib/ld-linux.so.2 (0xf76f5000) At "condor" I cant find /lib/ld-linux.so.2 and /lib32/libc-2.17.so differs drastically in size from that on working system: root@condor:/usr/src(40)# ll /lib/ld-linux.so.2 /bin/ls: cannot access /lib/ld-linux.so.2: No such file or directory root@condor:/usr/src(41)# ll /lib32/libc.so.6 lrwxrwxrwx 1 root root 12 Apr 13 2013 /lib32/libc.so.6 -> libc-2.17.so* root@condor:/usr/src(42)# ll /lib32/libc-2.17.so -rwxr-xr-x 1 root root 1754464 Apr 13 2013 /lib32/libc-2.17.so* At a working system: root@impala:/root(33)# ll /lib/ld-linux.so.2 lrwxrwxrwx 1 root root 22 Jul 21 20:35 /lib/ld-linux.so.2 -> ../lib32/ld-linux.so.2* root@impala:/root(34)# ll /lib32/libc-2.17.so -rwxr-xr-x 1 root root 9630601 Jul 21 20:33 /lib32/libc-2.17.so* But I try to reemerge glibc-2.17 on condor it fails with a similar error: CPP='x86_64-pc-linux-gnu-gcc -m32 -E -x c-header' /var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.T /bin/sh: /var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen: No such file or directory make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp] Error 127 make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17/sunrpc' make[1]: *** [sunrpc/others] Error 2 root@condor:/usr/src(43)# ll /var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen -rwxr-xr-x 1 portage portage 101380 Oct 19 13:10 /var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen* root@condor:/usr/src(44)# file /var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen /var/tmp/portage/sys-libs/glibc-2.17/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpcgen: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped What can I do?
After creating manually the /lib/ld-linux.so.2 I could again emerge glibc-2.17.
And now gcc-4.8.1-r1 was emerged.
*** Bug 487886 has been marked as a duplicate of this bug. ***