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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111020/ef29d599/attachment.html>
On Oct 20, 2011, at 1:59 PM, monica j wrote:> 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. On Thursday, October 20, 2011, Eric Christopher <echristo at apple.com> wrote:> > On Oct 20, 2011, at 1:59 PM, monica j wrote: > >> 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: Fileformat 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 > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- Don Quixote de la Mancha Dulcinea Technologies Corporation Software of Elegance and Beauty http://www.dulcineatech.com quixote at dulcineatech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111020/36d5e94d/attachment.html>
On Thu, Oct 20, 2011 at 10:59 PM, monica j wrote:> 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 statusWhat is the output of file /llvm/build/Debug+Asserts/lib/libclangLex.a ? 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
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 statusfile /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 On Fri, Oct 21, 2011 at 7:08 AM, Csaba Raduly <rcsaba at gmail.com> wrote:> On Thu, Oct 20, 2011 at 10:59 PM, monica j wrote: > > 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 > > What is the output of > > file /llvm/build/Debug+Asserts/lib/libclangLex.a > > ? > > 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111022/8c7012db/attachment.html>