Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348552 - sys-devel/llvm-2.8 causes build failures with sys-devel/gcc-4.5: expected unqualified-id before 'alignof'
Summary: sys-devel/llvm-2.8 causes build failures with sys-devel/gcc-4.5: expected unq...
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: http://groups.google.com/group/llvm-d...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.5
  Show dependency tree
 
Reported: 2010-12-12 19:05 UTC by Emmanuel Andry
Modified: 2010-12-21 07:58 UTC (History)
2 users (show)

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


Attachments
lightspark 0.4.5 build log (build.log,10.20 KB, text/plain)
2010-12-12 19:17 UTC, Emmanuel Andry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Andry 2010-12-12 19:05:33 UTC
Building CXX object CMakeFiles/spark.dir/thread_pool.cpp.o                                                     
In file included from /usr/include/llvm/Support/Allocator.h:17:0,                                              
                 from /usr/include/llvm/ADT/StringMap.h:18,
                 from /usr/include/llvm/PassRegistry.h:20,
                 from /usr/include/llvm/PassSupport.h:25,
                 from /usr/include/llvm/Pass.h:366,
                 from /usr/include/llvm/PassManager.h:20,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/scripting/abc.h:27,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/frame.cpp:20:
/usr/include/llvm/Support/AlignOf.h:57:24: erreur: expected unqualified-id before ‘alignof’
In file included from /usr/include/llvm/ADT/StringMap.h:18:0,
                 from /usr/include/llvm/PassRegistry.h:20,
                 from /usr/include/llvm/PassSupport.h:25,
                 from /usr/include/llvm/Pass.h:366,
                 from /usr/include/llvm/PassManager.h:20,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/scripting/abc.h:27,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/frame.cpp:20:
/usr/include/llvm/Support/Allocator.h: In member function ‘void llvm::SpecificBumpPtrAllocator<T>::DestroyAll()’:
/usr/include/llvm/Support/Allocator.h:204:46: erreur: expected primary-expression before ‘<’ token
/usr/include/llvm/Support/Allocator.h:204:48: erreur: expected primary-expression before ‘>’ token
/usr/include/llvm/Support/Allocator.h:204:50: erreur: expected primary-expression before ‘)’ token
In file included from /usr/include/llvm/PassRegistry.h:20:0,
                 from /usr/include/llvm/PassSupport.h:25,
                 from /usr/include/llvm/Pass.h:366,
                 from /usr/include/llvm/PassManager.h:20,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/scripting/abc.h:27,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/frame.cpp:20:
/usr/include/llvm/ADT/StringMap.h: In static member function ‘static llvm::StringMapEntry<ValueTy>* llvm::StringMapEntry<ValueTy>::Create(const char*, const char*, AllocatorTy&, InitType)’:
/usr/include/llvm/ADT/StringMap.h:170:33: erreur: expected primary-expression before ‘<’ token
/usr/include/llvm/ADT/StringMap.h:170:48: erreur: expected primary-expression before ‘>’ token
/usr/include/llvm/ADT/StringMap.h:170:50: erreur: expected primary-expression before ‘)’ token
In file included from /usr/include/llvm/Support/Allocator.h:17:0,
                 from /usr/include/llvm/ADT/StringMap.h:18,
                 from /usr/include/llvm/PassRegistry.h:20,
                 from /usr/include/llvm/PassSupport.h:25,
                 from /usr/include/llvm/Pass.h:366,
                 from /usr/include/llvm/PassManager.h:20,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/scripting/abc.h:27,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/swf.cpp:23:
/usr/include/llvm/Support/AlignOf.h:57:24: erreur: expected unqualified-id before ‘alignof’
In file included from /usr/include/llvm/ADT/StringMap.h:18:0,
                 from /usr/include/llvm/PassRegistry.h:20,
                 from /usr/include/llvm/PassSupport.h:25,
                 from /usr/include/llvm/Pass.h:366,
                 from /usr/include/llvm/PassManager.h:20,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/scripting/abc.h:27,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/swf.cpp:23:
