Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320137 - sys-devel/llvm-gcc-2.7 does not build on amd64 with -combine C{,XX}FLAGS
Summary: sys-devel/llvm-gcc-2.7 does not build on amd64 with -combine C{,XX}FLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 10:54 UTC by Radu Benea
Modified: 2010-05-26 12:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---
radub82: Bugday?


Attachments
build log (llvm-gcc-combine_build.log,1.66 MB, text/plain)
2010-05-17 12:14 UTC, Radu Benea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radu Benea 2010-05-17 10:54:36 UTC
there's a command supposed to create libgcc/./tmp-libgcc.map running under dir {...}/sys-devel/llvm-gcc-2.7/work/llvm-gcc-4.2-2.7.source/obj/gcc and the generated file is empty (size 0)
when ld is called with that file as a parameter I get:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:libgcc/./libgcc.map:1: syntax error in VERSION script

build log coming soon

Reproducible: Always




Portage 2.2_rc67 (hardened/linux/amd64/10.0/no-multilib, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-r2-x86_64-AMD_Athlon-tm-_X2_Dual_Core_Processor_BE-2300-with-gentoo-1.12.13
Timestamp of tree: Mon, 17 May 2010 07:00:22 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -mtune=k8 -O2 -pipe -msse3 -combine"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -mtune=k8 -O2 -pipe -msse3 -combine"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs=3 --with-bdeps y --load-average=4"
FEATURES="assume-digests collision-protect distlocks fixpackages metadata-transfer news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS=" http://ftp.nren.ro/mirrors/gentoo.org/ http://mirrors.xservers.ro/gentoo/ http://ftp.romnet.org/gentoo/ http://mirrors.evolva.ro/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j3 --load-average=4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/x11 /var/lib/layman/hardened-development"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi akonadi alsa amd64 apache2 apm attr bash-completion branding bzip2 cairo caps cjk cli clucene consolekit cracklib crypt cscope cups curl curlwrappers cxx dbus disk-partition djvu dmx dri dv dvd encode esd exif expat faac faad ffmpeg flac fontconfig fontforge fuse gd gdbm gif glibc-omitfp gmp gnome gnutls gpm graphviz gs gstreamer hal hardened hash hdri iconv icu idn imagemagick imlib inotify ipv6 jbig jpeg jpeg2k justify kde kdehiddenvisibility lcms libnotify lm_sensors logitech-mouse lzo mcrypt md5sum mhash mmap mmx mmxext mng modules mp3 mp4 mpeg mpi mtp mudflap musicbrainz mysql ncurses nepomuk networkmanager nls nptl nptlonly nss ogg openexr opengl openmp oss otr pam pango passwdqc pcre pdf perl phonon php pic pie plasma png policykit posix postgres povray ppp pppd pppoe python python3 q32 q8 qt3support qt4 rar raw rdesktop readline reflection rle rss rtc samba sasl scanner semantic-desktop session sms spell spl sqlite sse sse2 sse3 ssh ssl startup-notification svg sysfs tcpd theora threads thumbnail tidy tiff truetype type3 ucs ucs2 unicode urandom usb utf utf8 utils v4l v4l2 vhosts vim-syntax vnc vorbis webkit x264 xattr xcomposite xine xinerama xml xorg xpm xscreensaver xulrunner xv xvid xvmc zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Radu Benea 2010-05-17 12:14:32 UTC
Created attachment 231793 [details]
build log
Comment 2 Bernard Cafarelli gentoo-dev 2010-05-20 12:55:34 UTC
Thanks for the report! As llvm-gcc is mostly a gcc build, it should filter most CFLAGS like -combine

I've updated the ebuild with flags filtering parts from gcc toolchain eclass, please test with new 2.7-r1 (and of course reopen if it still fails for you!)
Comment 3 Radu Benea 2010-05-21 10:36:12 UTC
yes, it works now, thanks

there's a second part I didn't report, because I think it is an upstream issue
the package doesn't build if pie is enabled from gcc specs(I'm on hardened), let me know what you think
Comment 4 Bernard Cafarelli gentoo-dev 2010-05-26 12:13:02 UTC
Please open a new bug for hardened support, some changes in llvm-gcc are probably required too (as standard gcc toolchain in gentoo has some code for pie support). This will allow to keep track of the issue

No guarantee on when this will be solved though :/