Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251489 - dev-lang/gnat-gcc-4.3.2 - configure: error: C compiler cannot create executables
Summary: dev-lang/gnat-gcc-4.3.2 - configure: error: C compiler cannot create executables
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-18 15:38 UTC by Alexandre Sanches
Modified: 2016-07-17 12:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,3.52 KB, text/plain)
2008-12-18 17:20 UTC, Alexandre Sanches
Details
config.log (config.log,12.84 KB, text/plain)
2008-12-18 22:30 UTC, Alexandre Sanches
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Sanches 2008-12-18 15:38:07 UTC
gnat-gcc refuses to compile.

Reproducible: Always

Steps to Reproduce:
1.emerge gnat-gcc
2.
3.

Actual Results:  
# emerge -av virtual/ada

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

Calculating dependencies... done!
[ebuild  N    ] dev-lang/gnat-gcc-4.3.2  USE="nls" 0 kB
[ebuild  N    ] virtual/ada-2005  0 kB

Total: 2 packages (2 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 2) dev-lang/gnat-gcc-4.3.2
 * gcc-core-4.3.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                 [ ok ]
 * gnatboot-4.1-amd64.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                             [ ok ]
 * gcc-ada-4.3.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                      [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                     [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking gcc-core-4.3.2.tar.bz2 to /var/tmp/portage/dev-lang/gnat-gcc-4.3.2/work
>>> Unpacking gnatboot-4.1-amd64.tar.bz2 to /var/tmp/portage/dev-lang/gnat-gcc-4.3.2/work
>>> Unpacking gcc-ada-4.3.2.tar.bz2 to /var/tmp/portage/dev-lang/gnat-gcc-4.3.2/work
 * Fallback PaX marking -E
 *      /var/tmp/portage/dev-lang/gnat-gcc-4.3.2/work/usr/bin/gnat1
 TYPE    PAX   FILE 
ET_EXEC ---xE- /var/tmp/portage/dev-lang/gnat-gcc-4.3.2/work/usr/bin/gnat1 
 * Replacing obsolete head/tail with POSIX compliant ones
 *  - fixed fixincludes/configure
 *  - fixed gcc/configure
 *  - fixed gnattools/configure
 *  - fixed intl/configure
 *  - fixed libada/configure
 *  - fixed libcpp/configure
 *  - fixed libdecnumber/configure
 *  - fixed libgcc/configure
 *  - fixed libgomp/configure
 *  - fixed libiberty/configure
 *  - fixed libmudflap/configure
 *  - fixed libssp/configure
 * updating multilib directories to be: ../lib64 ../lib32
 * Running elibtoolize in: gcc-4.3.2
 *   Applying install-sh-1.5.4.patch ...
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating config.sub                                                                                                                                                                                   [ ok ]
 *   Updating config.guess                                                                                                                                                                                 [ ok ]
 * Fixing misc issues in configure files
 * Running autoconf ...                                                                                                                                                                                    [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-lang/gnat-gcc-4.3.2/work/gcc-4.3.2 ...
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/dev-lang/gnat-gcc-4.3.2/work/usr/bin/gnatgcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
 * 
 * ERROR: dev-lang/gnat-gcc-4.3.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3749:  Called gnatbuild_src_compile 'configure' 'make-tools' 'bootstrap'
 *             environment, line 2647:  Called die
 * The specific snippet of code:
 *                       CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" "${S}"/configure --prefix=${PREFIX} --bindir=${BINPATH} --includedir=${INCLUDEPATH} --libdir="${LIBPATH}" --libexecdir="${LIBEXECPATH}" --datadir=${DATAPATH} --mandir=${DATAPATH}/man --infodir=${DATAPATH}/info --program-prefix=gnat --enable-languages="c,ada" --with-gcc --enable-threads=posix --enable-shared --with-system-zlib ${confgcc} || die "configure failed"
 *  The die message:
 *   configure failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/gnat-gcc-4.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/gnat-gcc-4.3.2/temp/environment'.
 * 

>>> Failed to emerge dev-lang/gnat-gcc-4.3.2, Log file:

>>>  '/var/tmp/portage/dev-lang/gnat-gcc-4.3.2/temp/build.log'

 * Messages for package dev-lang/gnat-gcc-4.3.2:

 * Fallback PaX marking -E
 *      /var/tmp/portage/dev-lang/gnat-gcc-4.3.2/work/usr/bin/gnat1
 * 
 * ERROR: dev-lang/gnat-gcc-4.3.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3749:  Called gnatbuild_src_compile 'configure' 'make-tools' 'bootstrap'
 *             environment, line 2647:  Called die
 * The specific snippet of code:
 *                       CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" "${S}"/configure --prefix=${PREFIX} --bindir=${BINPATH} --includedir=${INCLUDEPATH} --libdir="${LIBPATH}" --libexecdir="${LIBEXECPATH}" --datadir=${DATAPATH} --mandir=${DATAPATH}/man --infodir=${DATAPATH}/info --program-prefix=gnat --enable-languages="c,ada" --with-gcc --enable-threads=posix --enable-shared --with-system-zlib ${confgcc} || die "configure failed"
 *  The die message:
 *   configure failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/gnat-gcc-4.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/gnat-gcc-4.3.2/temp/environment'.

Expected Results:  
gnat-gcc should compile

There is a lot of testing crap on this machine, but I was hoping a compiler's compilation would not be affected by this all. I don't really understand the error message : the configure script seems to be trying to compile C code with the bootstrap Ada compiler and complain that it (logically) doesn't work... and then nothing, it just crashes.
It may be something wrong with my config : I have to repeat this is a testing machine. But probably an explanation should be brought then.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-18 16:56:52 UTC
Please post your `emerge --info' too and attach the config.log, then reopen this bug report.
Comment 2 Alexandre Sanches 2008-12-18 17:18:35 UTC
$ emerge --info
Portage 2.1.6.1 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.27-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-glibc2.2.5
Timestamp of tree: Thu, 18 Dec 2008 13:43:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=native -O2"
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/config /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -march=native -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --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="R X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter ada adns afs akode allegro alsa amd64 amr amrnb amrwb ao apache2 applet ares arts artworkextra aspell aspnet asyncns atm audacious audiofile auth automount avahi bash-completion battery beagle berkdb binfilter bittorrent bl bluetooth boehm-gc boost bsf bugzilla bzip2 c++ cairo caps catalogs cblas cdda cddb cdf cdio cdparanoia cdr cegui cg cgi chipcard chm cli consolekit contrib cpufreq cracklib crypt cscope css cups curl cvs cxx daap darcs dbus designer-plugin deskbar devhelp devil dga dhcp dia diskio djvu doc dri dts dv dvb dvd dvdr dvdread dvi dxr3 eap-tls eds elf emacs emovix encode epiphany epoll epydoc esd examples excel exif expat fam fame fastcgi fasttrack fbcon ffmpeg fftw finger firefox fits flac fltk fluidsynth fontconfig fontforge fortran freetds freetts ftp fuse gajim galago gcc-libffi gcdmaster gcj gcrypt gd gdbm gedit geos ggi gif gimp git glade glep glib glitz glsa glut glw gmath gml gmp gnokii gnome gnome-keyring gnome-print gnomecanvas gnomecd gnustep gnutella gnutls gopher gpac gpg gphoto2 gpm grace graphviz gsf gsl gsm gstreamer gtk gtkhtml guile gzip hal haskell hbci hddtemp hdf5 html htmlhandbook ical iconv icu id3 id3tag idea idn ieee1394 imagemagick imlib inkjar inotify ipv6 irc irda irman irrlicht isdnlog ithreads jabber jack jadetex java java6 javascript jbig jingle joystick jpeg jpeg2k jsapi kde kde4 kdeenablefinal kerberos kexi kpathsea ladspa lame lapack laptop latex lcd lcms ldap libffi libgda libnotify libsamplerate libv4l2 libwww lirc live lm_sensors log4j logitech lua lucene lzma lzo mad maildir mailwrapper matroska mbox mbrola mdb memcache midi mikmod mjpeg mmap mmx mmxext mng modperl modplug mono moonlight motif mouse mozdevelop mozdom mp2 mp3 mp4 mpd mpeg mpeg2 mplayer mppe-mppc msn mssql mtp mudflap multilib musepack musicbrainz mysql mysqli mythtv nano-syntax nas nautilus ncurses nemesi netcdf netjack netpbm network networkmanager nfs nis nls nntp nptl nptlonly nsplugin nuv objc objc++ ocaml odbc odk offensive ofx ogdi ogg ogm ole openal openct openexr opengl openmp oss pam pango pch pcre pcsc-lite pda pdf perl php physfs pidgin pkcs11 plib plotutils plugins png pnm portage portaudio postgres postscript povray ppds pppd prelude proj pth pulseaudio pvr python qa qhull qt3 qt3support qt4 quicktime rar raw rdesktop readline reflection remote replytolist resolvconf rrdcgi rrdtool rss rtc ruby samba sasl scanner schroedinger script sdl sdl-image sdl-sound server servletapi session sftp silc skey slang slp smartcard smi smp sms smux sndfile snmp sound soundtouch soup source sourceview sox speex spell spl sql sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 startup-notification stk stlport subversion svg swig sylpheed sysfs syslog szip t1lib taglib tagwriting tcl tcpd tga themes theora threads threadsafe thunderbird tiff timidity tk tools totem tracker truetype tunepimp twolame unicode usb utils uuid v4l v4l2 valgrind vcd vdr vga vim vim-syntax visibility visualization vorbis wavpack webdav wifi wma wmf wxwindows x264 xanim xattr xcb xcomposite xerces-c xface xforms xft xim xine xinetd xml xmldoclet xmp xorg xpm xprint xqilla xrandr xscreensaver xslt xulrunner xv xvid xvmc yv12 zeroconf zlib zsh-completion" 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" LIRC_DEVICES="all" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" USERLAND="GNU" VIDEO_CARDS="vesa vga svga fbdev v4l v4l2 nv nvidia"
Comment 3 Alexandre Sanches 2008-12-18 17:20:06 UTC
Created attachment 175759 [details]
build.log
Comment 4 Alexandre Sanches 2008-12-18 17:21:45 UTC
Sir yes sir !
Comment 5 Rafał Mużyło 2008-12-18 17:40:24 UTC
Quoting:
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

Please, attach.
Comment 6 Alexandre Sanches 2008-12-18 22:30:00 UTC
Created attachment 175813 [details]
config.log
Comment 7 Wormo (RETIRED) gentoo-dev 2008-12-19 07:40:54 UTC
From the attached config.log:

error: bad value (native) for -march= switch

Take out '-march=native' from your CFLAGS while compiling gnat and you should be ok.
Comment 8 Alexandre Sanches 2008-12-19 15:23:26 UTC
"gnatboot-4.1-amd64.tar.bz2" is used.

... GCC 4.1 did not support the -march=native flag value. Shame on me, that bug is invalid. Thanks, all.