Eric Smith
2012-Jun-07 08:30 UTC
[LLVMdev] problem with llvm-config when building 3.1 for Linux-to-Windows cross development
Recently I packaged LLVM 3.0 for cross development use on Fedora Linux targeting Windows using MinGW, and submitted it for a Fedora package review. Getting that to build went pretty smoothly. I just tried to update it to LLVM 3.1 and ran into a problem with llvm-config. When LLVM 3.0 is configured for a Linux host and MinGW target, the llvm-config tool is built appropriately to run on the host (Linux) system, as is necessary for cross development. However, it seems that with LLVM 3.1, with the same configuration, only a target (Windows) llvm-config.exe gets built, which is useless for cross-development. Is there a simple fix to get an appropriate host-based llvm-config built? Thanks! Eric
Bob Wilson
2012-Jun-07 21:39 UTC
[LLVMdev] problem with llvm-config when building 3.1 for Linux-to-Windows cross development
Does svn r156448 help at all? It is supposed to install a separate llvm-config-host when cross-compiling. On Jun 7, 2012, at 1:30 AM, Eric Smith <eric at brouhaha.com> wrote:> Recently I packaged LLVM 3.0 for cross development use on Fedora Linux > targeting Windows using MinGW, and submitted it for a Fedora package > review. Getting that to build went pretty smoothly. > > I just tried to update it to LLVM 3.1 and ran into a problem with > llvm-config. When LLVM 3.0 is configured for a Linux host and MinGW > target, the llvm-config tool is built appropriately to run on the host > (Linux) system, as is necessary for cross development. However, it > seems that with LLVM 3.1, with the same configuration, only a target > (Windows) llvm-config.exe gets built, which is useless for > cross-development. > > Is there a simple fix to get an appropriate host-based llvm-config built? > > Thanks! > Eric > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Eric Smith
2012-Jun-07 23:56 UTC
[LLVMdev] problem with llvm-config when building 3.1 for Linux-to-Windows cross development
Bob Wilson wrote:> Does svn r156448 help at all? It is supposed to install a separate llvm-config-host when cross-compiling.Yes, that looks like it should solve my problem. Thanks! Eric
Possibly Parallel Threads
- [LLVMdev] problem with llvm-config when building 3.1 for Linux-to-Windows cross development
- [LLVMdev] Is there room for another build system?
- [LLVMdev] [cfe-dev] RFC: "Building with MinGW on Windows" (DOC, 2ND TRY)
- [LLVMdev] Is there room for another build system?
- Error cross building LLVM for MinGW