[cfe-dev] ClangTooling compiling issues

Marcos Horro Varela via cfe-dev cfe-dev at lists.llvm.org
Wed Dec 4 16:09:23 PST 2019


I am using Ubuntu 19.10, and I have just installed LLVM-10 as stated here [1].
Whenever I try to compile and link my project using LLVM-10 I get an error like this:
"/usr/lib/llvm-10/lib/XXX.a: error adding symbols: archive has no index; run ranlib to add one"
So, effectively, if I check the index of any of these static libraries I get:
# nm -s /usr/lib/llvm-10/lib/libclangTooling.a
nm: AllTUsExecution.cpp.o: file format not recognized
nm: ArgumentsAdjusters.cpp.o: file format not recognized
nm: CommonOptionsParser.cpp.o: file format not recognized
nm: CompilationDatabase.cpp.o: file format not recognized
nm: Execution.cpp.o: file format not recognized
nm: FileMatchTrie.cpp.o: file format not recognized
nm: FixIt.cpp.o: file format not recognized
nm: GuessTargetAndModeCompilationDatabase.cpp.o: file format not recognized
nm: InterpolatingCompilationDatabase.cpp.o: file format not recognized
nm: JSONCompilationDatabase.cpp.o: file format not recognized
nm: Refactoring.cpp.o: file format not recognized
nm: RefactoringCallbacks.cpp.o: file format not recognized
nm: StandaloneExecution.cpp.o: file format not recognized
nm: Tooling.cpp.o: file format not recognized

My question is, did I installed something wrong? Is this a buggy release or is this just because is under development?
Thank you!

[1] https://apt.llvm.org/<https://link.getmailspring.com/link/63670BA1-301C-4062-A459-B52423678394@getmailspring.com/0?redirect=https%3A%2F%2Fapt.llvm.org%2F&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D>
Horro, M.
http://gac.udc.es/~horro<https://link.getmailspring.com/link/63670BA1-301C-4062-A459-B52423678394@getmailspring.com/1?redirect=http%3A%2F%2Fgac.udc.es%2F~horro&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20191205/d666fca9/attachment.html>


More information about the cfe-dev mailing list