Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 110831

Summary: Problem while emerge dev-lang/gnat-3.43
Product: Gentoo/Alt Reporter: Dirk Schoenberger <dirk.schoenberger>
Component: Mac OSXAssignee: ada team [OBSOLETE] <ada+disabled>
Status: RESOLVED CANTFIX    
Severity: normal CC: dark, dirk.heinrichs.ext, ppc-macos
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dirk Schoenberger 2005-10-29 14:40:41 UTC
While trying to emerge gnat-3.43 I ran into the following problem

>>> Source unpacked.
creating cache ./config.cache
checking host system type... powerpc-apple-darwin8.2.0
checking target system type... powerpc-apple-darwin8.2.0
checking build system type... powerpc-apple-darwin8.2.0
checking for a BSD compatible install... /bin/install -c
/var/tmp/portage/gnat-3.43/work/gnat-3.15p-powerpc-unknown-linux-gnu/bin/gcc: line 17: /var/
tmp/portage/gnat-3.43/work/gnat-3.15p-powerpc-unknown-linux-gnu/bin/real/gcc: cannot execute 
binary file
/var/tmp/portage/gnat-3.43/work/gnat-3.15p-powerpc-unknown-linux-gnu/bin/gcc: line 17: /var/
tmp/portage/gnat-3.43/work/gnat-3.15p-powerpc-unknown-linux-gnu/bin/real/gcc: Unknown 
error: 0
*** The command 'gcc -o conftest -O -gnatpgn   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.22-r3 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0 Power 
Macintosh)
===============================================================
==
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin8"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin8"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/
gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc aalib emboss gdbm gif imagemagick libwww nls ogg opengl png ppc-macos qt sdl slang 
tetex tiff vorbis userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Dirk Heinrichs 2006-01-02 04:18:24 UTC
I get (nearly) the same on a Linux system, updating 3.43 to 3.44:

>>> Compiling source in /gentoo/build/portage/gnat-3.44-r2/work/gcc-3.4.4 ...
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
*** The command '/gentoo/build/portage/gnat-3.44-r2/work/usr/bin/gcc -o conftest -O3 -march=pentium4 -fomit-frame-pointer  -L/gentoo/build/portage/gnat-3.44-r2/work/usr/lib/gcc/i486-linux-gnu/3.4.5 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

