[LLVMdev] error building clang

Csaba Raduly rcsaba at gmail.com
Sun Oct 23 10:49:37 PDT 2011


On Sat, Oct 22, 2011 at 3:23 PM, monica j  wrote:
> Any input on this? I cleaned up the whole directory and re-build. still get
> the error. I am builing on x86. downloaded clang from llvm.org.
> Should I pick up an older version?
> llvm[4]: Linking Debug+Asserts executable clang
>> /llvm/build/Debug+Asserts/lib/libclangLex.a: could not read symbols: File
>> format not recognized
>> collect2: ld returned 1 exit status
> file /llvm/build/Debug+Asserts/lib/libclangLex.a
> /llvm/build/Debug+Asserts/lib/libclangLex.a: current ar archive
> oak[164]tools > ar -t /llvm/build/Debug+Asserts/lib/libclangLex.a
> HeaderMap.o
(snip)

I don't understand this. Apparently, the linker does not recognise a
perfectly fine archive. Maybe the linker is misconfigured. Run

make VERBOSE=1

to see the command line of the linker invocation.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the llvm-dev mailing list