I am not able to build julia 1.0 for windows following the Cygwin-to-MinGW cross-compiling build procedure described here:
https://github.com/JuliaLang/julia/blob/master/README.windows.md
The following linker error is the problem:
[ 81%] Linking CXX shared library ../../bin/LLVM.dll
[ 81%] Built target llvm-cfi-verify
../../lib/libLLVMAMDGPUCodeGen.a(AMDGPUISelDAGToDAG.cpp.obj):AMDGPUISelDAGToDAG.cpp:(.text$_ZN4llvm16SelectionDAGISel22getIncludePathForIndexEj+0x0): Mehrfachdefinition von »llvm::SelectionDAGISel::getIncludePathForIndex(unsigned int)«
../../lib/libLLVMSelectionDAG.a(SelectionDAGISel.cpp.obj):SelectionDAGISel.cpp:(.text$_ZN4llvm16SelectionDAGISel22getIncludePathForIndexEj+0x0): hier zuerst definiert
../../lib/libLLVMAMDGPUCodeGen.a(AMDGPUISelDAGToDAG.cpp.obj):AMDGPUISelDAGToDAG.cpp:(.text$_ZN4llvm16SelectionDAGISel18getPatternForIndexEj+0x0): Mehrfachdefinition von »llvm::SelectionDAGISel::getPatternForIndex(unsigned int)«
../../lib/libLLVMSelectionDAG.a(SelectionDAGISel.cpp.obj):SelectionDAGISel.cpp:(.text$_ZN4llvm16SelectionDAGISel18getPatternForIndexEj+0x0): hier zuerst definiert
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[4]: *** [tools/llvm-shlib/CMakeFiles/LLVM.dir/build.make:213: bin/LLVM.dll] Fehler 1
make[3]: *** [CMakeFiles/Makefile2:17100: tools/llvm-shlib/CMakeFiles/LLVM.dir/all] Fehler 2
make[2]: *** [Makefile:150: all] Fehler 2
make[1]: *** [/home/Oli/julia/deps/llvm.mk:450: scratch/llvm-6.0.1/build_Release/build-compiled] Fehler 2
make[1]: *** Es wird auf noch nicht beendete Prozesse gewartet....
In english it is:
Redefinition of llvm::SelectionDAGISel::getIncludePathForIndex(unsigned int)
first definition in
../../lib/libLLVMSelectionDAG.a(SelectionDAGISel.cpp.obj):SelectionDAGISel.cpp:
second in
../../lib/libLLVMAMDGPUCodeGen.a(AMDGPUISelDAGToDAG.cpp.obj):AMDGPUISelDAGToDAG.cpp:
How to overcome this?