The latest in my problems building clang-only:
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
Any suggestions appreciated.
How are you building? What platform? What tools do you have installed? What directions are you following?
-eric
I got an error just like that while building some other codebase last night. It turned out my filesystem was corrupted.
What is the output of
file /llvm/build/Debug+Asserts/lib/libclangLex.a
?
Csaba
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
HeaderSearch.o
Lexer.o
LiteralSupport.o
MacroArgs.o
MacroInfo.o
PPCaching.o
PPDirectives.o
PPExpressions.o
PPLexerChange.o
PPMacroExpansion.o
PTHLexer.o
Pragma.o
PreprocessingRecord.o
Preprocessor.o
PreprocessorLexer.o
ScratchBuffer.o
TokenConcatenation.o
TokenLexer.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