[LLVMdev] cross compiling using llvm 1.8

Aviv Peretz aviv.peretz at mobileye.com
Mon Nov 3 22:27:37 PST 2008


Hi,


I finally gave up building on Linux, in the meantime, and tried to build 
this version straight on Windows, using mingw32.


This is my command line:

(running from /c/llvm1.8/generated-llvm/obj)

*../../llvm/configure --prefix=/c/llvm1.8/gene*

*rated-llvm/install/ --enable-debug-runtime --enable-jit*


This is my path definition (it has several redundancies):

$ echo $PATH
.:/usr/local/bin:/mingw/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program 
Files/Common Files/Teleca 
Shared:/mingw:/c/downloads:/c/llvm1.8/generated-llvm/obj/Debug/bin:/c/llvm1.8-mingw32/bin:/c/llvm1.8-frontend/bin:/mingw/bin


And this is the error I get while running configure:

.

.

.

appending configuration tag CXX to mklib
appending configuration tag F77 to mklib
checking for llvm-gcc.exe... /c/llvm1.8-mingw32/bin/llvm-gcc.exe
checking for llvm-g++.exe... /c/llvm1.8-mingw32/bin/llvm-g++.exe
*checking tool compatibility... configure: error: g++|icc required but 
not found*


I searched the file system and couldn't find a file called g++.exe - 
only gcc.exe (which is located under mingw/bin) and llvm-g++.exe (which 
is located under llvm1.8-frontend/bin).

What seems to be the problem and how can I solve it?


guy at MS-WXP-AVIV /c/llvm1.8/generated-llvm/obj



Anton Korobeynikov wrote:

> Hi,
>
>   
>> AsmWriterEmitter.cpp:(.text+0x78): undefined reference to `__dso_handle'
>> AsmWriterEmitter.cpp:(.text+0x8c): undefined reference to `__cxa_atexit'
>>     
> This is not connected with that warning. Something is wrong with your
> compiler / linker. Either it does not provide needed libraries, or
> broken in other way.
>
>   
>> AsmWriterEmitter.cpp:(.text+0x25e): undefined reference to `_ZNSsC1ERKSs'
>>     
> these came from libstdc++
>
>   
>> AsmWriterEmitter.cpp:(.text+0x273): undefined reference to `_ZNSsC1ERKSs'
>> AsmWriterEmitter.cpp:(.text+0x28b): undefined reference to `_ZNSsC1ERKSs'
>> AsmWriterEmitter.cpp:(.text+0x2a5): undefined reference to `_ZNSsD1Ev'
>> AsmWriterEmitter.cpp:(.text+0x2ad): undefined reference to `_Unwind_Resume'
>>     
> and this from libgcc
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081104/01be62d3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3265 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081104/01be62d3/attachment.bin>


More information about the llvm-dev mailing list