ROOT build error Mac OSX

I’m trying to compile the current SVN version on OSX 10.8.3. I’ve configured it with ./configure --enable-cxx11 --enable-libcxx11 --disable-fink --with-clang. This produces the following error:
llvm[3]: Linking Release executable llvm-tblgen (without symbols)
g++ -I/Users/wutzi/src/root/interpreter/llvm/obj/include -I/Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen -I/Users/wutzi/src/root/interpreter/llvm/src/include -I/Users/wutzi/src/root/interpreter/llvm/src/utils/TableGen -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fno-common -Woverloaded-virtual -Wcast-qual -O3 -Wl,-rpath -Wl,@executable_path/…/lib -L/Users/wutzi/src/root/interpreter/llvm/obj/Release/lib -L/Users/wutzi/src/root/interpreter/llvm/obj/Release/lib -Wl,-exported_symbol,_main -m64 -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -o /Users/wutzi/src/root/interpreter/llvm/obj/Release/bin/llvm-tblgen /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/AsmMatcherEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/AsmWriterEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/AsmWriterInst.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/CallingConvEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/CodeEmitterGen.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/CodeGenDAGPatterns.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/CodeGenInstruction.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/CodeGenRegisters.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/CodeGenSchedule.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/CodeGenTarget.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/DAGISelEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/DAGISelMatcher.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/DAGISelMatcherEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/DAGISelMatcherGen.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/DAGISelMatcherOpt.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/DFAPacketizerEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/DisassemblerEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/EDEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/FastISelEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/FixedLenDecoderEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/InstrInfoEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/IntrinsicEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/PseudoLoweringEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/RegisterInfoEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/SetTheory.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/SubtargetEmitter.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/TGValueTypes.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/TableGen.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/X86DisassemblerTables.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/X86ModRMFilters.o /Users/wutzi/src/root/interpreter/llvm/obj/utils/TableGen/Release/X86RecognizableInstr.o -lLLVMTableGen -lLLVMSupport
-lpthread -lm
0 0x101d43dd0 __assert_rtn + 144
1 0x101db8107 mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions const&) + 1143
2 0x101dad85b mach_o::relocatable::Parser<x86_64>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 315
3 0x101dab524 mach_o::relocatable::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 68
4 0x101d9b1d9 archive::File<x86_64>::makeObjectFileForMember(archive::File<x86_64>::Entry const*) const + 1193
5 0x101d9ab0a archive::File<x86_64>::justInTimeforEachAtom(char const*, ld::File::AtomHandler&) const + 218
6 0x101d48f4f ld::tool::InputFiles::searchLibraries(char const*, bool, bool, bool, ld::File::AtomHandler&) const + 63
7 0x101d8cb60 ld::tool::Resolver::resolveUndefines() + 224
8 0x101d8f2b0 ld::tool::Resolver::resolve() + 304
9 0x101d440f8 main + 392
10 0x7fff8fa187e1 start + 0
A linker snapshot was created at:
/tmp/llvm-tblgen-2013-02-18-130314.ld-snapshot
ld: Assertion failed: (cfiStartsArray[i] != cfiStartsArray[i-1]), function parse, file src/ld/parsers/macho_relocatable_file.cpp, line 1553.
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[3]: *** [/Users/wutzi/src/root/interpreter/llvm/obj/Release/bin/llvm-tblgen] Error 1
make[2]: *** [TableGen/.makeall] Error 2
make[1]: *** [all] Error 1
make: *** [interpreter/llvm/inst/lib/libclang.a] Error 2

What wonders me is that it invokes g++, even though I configured it to use clang. It makes no difference, if I use g++ or clang. I’ve attached the linker snapshot.

After a bit more of investigation I found this:

~/src/root/interpreter/llvm/obj $ make
make[1]: Nothing to be done for all'. make[1]: Nothing to be done forall’.
make[2]: Nothing to be done for all'. make[2]: Nothing to be done forall’.
llvm[2]: Linking Release executable llvm-tblgen (without symbols)
0 0x10184edd0 __assert_rtn + 144
1 0x1018c3107 mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions const&) + 1143
2 0x1018b885b mach_o::relocatable::Parser<x86_64>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 315
3 0x1018b6524 mach_o::relocatable::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 68
4 0x1018a61d9 archive::File<x86_64>::makeObjectFileForMember(archive::File<x86_64>::Entry const*) const + 1193
5 0x1018a5b0a archive::File<x86_64>::justInTimeforEachAtom(char const*, ld::File::AtomHandler&) const + 218
6 0x101853f4f ld::tool::InputFiles::searchLibraries(char const*, bool, bool, bool, ld::File::AtomHandler&) const + 63
7 0x101897b60 ld::tool::Resolver::resolveUndefines() + 224
8 0x10189a2b0 ld::tool::Resolver::resolve() + 304
9 0x10184f0f8 main + 392
10 0x7fff8fa187e1 start + 0
A linker snapshot was created at:
/tmp/llvm-tblgen-2013-02-18-130907.ld-snapshot
ld: Assertion failed: (cfiStartsArray[i] != cfiStartsArray[i-1]), function parse, file src/ld/parsers/macho_relocatable_file.cpp, line 1553.
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [/Users/wutzi/src/root/interpreter/llvm/obj/Release/bin/llvm-tblgen] Error 1
make[1]: *** [TableGen/.makeall] Error 2
make: *** [all] Error 1

Any ideas on how to fix that?
linker_snapshot.tar.gz (994 KB)

Hi,

Do you still have this problem?

Philippe.