cannot get to compile under windows after many attempts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

cannot get to compile under windows after many attempts

feza
After many failed attempts, I succumb my machine: Windows 10 64bit

Below I describe the 4 different procedures I followed to try and get julia to build under windows.

My question: How are the binaries built for the nightlies and releases? What kind of machine and settings?

Also for the Julia Windows devs: What's your dev setup do you just run everything within a msys2 bash shell? I'm very curious.

The problem with msys2 is that it creates a new  /home/me/ folder where personal files are installed  like your julia packages. The github sdk defaults to your real directory /c/users/me/  so it seems a little more useful




Procedure (1)
     - Install msys2 from http://msys2.github.io/  . In particular: msys2-x86_64-20150916.exe
     - Open msys2_shell.bat  ran    `update-core` ; restarted shell
  -  echo "export PATH=/usr/local/bin:/usr/bin:/opt/bin:/C/Anaconda3/envs/p2" >> ~/.bashrc
  - In  a new msys shell (opens up in directory ~ , i.e. /home/me/); git clone https://github.com/JuliaLang/julia.git ; cd julia
  - ran: contrib/windows/get_toolchain.sh 64  # for 64 bit Julia
- ran: export PATH=/home/me/julia/usr/x86_64-w64-mingw32/sys-root/mingw/bin:$PATH
- ran: echo 'override CMAKE=/c/cmake-3.3.2-win32-x86/CMake/bin/cmake.exe' > Make.user
- ran: make -j 2
ERROR:

pcre2-10.20 configuration summary:

    Install prefix .................. : /home/me/julia/usr
    C preprocessor .................. : gcc -m64  -E
    C compiler ...................... : gcc -m64
    Linker .......................... : c:/msys64/home/me/julia/usr/x86_64-w64-mingw32/sys-root/mingw/x86_                                                                            64-w64-mingw32/bin/ld.exe
    C preprocessor flags ............ :
    C compiler flags ................ :  -O3 -fvisibility=hidden
    Linker flags .................... :
    Extra libraries ................. :

    Build 8-bit pcre2 library ....... : yes
    Build 16-bit pcre2 library ...... : no
    Build 32-bit pcre2 library ...... : no
    Include debugging code .......... : no
    Enable JIT compiling support .... : yes
    Enable Unicode support .......... : yes
    Newline char/sequence ........... : lf
    \R matches only ANYCRLF ......... : no
    EBCDIC coding ................... : no
    EBCDIC code for NL .............. : n/a
    Rebuild char tables ............. : no
    Use stack recursion ............. : yes
    Internal link size .............. : 2
    Nested parentheses limit ........ : 250
    Match limit ..................... : 10000000
    Match limit recursion ........... : MATCH_LIMIT
    Build shared libs ............... : yes
    Build static libs ............... : yes
    Use JIT in pcre2grep ............ : yes
    Buffer size for pcre2grep ....... : 20480
    Link pcre2grep with libz ........ : no
    Link pcre2grep with libbz2 ...... : no
    Link pcre2test with libedit ..... : no
    Link pcre2test with libreadline . : no
    Valgrind support ................ : no
    Code coverage ................... : no

