Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212105 - dev-lang/gnat-gcc-4.2.2 fails to build
Summary: dev-lang/gnat-gcc-4.2.2 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: ada team [OBSOLETE]
URL:
Whiteboard:
Keywords:
: 212109 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-02 19:06 UTC by Matti Valovirta
Modified: 2016-07-17 12:51 UTC (History)
1 user (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 Matti Valovirta 2008-03-02 19:06:13 UTC
emerge gnat-gcc fails with this error log:

make -C ../gcc/ada/tools -f ../Makefile \
          "CC=../../xgcc -B../../" "CFLAGS=-O2 -march=athlon-xp -mtune=athlon-xp -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes " "LDFLAGS=" "ADAFLAGS=-gnatpg -gnata" "INCLUDES=-I. -I.. -I../.. -I/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/gcc-4.2.2/gcc/ada -I/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/gcc-4.2.2/gcc/ada/../config -I/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/gcc-4.2.2/gcc/ada/../../include -I/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/gcc-4.2.2/gcc/ada/.." "ADA_INCLUDES=-I- -I../rts -I. -I/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/gcc-4.2.2/gcc/ada" "exeext=" "fsrcdir=/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/gcc-4.2.2/gcc/ada" "srcdir=/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/gcc-4.2.2/gcc/ada" "GNATBIND=../../gnatbind" "TOOLSCASE=native" \
          ../../gnatmake ../../gnatlink ../../gnatbl
make[3]: Entering directory `/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/build/gcc/ada/tools'
../../xgcc -B../../ -c -O2 -march=athlon-xp -mtune=athlon-xp -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes       -gnatpg -gnata -g -O1 -fno-inline \
              -I- -I../rts -I. -I/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/gcc-4.2.2/gcc/ada ../rts/a-except.adb -o a-except.o
gnat1: error: unrecognized command line option "-mcpu=athlon-xp"
make[3]: *** [a-except.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/build/gcc/ada/tools'
make[2]: *** [gnattools-native] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/build/gnattools'
make[1]: *** [all-gnattools] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/work/build'
make: *** [bootstrap] Error 2
 *
 * ERROR: dev-lang/gnat-gcc-4.2.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3597:  Called gnatbuild_src_compile 'src_compile' 'src_compile' 'configure'
 *             environment, line 2512:  Called die
 * The specific snippet of code:
 *                       emake bootstrap || die "bootstrap failed"
 *  The die message:
 *   bootstrap 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.2.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/gnat-gcc-4.2.2/temp/environment'.
 *


Reproducible: Always

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




/etc/make.conf:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example

CFLAGS="-march=athlon-xp -mtune=athlon-xp -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"

CHOST="i686-pc-linux-gnu"

CXXFLAGS="${CFLAGS}"
CXXFLAGS="${CXXFLAGS} -fvisibility-inlines-hidden"

MAKEOPTS="-j2"
USE="opengl 3dnow 3dnowext mmx mmxext sse X alsa apm -arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt ctype -cups dba eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp -gnome gpm -gstreamer gtk gtk2 gtkhtml guile idn imlib ipv6 jpeg kde kernel_linux lcms libg++ libwww mad memlimit mikmod mng motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg oss pam pcre pdflib perl png posix python qt quicktime readline sdl session simplexml slang soap sockets spell spl ssl tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev userland_GNU vorbis x86 xml xml2 xsl xv zlib -wifi musepack xvid dvd dvdread dvdr dri unicode dga matroska theora rtc x264 win32codecs aac a52 cpudetection threads lm_sensors kdeenablefinal kdehiddenvisibility flac jpeg2k dts svga mp4 X remote aalib cdda cddb hal skins wxwindows acpi dmi qt3 libcaca wmf css ffmpeg musicbrainz sndfile vcd glitz xcomposite xine graphviz dvb lirc nsplugin dbus ipod qt4 logitech-mouse ntfs reiserfs xscreensaver png sdl gphoto2 -qt4 xcb"
FEATURES="parallel-fetch fixpackages"
ALSA_CARDS="cs46xx,cs46xx-new-dsp"
LINGUAS="fi fi_FI en_GB en"
INPUT_DEVICES="keyboard mouse evdev joystick"
VIDEO_CARDS="radeon fbdev vesa"
LIRC_DEVICES="serial"
CAMERAS="canon ptp2 template"
source /usr/portage/local/layman/make.conf


-----------------------------------------------
emerge --info:

Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 i686)
=================================================================
System uname: 2.6.23-gentoo-r8 i686 AMD Athlon(TM) XP 2600+
Timestamp of tree: Sun, 02 Mar 2008 08:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="fi fi_FI en_GB en"
MAKEOPTS="-j2"
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/portage/local/layman/sunrise /usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa apm audiofile avi berkdb bitmap-fonts bzip2 cairo cdda cddb cdr cli cpudetection cracklib crypt css ctype dba dbus dga dmi dri dts dvb dvd dvdr dvdread eds emboss encode esd ethereal evo exif expat fam fastbuild ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glitz glut gmp gphoto2 gpm graphviz gtk gtk2 gtkhtml guile hal iconv idn imlib ipod ipv6 isdnlog jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos lcms ldap libcaca libg++ libwww lirc lm_sensors logitech-mouse mad matroska memlimit midi mikmod mmx mmxext mng motif mozilla mp3 mp4 mpeg mudflap musepack musicbrainz ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp oss pam pcre pdf pdflib perl png posix pppd python qt qt3 qt3support quicktime readline reflection reiserfs remote rtc sdl session simplexml skins slang sndfile soap sockets spell spl sse ssl svg svga tcltk tcpd theora threads tiff tokenizer truetype truetype-fonts type1-fonts udev unicode vcd vorbis win32codecs wmf wxwindows x264 x86 xcb xcomposite xine xml xml2 xorg xscreensaver xsl xv xvid zlib" ALSA_CARDS="cs46xx,cs46xx-new-dsp" 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" 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" CAMERAS="canon ptp2 template" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi fi_FI en_GB en" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="radeon fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-02 19:15:18 UTC
(In reply to comment #0)
> gnat1: error: unrecognized command line option "-mcpu=athlon-xp"

Anything unclear about this? Don't use -mcpu, been deprecated for ages on x86/amd. (On a side note, -fvisibility-inlines-hidden is a rather bad idea).
Comment 2 George Shapovalov (RETIRED) gentoo-dev 2008-03-02 19:47:42 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > gnat1: error: unrecognized command line option "-mcpu=athlon-xp"
> 
> Anything unclear about this? Don't use -mcpu, been deprecated for ages on
> x86/amd. (On a side note, -fvisibility-inlines-hidden is a rather bad idea).
Besides, -march implies -mtune, so all you need is -march and -O2 (and you may also keep -fomit-frame-pointer, x86 is one of the few arches where it is usefull, if you don't care about being able to debug stuff). So, please remove -mtune and -mcpu options from your CFLAGS.

No problem whatsoever here. I'll close the bug. Please reopen if you hit something without unsupported options.

George

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-02 19:58:39 UTC
*** Bug 212109 has been marked as a duplicate of this bug. ***
Comment 4 Matti Valovirta 2008-03-02 20:02:34 UTC
Thank you for your quick reply.
I will do what you suggested and report if any problems should arise. Thanks!