/usr/include/llvm/Support/Allocator.h: In member function ‘void llvm::SpecificBumpPtrAllocator<T>::DestroyAll()’:
/usr/include/llvm/Support/Allocator.h:204:46: erreur: expected primary-expression before ‘<’ token
/usr/include/llvm/Support/Allocator.h:204:48: erreur: expected primary-expression before ‘>’ token
/usr/include/llvm/Support/Allocator.h:204:50: erreur: expected primary-expression before ‘)’ token
In file included from /usr/include/llvm/PassRegistry.h:20:0,
                 from /usr/include/llvm/PassSupport.h:25,
                 from /usr/include/llvm/Pass.h:366,
                 from /usr/include/llvm/PassManager.h:20,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/scripting/abc.h:27,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/swf.cpp:23:
/usr/include/llvm/ADT/StringMap.h: In static member function ‘static llvm::StringMapEntry<ValueTy>* llvm::StringMapEntry<ValueTy>::Create(const char*, const char*, AllocatorTy&, InitType)’:
/usr/include/llvm/ADT/StringMap.h:170:33: erreur: expected primary-expression before ‘<’ token
/usr/include/llvm/ADT/StringMap.h:170:48: erreur: expected primary-expression before ‘>’ token
/usr/include/llvm/ADT/StringMap.h:170:50: erreur: expected primary-expression before ‘)’ token
In file included from /usr/include/llvm/Support/Allocator.h:17:0,
                 from /usr/include/llvm/ADT/StringMap.h:18,
                 from /usr/include/llvm/PassRegistry.h:20,
                 from /usr/include/llvm/PassSupport.h:25,
                 from /usr/include/llvm/Pass.h:366,
                 from /usr/include/llvm/PassManager.h:20,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/scripting/abc.h:27,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/swftypes.cpp:23:
/usr/include/llvm/Support/AlignOf.h:57:24: erreur: expected unqualified-id before ‘alignof’
In file included from /usr/include/llvm/ADT/StringMap.h:18:0,
                 from /usr/include/llvm/PassRegistry.h:20,
                 from /usr/include/llvm/PassSupport.h:25,
                 from /usr/include/llvm/Pass.h:366,
                 from /usr/include/llvm/PassManager.h:20,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/scripting/abc.h:27,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/swftypes.cpp:23:
/usr/include/llvm/Support/Allocator.h: In member function ‘void llvm::SpecificBumpPtrAllocator<T>::DestroyAll()’:
/usr/include/llvm/Support/Allocator.h:204:46: erreur: expected primary-expression before ‘<’ token
/usr/include/llvm/Support/Allocator.h:204:48: erreur: expected primary-expression before ‘>’ token
/usr/include/llvm/Support/Allocator.h:204:50: erreur: expected primary-expression before ‘)’ token
In file included from /usr/include/llvm/PassRegistry.h:20:0,
                 from /usr/include/llvm/PassSupport.h:25,
                 from /usr/include/llvm/Pass.h:366,
                 from /usr/include/llvm/PassManager.h:20,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/scripting/abc.h:27,
                 from /var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5/swftypes.cpp:23:
/usr/include/llvm/ADT/StringMap.h: In static member function ‘static llvm::StringMapEntry<ValueTy>* llvm::StringMapEntry<ValueTy>::Create(const char*, const char*, AllocatorTy&, InitType)’:
/usr/include/llvm/ADT/StringMap.h:170:33: erreur: expected primary-expression before ‘<’ token
/usr/include/llvm/ADT/StringMap.h:170:48: erreur: expected primary-expression before ‘>’ token
/usr/include/llvm/ADT/StringMap.h:170:50: erreur: expected primary-expression before ‘)’ token
[ 18%] Building CXX object CMakeFiles/spark.dir/threading.cpp.o
make[2]: *** [CMakeFiles/spark.dir/frame.cpp.o] Erreur 1                                                       
make[2]: *** Attente des tâches non terminées....
make[2]: *** [CMakeFiles/spark.dir/swf.cpp.o] Erreur 1
make[2]: *** [CMakeFiles/spark.dir/swftypes.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/spark.dir/all] Erreur 2
make: *** [all] Erreur 2
emake failed
 * ERROR: www-plugins/lightspark-0.4.5 failed:
 *   Make failed!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3062:  Called cmake-utils_src_compile
 *   environment, line  817:  Called _execute_optionaly 'src_compile'
 *   environment, line  283:  Called enable_cmake-utils_src_compile
 *   environment, line 1170:  Called cmake-utils_src_make
 *   environment, line  836:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 * 
 * If you need support, post the output of 'emerge --info =www-plugins/lightspark-0.4.5',
 * the complete build log and the output of 'emerge -pqv =www-plugins/lightspark-0.4.5'.
 * The complete build log is located at '/var/tmp/portage/www-plugins/lightspark-0.4.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-plugins/lightspark-0.4.5/temp/environment'.
 * S: '/var/tmp/portage/www-plugins/lightspark-0.4.5/work/lightspark-0.4.5'


