Description of problem: llvm-3.0-1.fc17 fails to build on PowerPC: In file included from MCTargetDesc/PPCMCTargetDesc.h:41:0, from MCTargetDesc/PPCBaseInfo.h:20, from PPC.h:18, from PPCAsmPrinter.cpp:20: /builddir/build/BUILD/llvm-3.0.src/lib/Target/PowerPC/PPCGenRegisterInfo.inc:17:11: error: expected identifier before numeric constant /builddir/build/BUILD/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/ppc64-redhat-linux/4.6.2/../../../../include/c++/4.6.2/new:42:0, from /usr/lib/gcc/ppc64-redhat-linux/4.6.2/../../../../include/c++/4.6.2/ext/new_allocator.h:34, from /usr/lib/gcc/ppc64-redhat-linux/4.6.2/../../../../include/c++/4.6.2/ppc64-redhat-linux/bits/c++allocator.h:34, from /usr/lib/gcc/ppc64-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/allocator.h:48, from /usr/lib/gcc/ppc64-redhat-linux/4.6.2/../../../../include/c++/4.6.2/string:43, from /builddir/build/BUILD/llvm-3.0.src/include/llvm/ADT/StringRef.h:16, from /builddir/build/BUILD/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/ppc64-redhat-linux/4.6.2/../../../../include/c++/4.6.2/exception:37:37: error: expected '}' before end of line /usr/lib/gcc/ppc64-redhat-linux/4.6.2/../../../../include/c++/4.6.2/exception:37:37: error: expected declaration before end of line /bin/rm: cannot remove `/builddir/build/BUILD/llvm-3.0.src/lib/Target/PowerPC/Release/PPCAsmPrinter.d.tmp': No such file or directory Steps to Reproduce: 1. ppc-koji build --scratch f17 llvm-3.0-1.fc17.src.rpm Actual results: http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=344319
raising to urgent as this prevents building mesa and that in turn blocks avahi and hundreds of other packages
It looks like a known bug: http://llvm.org/bugs/show_bug.cgi?id=10969 I'm surprised today's trunk still don't have it fixed... I don't like either of the proposed solutions tho, maybe the namespace should be changed to PowerPC ? Any llvm hacker around who could do that ?
You should not build Mesa with llvm enabled on PowerPC. Even with that fix, LLVM doesn't work properly and the resulting Mesa crashes. I'm working on it but the lack of spare time lately made my progress very slow.
*** Bug 785750 has been marked as a duplicate of this bug. ***