Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394183 - sys-devel/llvm-3.0 - .../work/llvm-3.0.src/lib/Target/PowerPC/PPCGenRegisterInfo.inc:17:11: erreur: expected identifier before numeric constant
Summary: sys-devel/llvm-3.0 - .../work/llvm-3.0.src/lib/Target/PowerPC/PPCGenRegisterI...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL: http://llvm.org/bugs/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 19:22 UTC by Laurent G.
Modified: 2012-01-27 15:21 UTC (History)
1 user (show)

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


Attachments
The log from /var/log/portage (sys-devel:llvm-3.0:20111207-205200.log.bz2,21.76 KB, application/x-bzip2)
2011-12-10 16:27 UTC, Laurent G.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent G. 2011-12-09 19:22:04 UTC
emerging ends in:

llvm[3]: Compiling PPCAsmPrinter.cpp for Release build
In file included from MCTargetDesc/PPCMCTargetDesc.h:41:0,
                 from MCTargetDesc/PPCBaseInfo.h:20,
                 from PPC.h:18,
                 from PPCAsmPrinter.cpp:20:
/var/tmp/portage/sys-devel/llvm-3.0/work/llvm-3.0.src/lib/Target/PowerPC/PPCGenRegisterInfo.inc:17:11: error: expected identifier before numeric constant
/var/tmp/portage/sys-devel/llvm-3.0/work/llvm-3.0.src/lib/Target/PowerPC/PPCGenRegisterInfo.inc:17:11: error: expected unqualified-id before numeric constant
In file included from /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include/g++-v4/new:42:0,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include/g++-v4/ext/new_allocator.h:33,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include/g++-v4/powerpc-unknown-linux-gnu/bits/c++allocator.h:34,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include/g++-v4/bits/allocator.h:48,
                 from /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include/g++-v4/string:43,
                 from /var/tmp/portage/sys-devel/llvm-3.0/work/llvm-3.0.src/include/llvm/ADT/StringRef.h:16,
                 from /var/tmp/portage/sys-devel/llvm-3.0/work/llvm-3.0.src/include/llvm/Support/ErrorHandling.h:19,
                 from MCTargetDesc/PPCBaseInfo.h:21,
                 from PPC.h:18,
                 from PPCAsmPrinter.cpp:20:
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include/g++-v4/exception:37:37: error: expected '}' before end of line
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include/g++-v4/exception:37:37: error: expected declaration before end of line
/bin/rm: cannot remove `/var/tmp/portage/sys-devel/llvm-3.0/work/llvm-3.0.src/lib/Target/PowerPC/Release/PPCAsmPrinter.d.tmp': No such file or directory
make[3]: *** [/var/tmp/portage/sys-devel/llvm-3.0/work/llvm-3.0.src/lib/Target/PowerPC/Release/PPCAsmPrinter.o] Error 1

Reproducible: Always




Portage 2.2.0_alpha79 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r1, 2.6.39-gentoo-r2-l1 ppc)
=================================================================
System uname: Linux-2.6.39-gentoo-r2-l1-ppc-7447A,_altivec_supported-with-gentoo-2.1
Timestamp of tree: Fri, 09 Dec 2011 18:30:01 +0000
distcc 3.1 powerpc-unknown-linux-gnu [disabled]
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.3.6-r1, 4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo qting-edge stuff local
Installed sets: 
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mcpu=7400 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec"
DISTDIR="/in_n_outs/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ "
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j4"
PKGDIR="/in_n_outs/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/qting-edge /var/lib/layman/stuff /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl alsa altivec apache2 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cscope cups cxx dba dbus dri dts dvd dvdr emboss encode exif fam fbcon filter flac flash fortran gb gcj gd gdbm gdu gif gnome gpm gtk gtk2 iconv ipv6 java jikes jpeg kde kdehiddenvisibility kpathsea lcms ldap libnotify mad mng modules mozdevelop mozsvg mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin objc ogg oggvorbis opengl openmp pam pango pch pcre pdf pdflib perl png policykit povray ppc ppds pppd private-headers python qt qt3support qt4 readline samba sasl scanner sdl session speex spell ssl startup-notification svg sysfs tcpd theora threads tiff tk truetype udev unicode usb vorbis wmf xcb xinerama xml xml2 xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="snd-aoa" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon" 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="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati fbdev 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-10 16:04:38 UTC
Please attach the entire build log to this bug report.
Comment 2 Laurent G. 2011-12-10 16:27:09 UTC
Created attachment 295389 [details]
The log from /var/log/portage
Comment 3 Otto A. Schell 2011-12-21 04:10:43 UTC
Me too!

________________________________________________________

Portage 2.1.10.41 (default/linux/powerpc/ppc32/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r1, 3.1.5-gentoo ppc)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.5-gentoo-ppc-7447A,_altivec_supported-with-gentoo-2.1
Timestamp of tree: Tue, 20 Dec 2011 23:45:01 +0000
distcc[28796] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc.log: Permission denied [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo mv science x-powerpc
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="*"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --autounmask=n --load-average=8.9 --keep-going --with-bdeps=y --complete-graph"
FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gentoo.lagis.at/ http://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="de_AT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de sk en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress --delete-before --human-readable"
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/mv /var/lib/layman/science /var/lib/layman/powerpc"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa altivec amr apng bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli collab consolekit cracklib crypt cups curl custom-optimization cvs cxx dbus debug-utils dirac dri dts dvb dvd dvdr eds emboss emulation encode evo exif extensions extras faad fam ffmpeg firefox flac fortran fts3 gallium gdbm gdu gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk handbook iconv ipv6 jpeg keyboard lcdfilter lcms ldap libgda libnotify lzma mad mng modules mouse mp3 mp4 mpeg mudflap multimedia musepack nautilus ncurses nls nptl nptlonly nsplugin objc ogg opengl openmp openxml optimization ots pam pango pcre pdf perl plugins png policykit ppc ppds pppd pulseaudio python qt3support qt4 readline sdl secure-delete session socialweb speex spell ssl startup-notification strong-optimization subversion svg symlink sysfs tcpd theora thesaurus thumbnail tiff truetype udev unicode usb vorbis webdav webstart wmf wordperfect xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon casio casio_qv fuji samsung" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de sk en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon630u" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 4 Bernard Cafarelli gentoo-dev 2012-01-13 22:38:59 UTC
Thanks for the report!

The bug is confirmed upstream (I have added URL to this one), but looks like it is not fixed yet. I will double-check SVN version and other distribs to see if there is a functional workaround
Comment 5 Dimitri 2012-01-23 12:47:38 UTC
Following the suggestion on the thread for this bug on llvm.org I added "#undef PPC" to three files:
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h
lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h
lib/Target/PowerPC/MCTargetDesc/PPCFixupKinds.h
Seems to work,could be that something will horribly break later on though.
Comment 6 Dimitri 2012-01-24 12:33:25 UTC
Works, looks like there is better HW accelaration now for radeon.
Maybe I should take some time to learn how to write a patch for this, unfortunately I do not know how now.
Comment 7 Bernard Cafarelli gentoo-dev 2012-01-27 15:21:44 UTC
Well, the upstream bug has not moved at all, but these 3 #undef seem enough

The patch seems to be working fine on Debian:
http://patch-tracker.debian.org/patch/series/view/llvm-3.0/3.0-5/0041-undef-PPC-macro.diff

so I have applied it to 3.0 ebuild (no revbump as this is a compilation failure)

Thanks for the report!