On 02/17/2016 03:42 PM, Óscar Fuentes wrote:
> Richard Pennington <[email protected]>
> writes:
>
>> I recently switched over to using cmake to build my clang/LLVM based
>> ELLCC cross development project (http://ellcc.org). I also recently
>> updated to LLVM svn version 258915 from 258477.
>>
>> I use ELLCC to cross compile all the tools for various Linux targets
>> and for Windows. Yesterday, after updating the LLVM sources, I got the
>> following error when cross building for MinGW:
>>
>> [  3%] Built target LLVMSupport
>> [  3%] Built target LLVMTableGen
>> [  4%] Built target obj.llvm-tblgen
>> [  4%] Linking CXX executable ../../bin/llvm-tblgen
> AFAIR tblgen is special when cross-compiling because a native build of
> that tool is spawned from the main build. Please make sure that the LLVM
> CMake script correctly detects that it is a cross-compile build (look
> for a directory named "native" in the CMAKE_BINARY_DIR of your build.)
> That native tblgen should build before the cross-compiled one.
>
> Something you can try is to diff the two revisions and see if there are
> changes to the CMake scripts related to tblgen or cross-compiling. It
> would be a good idea to start a fresh build in case you are using a
> pre-configured directory of a previous build.
>
> [snip]
>
It is set up to use the host built version of tblgen. The mingw-w64 
build is the last one I tried after having done cross builds for ARM and 
MIPS Linux.
This is the first time I've used cmake to build rather than autotools. I 
suspect I'm not setting up something correctly. tblgen.exe just happens 
to be the first executable that cmake is trying to link during the build.

It turns out that all the non-mingw builds use libc++ rather than 
libstdc++. Maybe I'm missing some command line option in the cmake build 
that the autotools build provided.

-Rich


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to