Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186375 - dev-lang/gnat-gpl-4.1.3.2007 fails - C compiler cannot create executables.
Summary: dev-lang/gnat-gpl-4.1.3.2007 fails - C compiler cannot create executables.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: ada team [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-23 20:46 UTC by Nicholas Omann
Modified: 2007-11-08 10:54 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Omann 2007-07-23 20:46:43 UTC
When I Emerge gnat-gpl it errors in configuration with the following error:

checking for gcc... /var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/bin/gnatgcc
checking whether the C compiler (/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/bin/gnatgcc -O2 -mtune=athlon-xp -pipe -L/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/lib/gnatgcc/i486-pc-linux-gnu/4.1) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
 * 
 * ERROR: dev-lang/gnat-gpl-4.1.3.2007 failed.
 * Call stack:
 *   ebuild.sh, line 1647:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1327:   Called gnatbuild_src_compile
 *   gnatbuild.eclass, line 371:   Called gnatbuild_src_compile 'all'
 *   gnatbuild.eclass, line 377:   Called gnatbuild_src_compile 'configure' 'make-tools' 'bootstrap' 'gnatlib_and_tools' 'gnatlib-shared'
 *   gnatbuild.eclass, line 454:   Called die
 * 
 * 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-gpl-4.1.3.2007/temp/build.log'.
 * 


Reproducible: Always

Steps to Reproduce:




Both: gcc 4.1.2 and 4.2.0 are installed.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-23 20:53:01 UTC
emerge --info please
Comment 2 Nicholas Omann 2007-07-23 21:54:09 UTC
Portage 2.1.3_rc9 (default-linux/x86/2007.0/desktop, gcc-4.2.0, glibc-2.6-r0, 2.6.22-gentoo-r1 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.22-gentoo-r1 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 23 Jul 2007 20:20:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ "
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.namerica.gentoo.org/gentoo-portage"
USE="X Xaw3d acl acpi aim alsa avahi bash-completion berkdb bitmap-fonts bonobo bzip2 cairo cdr cjk cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emacs emboss encode esd evo fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk gtkhtml hal iconv imagemagick imap ipv6 isdnlog jabber jpeg kerberos ldap libg++ mad matroska midi mikmod mp3 mpeg mplayer msn mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support quicktime readline real reflection samba sdl session spell spl ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb videos vorbis win32codecs x86 xcomposite xfce xine xml xorg xscreensaver xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2007-08-13 09:38:59 UTC
Hi Nicholas.

Sorry for the delay, I was away forsometime.

I cannot reproduce this:

checking whether the C compiler (/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/bin/gnatgcc -march=athlon64 -O2 -pipe -fomit-frame-pointer -L/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/lib/gnatgcc/x86_64-pc-linux-gnu/4.1) works... yes

I suspected this might be related to gcc-4.2 that you have active, so I switched to it, but it all seems fine. 

AsI see, you have in your emerge --info:

CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -pipe"
CHOST="i486-pc-linux-gnu"

1. Why CHOST != i686-pc-linux-gnu? Did you edit this in make.conf yourself? (normally you shouldn't change this)
2. Why wouldn't you use -march=athlon-xp instead of-mtune?
What is the actual architecture?

Also
3. Do you, by chance, have multiple SLOTs of gcc installed andswitch back and forth often? If so, did you use eselect compiler or gcc-config? IIRC there were problems with eselect compiler module.

This error usually happens when you have your toolchain misconfigured. I guess you recently rebuilt your system with gcc-4.2, chances are something is missing. I am afraid I can only suggest running emerge -e world if above questions do not point to something apparent..

George
Comment 4 Robert Pearce 2007-08-31 19:03:44 UTC
(In reply to comment #3)
I've also had this issue, on other ebuilds (most recently on sys-libs/db-4.3.29-r2)

I did some digging and found that the ./configure script had called GCC with invalid options, in my case passing --default-symver to ld

I think last time it happened I figured out a work-around, but I can't remember what, and I think that was on a machine that had other problems whereas today's incident was on a believed-to-be-clean machine.

BTW, I'm using GCC-4.1.2 on a P3 with CHOST=i686-pc-linux-gnu and CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
Comment 5 Robert Pearce 2007-09-01 19:15:09 UTC
I've now fixed my instance of a problem very like this. It was caused by (one of) two configuration issues:
 -  For historical reasons, I had blocked the latest glibc in /etc/portage/package.mask and forgotten to remove that block
 -  The system was using an old version of binutils

Fixing the first (and updating glibc) didn't help, in fact it made the problem universal. But running binutils-config to fix the second seems to have cured the issue. Nicholas, I suggest you verify that you are actually *using* binutils-2.17, not just that it's installed!
Comment 6 George Shapovalov (RETIRED) gentoo-dev 2007-09-01 21:34:03 UTC
Thanks Robert!
Yes, in my experience all reports like this were caused by local misconfiguration. Majority (or may be even all) were specifically due to problems with binutils..

George
Comment 7 George Shapovalov (RETIRED) gentoo-dev 2007-11-08 10:54:58 UTC
no additional reports in quite some time. Seems to work otherwise. Closing the bug.