Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528648 - dev-lang/gnat-gcc-4.6.4 - conftest.c:1: error: bad value (corei7-avx) for -march= switch
Summary: dev-lang/gnat-gcc-4.6.4 - conftest.c:1: error: bad value (corei7-avx) for -ma...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-08 15:02 UTC by Nikolaos Chatzidakis
Modified: 2014-11-08 22:11 UTC (History)
0 users

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


Attachments
build.log (build.log,3.95 KB, text/plain)
2014-11-08 15:02 UTC, Nikolaos Chatzidakis
Details
config.log (config.log,14.36 KB, text/plain)
2014-11-08 15:13 UTC, Nikolaos Chatzidakis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolaos Chatzidakis 2014-11-08 15:02:51 UTC
Created attachment 388864 [details]
build.log

Hello ppl,

I try to emerge gcc-gnat (needed by sci-electronics/ghdl) but it fails. Here is my build.log and my portage info:

Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.20, 3.17.2-gentoo x86_64)
=================================================================
System uname: Linux-3.17.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-3820_CPU_@_3.60GHz-with-gentoo-2.2
KiB Mem:    16352496 total,  12825948 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Sat, 08 Nov 2014 14:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.10 [enabled]
app-shells/bash:          4.3_p30
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r2
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.10-r1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.3
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7-avx -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=10 --quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo/"
LANG="el_GR.UTF-8"
LC_ALL="el_GR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbus declarative dri dts dvd dvdr embedded emboss encode exif fam firefox flac fontconfig fortran gdbm gif glamor gpm gtk iconv ipv6 jack jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg msn multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline sdl session spell sse sse2 sse3 sse4 sse4.1 ssl ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="el en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-08 15:09:44 UTC
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/dev-lang/gnat-gcc-4.6.4/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Please attach that config.log.
Comment 2 Nikolaos Chatzidakis 2014-11-08 15:13:44 UTC
Created attachment 388870 [details]
config.log

Here you are, hope it helps. Thank you for your time. :)
Comment 3 Nikolaos Chatzidakis 2014-11-08 17:21:47 UTC
(In reply to Jeroen Roovers from comment #1)
> checking for C compiler default output file name...
> configure: error: in `/var/tmp/portage/dev-lang/gnat-gcc-4.6.4/work/build':
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> 
> Please attach that config.log.

Jeroen, in the config.log, i see this: 

conftest.c:1: error: bad value (corei7-avx) for -mtune= switch

Maybe this is the issue? If it is, why is corei7-avx a bad value? I configure my flags using the gentoo wiki --> http://wiki.gentoo.org/wiki/Safe_CFLAGS#Core_i3.2Fi5.2Fi7_.26_Xeon_E3.2FE5.2FE7
Comment 4 David Kredba 2014-11-08 18:33:52 UTC
Because the gcc version used to build gnat-gcc is a a little old and does not "know" about existence of modern processors.
Drop any -march/mtune from ???FLAGS and it should work.
Comment 5 Nikolaos Chatzidakis 2014-11-08 18:48:55 UTC
(In reply to David Kredba from comment #4)
> Because the gcc version used to build gnat-gcc is a a little old and does
> not "know" about existence of modern processors.
> Drop any -march/mtune from ???FLAGS and it should work.

But, if i drop the march from my CFLAGS, won't there be a problem with portage? After all, that's why we have CFLAGS on gentoo... Isn't there any other workaround to emerge gnat-gcc?
Comment 6 Nikolaos Chatzidakis 2014-11-08 18:55:35 UTC
(In reply to Nikolaos Chatzidakis from comment #5)
> (In reply to David Kredba from comment #4)
> > Because the gcc version used to build gnat-gcc is a a little old and does
> > not "know" about existence of modern processors.
> > Drop any -march/mtune from ???FLAGS and it should work.
> 
> But, if i drop the march from my CFLAGS, won't there be a problem with
> portage? After all, that's why we have CFLAGS on gentoo... Isn't there any
> other workaround to emerge gnat-gcc?

Anyway, I removed my march from CFLAGS only to emerge gnat-gcc and it worked... I hope in the future this will be resolved.
Comment 7 David Kredba 2014-11-08 19:54:09 UTC
I meant temporarily, of course.

IMO it will be solved only if
a) ada will be accepted as main Gentoo supported language
or
b) gnat-gcc will be following trunk gcc more closely.

I prefer variant a).

Needed toolchain.eclass changes are very small for enabling Ada system wide, you only need working gnat-gcc once or Ada language included in Gentoo installation snapshots.
Comment 8 Nikolaos Chatzidakis 2014-11-08 22:11:04 UTC
(In reply to David Kredba from comment #7)
> I meant temporarily, of course.
> 
> IMO it will be solved only if
> a) ada will be accepted as main Gentoo supported language
> or
> b) gnat-gcc will be following trunk gcc more closely.
> 
> I prefer variant a).
> 
> Needed toolchain.eclass changes are very small for enabling Ada system wide,
> you only need working gnat-gcc once or Ada language included in Gentoo
> installation snapshots.

Thank you for the help, i hope in the future gnat-gcc won't have problems as such. :)