It seems it is trying to execute gcc from a strange location.
Comment 2 Fabian Groffen gentoo-dev 2006-01-02 07:20:01 UTC
Hmmm, David, does this ring a bell for you perhaps?
Dirk Heinrich, can you post your emerge info please?
Comment 3 Dirk Heinrichs 2006-01-02 23:30:00 UTC
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r1, 2.6.14.4 i686)
=================================================================
System uname: 2.6.14.4 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.0_pre12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/gentoo/build"
PORTDIR="/gentoo/portage"
PORTDIR_OVERLAY="/gentoo/build/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acl acpi activefilter ada afs alsa aotuv arts asf audiofile avi bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 caps cdb cdda cddb cdio cdparanoia cdr chipcard client-only cpudetection crypt cups dlloader doc dri dtaus dv dvd dvdread edl emacs emboss encode exif expat fam ffmpeg flac font-server foomaticdb ftp gd-external gdbm geldkarte gif glut gmp gnutls gphoto2 gpm gtk2 hardened hbci httpd icq idn imagemagick imap imlib ipppd irda irmc isdnlog jpeg jpeg2k kcal kde kerberos latex lcms ldap libg++ libwww lm_sensors lua lzo mad madwifi maildir mbox mime mng motif mozsvg mp3 mpeg mule musicbrainz nas ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin objc ofx ogg oggvorbis openexr opengl pam pam_console pcre pdflib perl perlsuid pg-intdatetime pic png postgres ppds pppd pwdb python qt quicktime rdesktop readline real recode rtc savedconfig slang slp sms sockets socks5 speedo speex spell sql sse ssl stream subversion svg svga symlink sysfs tcpd tetex theora threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vim-with-x vlm vorbis wifi win32codecs wxwindows xine xml2 xprint xscreensaver xv xvid xvmc zeroconf zlib elibc_glibc kernel_linux linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 4 Sven E. 2006-01-03 20:54:50 UTC
Well, I can reproduce Dirk Heinrichs error during the configure on x86 for the 3.45 build ... No matter which gcc (3.3.x through 4.1) version I try ...
Comment 5 Fabian Groffen gentoo-dev 2006-01-04 00:15:40 UTC
I don't know if it's the same problem, but it's close enough for it to be first resolved for other archs.  Handing bug over to ada herd.
Comment 6 George Shapovalov (RETIRED) gentoo-dev 2006-01-04 01:32:09 UTC
Sven: Which Dirk are yo referring to? The gcc_s problem should be gone - I fixed it back in 3.44. If this is the ppc problem, well, I am not sure I can do much about it unfortunately, as I do not have a ppc system on me. This is best addressed by David Holm I suspect, but he is on a limited Internet access now.. Can somebody on ppc please try the gnat-3.45 and report (if Sven's report is not on that effect)?

One more word on gcc_s problem - I hit link failure by gnat (it was installing Ok) with complaint about gcc_s after I upgraded my gcc from 3.4.4 to 3.4.5 yesterday, so I issued a quick fix with gnat-3.45. That should fix the use time issue with gcc_s, if anybody hits it, the compile time issue should not happen with gnat-3.44-r2 and onwards..

George
Comment 7 Fabian Groffen gentoo-dev 2006-01-04 01:46:47 UTC
is 'DEPEND="=sys-devel/gcc-3.4*"' really necessary?  ppc-macos only has GCC4 and I believe that Dirk Heinrich had a GCC4 problem too...  gnat-3.43 seems to be the last that only needs tcsh (on x86).  Looking at that ebuild I understand why it won't ever compile too; pcc-macos will not understand ppc-linux binaries.

If you don't want to use this bug for the gcc4 problems, then I'd like to close it as it's an upstream problem for ppc-macos.  (see original reporter problem)
Comment 8 Dirk Heinrichs 2006-01-04 02:12:34 UTC
(In reply to comment #7)
> is 'DEPEND="=sys-devel/gcc-3.4*"' really necessary?  ppc-macos only has GCC4
> and I believe that Dirk Heinrichs had a GCC4 problem too...

No, I don't. I tested with both GCC 3.4.5 and 4.0.2, same results.
Comment 9 George Shapovalov (RETIRED) gentoo-dev 2006-01-04 02:21:59 UTC
> is 'DEPEND="=sys-devel/gcc-3.4*"' really necessary?  ppc-macos only has GCC4
May be not with gnat-3.45. That gcc_s lib was possibly the last piece of external gcc used, but I haven't tested it with any other gcc yet..

George
Comment 10 Sven E. 2006-01-04 05:10:58 UTC
@George:

I really meant the gcc_s problem ... I was to tired to look further into this myself ...  HEre's again what happens:

>>> Compiling source in /var/tmp/portage/gnat-3.45/work/gcc-3.4.5 ...
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
*** The command '/var/tmp/portage/gnat-3.45/work/usr/bin/gcc -o conftest -O3 -mtune=pentium4 -march=pentium4  -L/var/tmp/portage/gnat-3.45/work/usr/lib/gcc/i486-linux-gnu/3.4.5 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

!!! ERROR: dev-lang/gnat-3.45 failed.
!!! Function src_compile, Line 100, Exitcode 1
!!! configure failed
!!! If you need support, post the topmost build error, NOT this status message.


And an emerge info gives:

Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.14-verfeiert i686)
=================================================================
System uname: 2.6.14-verfeiert i686 Intel(R) Xeon(TM) CPU 2.66GHz
Gentoo Base System version 1.12.0_pre12
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=pentium4 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -mtune=pentium4 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit X Xaw3d a52 aac aalib acl acpi alsa artworkextra audiofile avi berkdb bidi bitmap-fonts browserplugin bzip2 cairo canvas caps cddb cdparanoia cdr cjk crypt cups curl dbus dga directfb divx4linux djbfft dts dv dvb dvd dvdr dvdread dvi dynagraph eds emboss encode esd exif expat extensions fam fbcon ffmpeg firefox flac foomaticdb fortran gcj gd gdbm ggi gif glut gmp gnome gnutls gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal howl hpn icu idea idn ieee1394 imagemagick imlib ipv6 jack jack-tmpfs java javascript jpeg kerberos krb4 lcms ldap libcaca libclamav libg++ libgda libwww live logrotate lzo mad matroska mikmod mmap mmx mmxext mng mono motif mozcalendar mozsvg mp3 mpeg musepack nas nautilus ncurses netboot network nfs nls nntp nptl nptlonly nsplugin nvidia objc odbc offensive ogg oggvorbis openal opengl oss pam pcre pdflib perl plotutils png portaudio postgres pwdb python quicktime quotas readline real rtc ruby samba sdl skey slang smp sndfile snmp socks5 speex spell sse sse2 ssl svg sysfs t1lib tcltk tcpd tetex tga theora threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vidix vorbis win32codecs wmf xanim xine xml2 xmms xprint xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS

--------------------------------------------------------------------

If anyone sees right away something that might cause the problem and what I could do as a work around, I'd appreciate any hint.

Aside from that - I was wondering - could this be a problem with gcc-config and the whoel compiler switching thing (maybe a brogen gcc-config version?)
Comment 11 George Shapovalov (RETIRED) gentoo-dev 2006-01-04 06:40:03 UTC
Try synking and emerging it again? Although I only repackaged the install part when issuing gnat-3.45, so its not likely to change much. However I tested it fine yesterday in my 32bit chroot.. Will try again tonight.
Do you hit this with gnat-3.44-r2?

> Aside from that - I was wondering - could this be a problem with gcc-config and
> the whoel compiler switching thing (maybe a brogen gcc-config version?)
Possible, considering that this thing started surfacing just recently (as toolchain.eclass gets adjusted) and usually you hit it after gcc update..
So, try emerging gcc again? I hope you have a .tbz2 (binary) of your previous gcc? Then you could downgrade and test again.. It is usefull to do quickpkg gcc before you emerge a new version anyway.

can you please also check what instances of libgcc_s you have on your system:
find /usr/lib -iname libgcc_s*
find /lib -iname libgcc_s*
 and post the list. It would also be good if you could identify where each of them is coming from:
equery belongs file_from_found_list

Although it should not need them - it should use the one that is provided..

Oh, if above does not help, please open a new bug (with a proper summary too) - this one started on ppc stuff, so lets not dump just everything here..

George
Comment 12 George Shapovalov (RETIRED) gentoo-dev 2006-04-13 13:36:42 UTC
Ok, as I see the only unresolved problem in this bug is the bootstrap not working on ppc. Everything else is fixed even in the legacy dev-lang/gnat. As a matter of fact new split and SLOTted gnat compilers are in and working much better than anything and are going to be unmasked. However we do not have any working version on ppc at the moment. In fact the only version that worked on ppc is now masked (it no longer builds with new toolchain), so, in fact, we do not have any gnat on ppc atm :(. To get it back, we need somebody with ppc hardware interested in Ada, plus it will have to be based off the new, split compilers, so this particular bug will not have any meaning then..
Considering this I am closing it now with CANTFIX..

George