Windows build using Msys/MinGW

296 views
Skip to first unread message

Peter Simon

unread,
Jun 8, 2013, 3:52:48 PM6/8/13
to julia...@googlegroups.com
I'm attempting to build on 64-bit Windows 7, following the instructions under the heading "Native Compile" at https://github.com/JuliaLang/julia/blob/master/README.windows.md.  I installed MinGW from x64-4.8.0-release-win32-seh-rev2.7z and MSYS, first from msys+7za+wget+svn+git+mercurial+cvs-rev13.7z, and then after the first unsuccessful attempt at building, I replaced MSYS with the version mentioned in the instructions: msys+7za+wget+svn+git+mercurial+cvs-rev12.7z, with the same unsuccessful results.  As directed, I modified the fstab file and copied make-old.exe over make.exe.  I also found it necessary to add python to the PATH variable:
`export PATH=$PATH:/mingw/opt/bin`
 
I invoked `make` in the Julia directory without any options.
 
The problem occurs when linking one of the LLVM libraries:
 
llvm[5]: Linking Release executable llvm-prof (without symbols)
llvm[5]: ======= Finished Linking Release Executable llvm-prof (without symbols)
llvm[5]: Compiling llvm-link.cpp for Release build
llvm[5]: Linking Release executable llvm-link (without symbols)
llvm[5]: ======= Finished Linking Release Executable llvm-link (without symbols)
llvm[5]: Compiling RecordingMemoryManager.cpp for Release build
llvm[5]: Compiling RemoteTarget.cpp for Release build
llvm[5]: Compiling lli.cpp for Release build
llvm[5]: Linking Release executable lli (without symbols)
C:/MinGW/msys/1.0/home/simonp/julia/deps/llvm-3.2/build/Release/lib/libLLVMJIT.a
(JIT.o):JIT.cpp:(.text+0x452f): undefined reference to `__register_frame'
C:/MinGW/msys/1.0/home/simonp/julia/deps/llvm-3.2/build/Release/lib/libLLVMJIT.a
(JIT.o):JIT.cpp:(.text+0x4540): undefined reference to `__deregister_frame'
c:/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-
mingw32/bin/ld.exe: C:/MinGW/msys/1.0/home/simonp/julia/deps/llvm-3.2/build/Rele
ase/lib/libLLVMJIT.a(JIT.o): bad reloc address 0x0 in section `.pdata$_ZN4llvm16
JITEventListener21NotifyFunctionEmittedERKNS_8FunctionEPvyRKNS_31JITEvent_Emitte
dFunctionDetailsE'
collect2.exe: error: ld returned 1 exit status
make[5]: *** [/usr/home/simonp/julia/deps/llvm-3.2/build/Release/bin/lli.exe] Er
ror 1
make[4]: *** [lli/.makeall] Error 2
make[3]: *** [all] Error 1
make[2]: *** [llvm-3.2/build/Release/lib/libLLVMJIT.a] Error 2
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
 
 
Any suggestions on how to proceed would be appreciated.
 
--Peter

Jameson Nash

unread,
Jun 8, 2013, 4:49:01 PM6/8/13
to julia...@googlegroups.com
Please read the errata section of the build instructions to avoid this error. However, the resulting 64 bit build is currently invalid -- I hope to have a patch in a few days, once I can identify a solution. 
-Jameson

Peter Simon

unread,
Jun 8, 2013, 5:16:46 PM6/8/13
to julia...@googlegroups.com
Thanks, I had completely missed the errata section at the end of the README.  And thanks to you and the whole Julia development team for this major contribution to the scientific/engineering community.  
Reply all
Reply to author
Forward
0 new messages