[LLVMdev] Rebuilding LLVM libraries with LLVM-GCC on Windows
mike at liquido2.com
Wed Dec 9 21:29:31 CST 2009
I decided to forget 2.5 and move on to 2.6 which built fine with CMake.
However, I continue to have problems with llvm-config when using the
$ llvm-g++ out.s -o out `llvm-config --ldflags --libs core support system
I consistently get undefined reference errors that are from libraries that
should've been linked already. The errors change depending on the order of
the components. There is obviously dependency issues--references to libs
that have already been linked. How do I resolve these dependency problems?
Also, I'm unable to use "llvm-config --libs all" because I receive the
error: "llvm-config: unknown component name: pic16codegen"
llvm-config --components doesn't list pic16codegen, so I'm confused why
it's included with --libs all.
From: "Óscar Fuentes" <ofv at wanadoo.es>
Sent: Tuesday, December 08, 2009 1:31 PM
To: <llvmdev at cs.uiuc.edu>
Subject: Re: [LLVMdev] Rebuilding LLVM libraries with LLVM-GCC on Windows
> "Michael Ness" <mike at liquido2.com> writes:
>> Some additional information about the setup may be of interest:
>> I'm using CMake to generate the make files for MSYS. All appears to go
>> until the tools are compiled.
>> The undefined references seem to be coming from the libraries that were
>> undefined reference to `llvm::Value::dump() const'
>> Apparently it's not being linked with libLLVMCore.a among other libs.
> What's the output of this command:
> bin/llvm-config --libs "bitreader asmparser bitwriter instrumentation
> scalaropts ipo"
> (executed from the root of your build directory)
> Does it mention libLLVMCore ? From your command line it seems that CMake
> was unable to determine the library dependencies. Either the
> dependencies are wrong (hence the llvm-config check above) or the CMake
> build is misinterpreting the output of llvm-config.
> I don't know how well the LLVM cmake build worked for 2.5. In theory, it
> should work the same way as for a unix host. In practice...
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the LLVMdev