Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139241 - dev-lang/gnat-gpl-3.4.6.1 failed to compile
Summary: dev-lang/gnat-gpl-3.4.6.1 failed to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: ada team [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-04 14:04 UTC by Jakub Zawierucha
Modified: 2007-06-03 09:09 UTC (History)
0 users

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


Attachments
emerge -avd gnat-gpl (debug.txt,237.26 KB, text/plain)
2006-11-15 09:02 UTC, Jakub Zawierucha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Zawierucha 2006-07-04 14:04:19 UTC
Portage 2.1-r1 (default-linux/x86/no-nptl, gcc-3.4.6, glibc-2.3.6-r4, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.15
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS=""
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="avi bzip2 dri elibc_glibc font-server gnome isdnlog kernel_linux ncurses nls opengl pam pdflib perl posix pppd python qt3 qt4 readline reflection ssl truetype truetype-fonts udev userland_GNU x86 xml xml2 xorg xsl zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

 # emerge -av gnat-gpl

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

Calculating dependencies... done!
[ebuild  N    ] dev-lang/gnat-gpl-3.4.6.1  USE="nls" 0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
>>> Emerging (1 of 1) dev-lang/gnat-gpl-3.4.6.1 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking gcc-core-3.4.6.tar.bz2 ;-)
>>> checking RM-05-Html.zip ;-)
>>> checking gnat-gpl-3.4.6.1-src.tar.bz2 ;-)
>>> checking gnat-gpl-gcc-3.4.6.1.diff.bz2 ;-)
>>> checking gnatboot-3.4-i386.tar.bz2 ;-)
>>> Unpacking source...
>>> Unpacking gcc-core-3.4.6.tar.bz2 to /var/tmp/portage/gnat-gpl-3.4.6.1/work
>>> Unpacking RM-05-Html.zip to /var/tmp/portage/gnat-gpl-3.4.6.1/work
>>> Unpacking gnat-gpl-3.4.6.1-src.tar.bz2 to /var/tmp/portage/gnat-gpl-3.4.6.1/work
>>> Unpacking gnat-gpl-gcc-3.4.6.1.diff.bz2 to /var/tmp/portage/gnat-gpl-3.4.6.1/work
>>> Unpacking gnatboot-3.4-i386.tar.bz2 to /var/tmp/portage/gnat-gpl-3.4.6.1/work
 * Applying 51_all_gcc-3.4-libiberty-pic.patch ...                                                                                        [ ok ]
 * Applying 74_all_sh-pr24836.patch ...                                                                                                   [ ok ]
 * Replacing obsolete head/tail with POSIX compliant ones
 *  - fixed gcc/configure
 *  - fixed intl/configure
 *  - fixed libiberty/configure
 * Running elibtoolize in: gcc-3.4.6
 *   Applying portage-1.5.10.patch ...
 *   Applying relink-1.4.0a-GCC3.0-2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying tmp-1.3.5.patch ...
 * Using GNU config files from /usr/share/libtool
 *   Updating config.sub                                                                                                                  [ ok ]
 *   Updating config.guess                                                                                                                [ ok ]
 * Fixing misc issues in configure files
 *   Updating /var/tmp/portage/gnat-gpl-3.4.6.1/work/gcc-3.4.6/intl/configure ...                                                         [ ok ]
 *   Updating /var/tmp/portage/gnat-gpl-3.4.6.1/work/gcc-3.4.6/configure ...                                                              [ ok ]
 * Applying gnat-gpl-gcc-3.4.6.1.diff ...                                                                                                 [ ok ]
 * Applying gnat-Make-lang.in.patch ...                                                                                                   [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/gnat-gpl-3.4.6.1/work/gcc-3.4.6 ...
creating cache ./config.cache
checking host system type... i386-pc-linux-gnu
checking target system type... i386-pc-linux-gnu
checking build system type... i386-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
ld: crtbegin.o: No such file: No such file or directory
*** The command '/var/tmp/portage/gnat-gpl-3.4.6.1/work/usr/bin/gnatgcc -o conftest -march=pentium4 -O2 -pipe  -L/var/tmp/portage/gnat-gpl-3.4.6.1/work/usr/lib/gnatgcc/i386-pc-linux-gnu/3.4 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

!!! ERROR: dev-lang/gnat-gpl-3.4.6.1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called gnatbuild_src_compile
  gnatbuild.eclass, line 387:   Called gnatbuild_src_compile 'all'
  gnatbuild.eclass, line 393:   Called gnatbuild_src_compile 'configure' 'make-tools' 'bootstrap' 'gnatlib_and_tools' 'gnatlib-shared'
  gnatbuild.eclass, line 478:   Called die

!!! configure failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 George Shapovalov (RETIRED) gentoo-dev 2006-08-30 05:06:32 UTC
Hm, I cannot reproduce this. Do you by chance have an overlay setup and have some stale gnatbuild.eclass in it, or something else interfering? Although, your emerge info does not mention any overlays..
You can also try upping binutils to 2.17, however it worked fine here with 2.16 series as well.. Nonetheless, could you please test it with new binutils and report?

George
Comment 2 Pascal de Bruijn 2006-10-08 13:39:41 UTC
I can confirm this issue.
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2006-10-08 13:45:38 UTC
As per our conversation on irc in #gentoo, just a few minutes ago, I suspect this is related to the older binutils used by both you and Jakub. I'd suggest updating to at least 2.16.93 - I remember there were issues with that older version.
If you worry about the stability of that system you may quickpkg binutils, so that you can easily roll back if you encounter any problems (or even just after installing gnat. It is likely that, once installed, it will work fine with the older binutils).

Oh, and btw, you should have mentioned in the bug, that you also just tried gnat-gcc and got the same problem.

George
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2006-11-14 13:59:11 UTC
Any news on this? Did newer binutils help?
Comment 5 Jakub Zawierucha 2006-11-15 09:02:59 UTC
Created attachment 101992 [details]
emerge -avd gnat-gpl

I upgraded binutils to 2.17 but problem still exists (detailed debug in attachment). My current emerge --info:

blaszak ~ # emerge --info
Portage 2.1-r1 (default-linux/x86/no-nptl, gcc-3.4.6, glibc-2.3.6-r4, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeou                    t=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="avi bzip2 cracklib dlloader dri elibc_glibc font-server gnome iconv isdnlog kernel_linux ncurses nls opengl pam pdflib perl posix pppd p                    ython qt3 qt4 readline reflection ssl truetype truetype-fonts udev userland_GNU x86 xml xml2 xorg xsl zlib input_devices_keyboard input_devic                    es_mouse input_devices_evdev video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_car                    ds_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards                    _neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotio                    n video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa                     video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Jakub Zawierucha 2006-11-15 09:09:11 UTC
I think that GCC env could be problem:

ld: crtbegin.o: No such file: No such file or directory
*** The command '/var/tmp/portage/gnat-gpl-3.4.6.2006/work/usr/bin/gnatgcc -o conftest -march=pentium4 -O2 -pipe  -L/var/tmp/portage/gnat-gpl-3.4.6.2006/work/usr/lib/gnatgcc/i386-pc-linux-gnu/3.4 conftest.c' failed.
*** You must set the environment variable CC to a working compiler

It look like that basic libs are missing in link process. I don't know why...
Comment 7 George Shapovalov (RETIRED) gentoo-dev 2007-05-18 21:29:35 UTC
Does this still happen?
Looks like there were recently some changes to involved eclasses and I had to trace some other problems, however that was completely different stuff. Also, I just triggered a similar complaint on my system - about missing cc1. But that happened after I run "ebuild ... unpack setup compile" first, then had HDD failure and complete system reinstall and then issued "ebuild ... setup install". Rerunning the whole routine again (ebuild setup unpack compile install) removed any traces of this problem. This basically reinforces my suspicion, that these compaints are indicative of some problem with gcc/binutils or something related on your system. 


(In reply to comment #6)
> I think that GCC env could be problem:
Do you mean you have it defined? Try unsetting all CC/GCC/LDxxx/ADAxxx, etc related vars and rerunning emerge.


> ld: crtbegin.o: No such file: No such file or directory
> *** The command '/var/tmp/portage/gnat-gpl-3.4.6.2006/work/usr/bin/gnatgcc -o
> conftest -march=pentium4 -O2 -pipe 
> -L/var/tmp/portage/gnat-gpl-3.4.6.2006/work/usr/lib/gnatgcc/i386-pc-linux-gnu/3.4
> conftest.c' failed.
> *** You must set the environment variable CC to a working compiler
> 
> It look like that basic libs are missing in link process. I don't know why...
Well, the libs are there, they are supplied in the appropriate version of gnatboot that is pulled with the rest of the sources. The problem is that there is some leak in the environment set by the eclass. Some extra env var might have an effect, although I cannot think of any relevant one I did not already set in the eclass. Can you please post (or attach, if long) a list of your vars (just what "set" tells), if you still experience this problem?

George
Comment 8 George Shapovalov (RETIRED) gentoo-dev 2007-06-03 09:09:14 UTC
No reply in a while, I should assume there is no big trouble at this point. Besides, new versions of were added recently, you may try those too.
Closing the bug now.