Reproducible: Always
Comment 1 Emmanuel Andry 2010-12-12 19:07:07 UTC
# emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Phenom-tm-_II_N930_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Sun, 12 Dec 2010 18:15:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.7.1, 3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA googleearth Broadcom PUEL dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -msse4a -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mtune=native -msse4a -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="rsync://ftp6.linux.cz/pub/linux/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.opteamax.de/gentoo/ rsync://mirror.opteamax.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j5"
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"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi agg alsa amd64 audit autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddb cdr chm cleartype cli colordiff consolekit cracklib crypt cups curl cxx dbus desktopglobe dga dhcp dirac dri dts dvd dvdr ebook embedded-fuseiso emboss encode exif expat extras faac faad fam ffmpeg fftw firefox flac fluidsynth fontconfig fortran freetype fts3 fuse gallium gdbm gif glitz gmp gnutls gphoto2 gpm graphite gs gsm gstreamer gtk hal hdmi hdri iconv icoutils icu id3tag idn imagemagick inotify ipv6 java jbig jpeg jpeg2k kde kipi laptop lcms ldap libedit libnl libnotify libsamplerate libv4l2 live lm_sensors lto lua lzma lzo mad matroska midi mikmod mktemp mmx mmxext mng modules mp3 mp4 mpeg msn mudflap multilib musepack musicbrainz ncurses network network-cron nls nptl nptlonly nsplugin nss ogg openal opencl openexr opengl openmp openssl optimized-qmake pae pam pango pcre pdf perl phonon plasma png policykit polkit portaudio ppds pppd pulseaudio python qt3support qt4 quicktime radeon rdp readline resolvconf rss rtmp rtsp samba schroedinger sdl secure-delete semantic-desktop session skey sndfile spell sqlite sse sse2 sse4a ssl startup-notification stream strong-optimization suid svg symlink synaptics sysfs system-sqlite taglib tcpd theora threads thumbnail tiff truetype udev unicode upnp usb utempter v4l2 vaapi vnc vorbis vp8 vpx wav webkit webm wicd wifi windeco winetricks wps x264 xattr xcb xcomposite xinerama xml xmp xorg xosd xpm xulrunner xv xvid 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 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" 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 ubx" INPUT_DEVICES="evdev joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-12 19:11:27 UTC
Which version of llvm do you have installed? Please attach the full build.log
Comment 3 Emmanuel Andry 2010-12-12 19:17:37 UTC
Created attachment 256979 [details]
lightspark 0.4.5 build log

I use llvm 2.8
Comment 4 Emmanuel Andry 2010-12-12 19:28:59 UTC
It seems that #340437 hasn't been fixed. It build fine with llvm 2.7.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-12 19:38:41 UTC
I can build it successfully with llvm-2.8 here.
Can you try with gcc-4.4?
Comment 6 Emmanuel Andry 2010-12-12 20:33:12 UTC
Building with llvm 2.8 and gcc-4.4.5 is ok.
Just some issues at linking time, but just because I didn't rebuild the whole toolchain.
 
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-12 21:15:27 UTC
Further investigation reveals that this is a bug in llvm-2.8. It is fixed upstream already.

I will add a workaround to the lightspark ebuild.
Comment 8 Bernard Cafarelli gentoo-dev 2010-12-19 22:49:51 UTC
A helpful user pointed me to the llvm bug:
http://www.llvm.org/bugs/show_bug.cgi?id=8423

I've backported the relevant patch in llvm-2.8-r2, can you test and confirm this works fine with this new revision?
Comment 9 Emmanuel Andry 2010-12-20 19:02:23 UTC
I confirm lightspark build fine with lvm-2.8-r2, and cherry on the cake, lightspark works !!
Comment 10 Bernard Cafarelli gentoo-dev 2010-12-21 07:58:06 UTC
Thanks for checking! Marking fixed with llvm-2.8-r2 then :)