yes
checking tool compatibility... ok
checking optional compiler flags... -Wno-variadic-macros -Wno-missing-field-initializers   -Wno-maybe-uninitial                                                                            ized
checking for python... /home/me/julia/deps/srccache/llvm-3.3/configure: line 12368: result:: command not f                                                                            ound
no
checking for python >= 2.5... /home/me/julia/deps/srccache/llvm-3.3/configure: line 12390: -c: command not                                                                             found
/home/me/julia/deps/srccache/llvm-3.3/configure: line 12394: test: : integer expression expected
not found
configure: error: found python  (); required >= 2.5
See `config.log' for more details.
Makefile:697: recipe for target 'build/llvm-3.3/build_Release/config.status' failed
make[1]: *** [build/llvm-3.3/build_Release/config.status] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:78: recipe for target 'julia-deps' failed
make: *** [julia-deps] Error 2



Procedure (2)
- Intall https://github.com/git-for-windows/build-extra/releases  
- open mingw64_shell.bat;  cd / ; git clone https://github.com/JuliaLang/julia.git ; cd julia   (julia now in /julia)
- ran: export PATH=/c/Users/me/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin
   - echo 'override CMAKE=/c/cmake-3.3.2-win32-x86/CMake/bin/cmake.exe' > Make.user
- ran: make -j 2

ERROR

llvm[4]: Compiling PatternMatch.cpp for Release build
llvm[4]: Compiling ProgramTest.cpp for Release build
llvm[4]: Compiling RegexTest.cpp for Release build
llvm[4]: Compiling TypeBuilderTest.cpp for Release build
llvm[4]: Compiling SwapByteOrderTest.cpp for Release build
llvm[4]: Compiling TimeValue.cpp for Release build
llvm[4]: Compiling TypesTest.cpp for Release build
llvm[4]: Compiling ValueHandleTest.cpp for Release build
llvm[4]: Compiling ValueMapTest.cpp for Release build
C:/git-sdk-64/julia/deps/srccache/llvm-3.3/unittests/IR/ValueMapTest.cpp: In function 'void {anonymous}::CompileAssertHasType(VarType)':
C:/git-sdk-64/julia/deps/srccache/llvm-3.3/unittests/IR/ValueMapTest.cpp:120:16: warning: typedef 'assert' locally defined but not used [-Wunused-local-typedefs]
   typedef char assert[is_same<ExpectedType, VarType>::value ? 1 : -1];
                ^
llvm[4]: Compiling YAMLIOTest.cpp for Release build
llvm[4]: Compiling ValueTest.cpp for Release build
llvm[4]: Compiling VerifierTest.cpp for Release build
llvm[4]: Compiling YAMLParserTest.cpp for Release build
llvm[4]: Compiling WaymarkTest.cpp for Release build
llvm[4]: Compiling formatted_raw_ostream_test.cpp for Release build
llvm[4]: Linking Release unit test IR (without symbols)
llvm[4]: Compiling raw_ostream_test.cpp for Release build
llvm[4]: ======= Finished Linking Release Unit test IR (without symbols)
llvm[4]: Compiling ScalarEvolutionTest.cpp for Release build
llvm[4]: Linking Release unit test Support (without symbols)
llvm[4]: ======= Finished Linking Release Unit test Support (without symbols)
llvm[4]: Linking Release unit test Analysis (without symbols)
llvm[4]: Compiling BitReaderTest.cpp for Release build
llvm[4]: ======= Finished Linking Release Unit test Analysis (without symbols)
llvm[4]: Compiling DWARFFormValueTest.cpp for Release build
llvm[4]: Linking Release unit test Bitcode (without symbols)
llvm[4]: Linking Release unit test DebugInfo (without symbols)
llvm[4]: ======= Finished Linking Release Unit test Bitcode (without symbols)
llvm[4]: ======= Finished Linking Release Unit test DebugInfo (without symbols)
llvm[2]: ***** Completed Release Build
Makefile:78: recipe for target 'julia-deps' failed
make: *** [julia-deps] Error 2


Procedure (3)
-Same as above but ran /julia/contrib/windows/msys_build.sh  (note that the git-sdk uses msys2)


 gcc -march=x86-64 -m64  -D_WIN32_WINNT=0x0502 -DHAVE_SSP=1 -O3 -ggdb3 -falign-functions -momit-leaf-frame-pointer -I../support -std=gnu99 -pipe  -fno-strict-aliasing -D_FILE_OFFSET_BITS=64  -I/julia/usr/include -I/julia/usr/include  -DLIBRARY_EXPORTS -DUTF8PROC_EXPORTS -Wall -Wno-strict-aliasing -DUSE_COMPUTED_GOTO -fvisibility=hidden -DNDEBUG -c flmain.c -o /julia/src/flisp/flmain.o
 gcc -march=x86-64 -m64 -O3 -ggdb3 -falign-functions -momit-leaf-frame-pointer -I../support -std=gnu99 -pipe  -fno-strict-aliasing -D_FILE_OFFSET_BITS=64  -I/julia/usr/include -I/julia/usr/include  -DLIBRARY_EXPORTS -DUTF8PROC_EXPORTS -Wall -Wno-strict-aliasing -DUSE_COMPUTED_GOTO -fvisibility=hidden /julia/src/flisp/flisp.o /julia/src/flisp/builtins.o /julia/src/flisp/string.o /julia/src/flisp/equalhash.o /julia/src/flisp/table.o /julia/src/flisp/iostream.o /julia/src/flisp/julia_extensions.o /julia/src/flisp/flmain.o -o /julia/src/flisp/flisp /julia/src/flisp/libflisp.a /julia/src/flisp/../support/libsupport.a /julia/usr/lib/libuv.a /julia/usr/lib/libutf8proc.a  -Wl,--export-all-symbols -Wl,--version-script=/julia/src/julia.expmap -Wl,--no-whole-archive -lpsapi -lkernel32 -lws2_32 -liphlpapi -lwinmm -ldbghelp -lssp
make[2]: Leaving directory '/julia/src/flisp'
 ./flisp/flisp /julia/src/mk_julia_flisp_boot.scm /julia/src/ jlfrontend.scm julia_flisp.boot
 ./flisp/flisp /julia/src/bin2hex.scm < julia_flisp.boot > julia_flisp.boot.inc
 gcc -march=x86-64 -m64  -D_WIN32_WINNT=0x0502 -DHAVE_SSP=1 -std=gnu99 -pipe  -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DCOPY_STACKS -O3 -ggdb3 -falign-functions -momit-leaf-frame-pointer -D_GNU_SOURCE -I. -I/julia/src -I/julia/src/flisp -I/julia/src/support -I/home/Tony/julia/deps/llvm-3.3/include -I/julia/usr/include -I/julia/usr/include -DLIBRARY_EXPORTS -I/julia/deps/valgrind -Wall -Wno-strict-aliasing -fno-omit-frame-pointer -fvisibility=hidden -fno-common "-DJL_SYSTEM_IMAGE_PATH=\"../lib/julia/sys.dll\"" -DNDEBUG -c /julia/src/ast.c -o ast.o
 gcc -march=x86-64 -m64  -D_WIN32_WINNT=0x0502 -DHAVE_SSP=1 -std=gnu99 -pipe  -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DCOPY_STACKS -O3 -ggdb3 -falign-functions -momit-leaf-frame-pointer -D_GNU_SOURCE -I. -I/julia/src -I/julia/src/flisp -I/julia/src/support -I/home/Tony/julia/deps/llvm-3.3/include -I/julia/usr/include -I/julia/usr/include -DLIBRARY_EXPORTS -I/julia/deps/valgrind -Wall -Wno-strict-aliasing -fno-omit-frame-pointer -fvisibility=hidden -fno-common "-DJL_SYSTEM_IMAGE_PATH=\"../lib/julia/sys.dll\"" -DNDEBUG -c /julia/src/builtins.c -o builtins.o
 gcc -march=x86-64 -m64  -D_WIN32_WINNT=0x0502 -DHAVE_SSP=1 -std=gnu99 -pipe  -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DCOPY_STACKS -O3 -ggdb3 -falign-functions -momit-leaf-frame-pointer -D_GNU_SOURCE -I. -I/julia/src -I/julia/src/flisp -I/julia/src/support -I/home/Tony/julia/deps/llvm-3.3/include -I/julia/usr/include -I/julia/usr/include -DLIBRARY_EXPORTS -I/julia/deps/valgrind -Wall -Wno-strict-aliasing -fno-omit-frame-pointer -fvisibility=hidden -fno-common "-DJL_SYSTEM_IMAGE_PATH=\"../lib/julia/sys.dll\"" -DNDEBUG -c /julia/src/module.c -o module.o
make[1]: *** No rule to make target 'disasm.o', needed by '/julia/usr/bin/libjulia.dll'.  Stop.
make[1]: Leaving directory '/julia/src'
Makefile:87: recipe for target 'julia-src-release' failed
make: *** [julia-src-release] Error 2




Procedure (4)

     - Install msys2 from http://msys2.github.io/  . In particular: msys2-x86_64-20150916.exe
     - Open msys2_shell.bat  ran    `update-core` ; restarted shell
     - Ran pacman -S mingw64/mingw-w64-x86_64-gcc 5.2.0-3 mingw64/mingw-w64-x86_64-gcc-fortran 5.2.0-3
     - Ran pacman -S diffutils git m4 make patch tar p7zip msys/openssh ca-certificates
     - open new shell (directory ~)
     - configure shell   echo "export PATH=mingw64/bin:/usr/local/bin:/usr/bin:/opt/bin:/C/Anaconda3/envs/p2" >> ~/.bashrc
     - git clone https://github.com/JuliaLang/julia.git    ;    cd julia
   - echo 'override CMAKE=/c/cmake-3.3.2-win32-x86/CMake/bin/cmake.exe' > Make.user

Failure message


libtool: link: ln .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_10.o .libs/libfftw3.lax/lt206-hc2cfdftv_10.o || cp .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_10.o .libs/libfftw3.l                                                                             ax/lt206-hc2cfdftv_10.o
libtool: link: ln .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_12.o .libs/libfftw3.lax/lt207-hc2cfdftv_12.o || cp .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_12.o .libs/libfftw3.l                                                                             ax/lt207-hc2cfdftv_12.o
libtool: link: ln .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_16.o .libs/libfftw3.lax/lt208-hc2cfdftv_16.o || cp .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_16.o .libs/libfftw3.l                                                                             ax/lt208-hc2cfdftv_16.o
libtool: link: ln .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_2.o .libs/libfftw3.lax/lt209-hc2cfdftv_2.o || cp .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_2.o .libs/libfftw3.lax/                                                                             lt209-hc2cfdftv_2.o
libtool: link: ln .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_20.o .libs/libfftw3.lax/lt210-hc2cfdftv_20.o || cp .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_20.o .libs/libfftw3.l                                                                             ax/lt210-hc2cfdftv_20.o
libtool: link: ln .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_32.o .libs/libfftw3.lax/lt211-hc2cfdftv_32.o || cp .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_32.o .libs/libfftw3.l                                                                             ax/lt211-hc2cfdftv_32.o
libtool: link: ln .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_4.o .libs/libfftw3.lax/lt212-hc2cfdftv_4.o || cp .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_4.o .libs/libfftw3.lax/                                                                             lt212-hc2cfdftv_4.o
libtool: link: ln .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_6.o .libs/libfftw3.lax/lt213-hc2cfdftv_6.o || cp .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_6.o .libs/libfftw3.lax/                                                                             lt213-hc2cfdftv_6.o
libtool: link: ln .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_8.o .libs/libfftw3.lax/lt214-hc2cfdftv_8.o || cp .libs/libfftw3.lax/librdft_avx_codelets.a/hc2cfdftv_8.o .libs/libfftw3.lax/                                                                             lt214-hc2cfdftv_8.o
libtool: link: ar cru .libs/libfftw3f.a @.libs\\libfftw3f.libcmd
libtool: link: ranlib .libs/libfftw3f.a
libtool: link: rm -fr .libs/libfftw3f.lax .libs/libfftw3f.lax
libtool: link: ( cd ".libs" && rm -f "libfftw3f.la" && cp -pR "../libfftw3f.la" "libfftw3f.la" )
Making all in tests
libtool: link: gcc -m64 -O3 -fomit-frame-pointer -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math -Wl,--stack -Wl,8388608 -o .libs/bench.exe bench-bench.o bench-hoo                                                                             k.o bench-fftw-bench.o  ../.libs/libfftw3f.dll.a ../libbench2/libbench2.a -L/home/me/julia/usr/lib
Making all in mpi
Making all in doc
Making all in FAQ
Making all in tools
libtool: link: gcc -m64 -O3 -fomit-frame-pointer -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math -Wl,--stack -Wl,8388608 -o .libs/fftwf-wisdom.exe fftwf_wisdom-fft                                                                             w-wisdom.o ../tests/bench-bench.o ../tests/bench-fftw-bench.o  ../.libs/libfftw3f.dll.a ../libbench2/libbench2.a -L/home/me/julia/usr/lib
Making all in m4
libtool: link: ar cru .libs/libfftw3.a @.libs\\libfftw3.libcmd
libtool: link: ranlib .libs/libfftw3.a
libtool: link: rm -fr .libs/libfftw3.lax .libs/libfftw3.lax
libtool: link: ( cd ".libs" && rm -f "libfftw3.la" && cp -pR "../libfftw3.la" "libfftw3.la" )
Making all in tests
libtool: link: gcc -m64 -O3 -fomit-frame-pointer -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math -Wl,--stack -Wl,8388608 -o .libs/bench.exe bench-bench.o bench-hoo                                                                             k.o bench-fftw-bench.o  ../.libs/libfftw3.dll.a ../libbench2/libbench2.a -L/home/me/julia/usr/lib
Making all in mpi
Making all in doc
Making all in FAQ
Making all in tools
libtool: link: gcc -m64 -O3 -fomit-frame-pointer -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math -Wl,--stack -Wl,8388608 -o .libs/fftw-wisdom.exe fftw_wisdom-fftw-                                                                             wisdom.o ../tests/bench-bench.o ../tests/bench-fftw-bench.o  ../.libs/libfftw3.dll.a ../libbench2/libbench2.a -L/home/me/julia/usr/lib
Making all in m4
Makefile:78: recipe for target 'julia-deps' failed
make: *** [julia-deps] Error 2