Hi!
I'm trying to crosscompile llvm/clang to run Windows. But the
compilation fails:
gmake[2]: Entering directory
`/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/tools/lli'
llvm[2]: Linking Release executable lli (without symbols)
x86_64-w64-mingw32-g++
-I/usr/home/solskogen/mingw-w64-builder/bin/llvm/include
-I/usr/home/solskogen/mingw-w64-builder/bin/llvm/tools/lli
-I/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/include
-I/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/tools/lli
-DNDEBUG -D__NO_CTYPE_INLINE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O2 -fomit-frame-pointer
-fvisibility-inlines-hidden -fno-exceptions -fno-rtti
-Woverloaded-virtual -Wcast-qual -O2 -Wl,--allow-multiple-definition
-L/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/Release/bin
-L/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/Release/lib
-L/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/Release/bin
-L/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/Release/lib
-pedantic -Wno-long-long -Wall -W -Wno-unused-parameter
-Wwrite-strings -o
/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/Release/bin/lli.exe
/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/tools/lli/Release/RecordingMemoryManager.o
/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/tools/lli/Release/RemoteTarget.o
/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/tools/lli/Release/lli.o
\
-lLLVMAsmParser -lLLVMBitReader -lLLVMX86CodeGen -lLLVMX86Desc
-lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMSelectionDAG
-lLLVMAsmPrinter -lLLVMMCParser -lLLVMInterpreter -lLLVMJIT
-lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils
-lLLVMipa -lLLVMAnalysis -lLLVMMCJIT -lLLVMRuntimeDyld
-lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore
-lLLVMSupport -lpthread -lpsapi -limagehlp -lm
/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/Release/lib/libLLVMJIT.a(JIT.o):JIT.cpp:(.text+0x293b):
undefined reference to `__deregister_frame'
/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/Release/lib/libLLVMJIT.a(JIT.o):JIT.cpp:(.text+0x2942):
undefined reference to `__register_frame'
/usr/home/solskogen/obj/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld:
/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/Release/lib/libLLVMJIT.a(JIT.o):
bad reloc address 0x0 in section
`.pdata$_ZN4llvm16JITEventListener21NotifyFunctionEmittedERKNS_8FunctionEPvyRKNS_31JITEvent_EmittedFunctionDetailsE'
collect2: error: ld returned 1 exit status
gmake[2]: ***
[/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/Release/bin/lli.exe]
Error 1
gmake[2]: Leaving directory
`/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/tools/lli'
gmake[1]: *** [lli/.makeall] Error 2
gmake[1]: Leaving directory
`/usr/home/solskogen/obj/_build/llvm.native.x86_64-w64-mingw32/tools'
gmake: *** [all] Error 1
Any hints?
Configure line is /home/solskogen/mingw-w64-builder/bin/llvm/configure
--prefix=/home/solskogen/obj/mingw64 --host=x86_64-w64-mingw32
--build=x86_64-unknown-freebsd9.1 --target=x86_64-w64-mingw32
--disable-assertions --enable-optimized
I'm using trunk.