USE_LLVM_SHLIB requires the patch linked here in order to export symbols correctly.
https://github.com/Keno/Cxx.jl/issues/62#issuecomment-88980621 Anyway, keep an eye on: https://github.com/JuliaLang/julia/issues/9336 You can be sure that when all of this is usable in a default build, it won't be a secret. On Tue, Jan 5, 2016 at 8:55 PM, J Luis <jmfl...@gmail.com> wrote: > Well, I did remove deps\build\llvm-3.7.1 but when making again I get tons > of. > Guess that it's time to stop and try again in a couple of months. > > > Cannot export > ZZNK4llvm14MCLOHDirective11getEmitSizeERKNS_16MachObjectWriterERKNS_11MCAsmLayoutEENK20raw_counting_ostream11current_posEv: > symbol not defined > Cannot export > ZnwIN4llvm15MallocAllocatorELy4096ELy4096EEPvyRNS0_20BumpPtrAllocatorImplIT_XT0_EXT1_EEE: > symbol not defined > Cannot export _jit_debug_descriptor: symbol not defined > Cannot export _jit_debug_register_code: symbol not defined > collect2.exe: error: ld returned 1 exit status > > terça-feira, 5 de Janeiro de 2016 às 23:23:39 UTC, Isaiah escreveu: >> >> Good point, you don't need LLDB for only Cxx.jl (I was trying to build >> Gallium). >> >> You do need BUILD_LLVM_CLANG. I haven't had much luck enabling >> sub-projects in Make.user with an existing LLVM build, so my only >> recommendation would be to remove the LLVM build directory. >> >> On Tue, Jan 5, 2016 at 6:08 PM, J Luis <jmf...@gmail.com> wrote: >> >>> I'm not trying to build with LLDB. Actually, I had to build with (in >>> Make.user) >>> >>> LLVM_VER=3.7.1 >>> >>> adding the other settings advised in the Cxx page lead to lots of >>> errors. But after having build with the above, I added >>> >>> override BUILD_LLVM_CLANG=1 >>> override USE_LLVM_SHLIB=1 >>> >>> and advanced more (make install still has many errors) >>> >>> with this I got a clang and the ScopeInfo.h file, but it was not yet >>> found. >>> I think there is an error in Cxx\deps\BuildBootstrap.Makefile. It has >>> >>> -I$(JULIAHOME)/deps/srccache/llvm-$(LLVM_VER)/tools/clang/lib \ >>> >>> but there are no header files in it. Changing the line to >>> >>> >>> -I$(JULIAHOME)/deps/srccache/llvm-$(LLVM_VER)/tools/clang/include \ >>> >>> allowed me to proceed a bit further. It now errors >>> >>> V:/julia64/usr/bin/../../deps/srccache/llvm-3.7.1/tools/clang/include/clang/Basic/DiagnosticIDs.h:53:49: >>> fatal error: cl >>> ang/Basic/DiagnosticCommonKinds.inc: No such file or directory >>> #include "clang/Basic/DiagnosticCommonKinds.inc" >>> >>> but the file exists in >>> >>> deps\build\llvm-3.7.1\build_Release\tools\clang\include\clang\Basic >>> or >>> usr-staging\llvm-3.7.1\build_Release\V\julia64\usr\include\clang\Basic >>> >>> >>> >>> >>> >>> >>> terça-feira, 5 de Janeiro de 2016 às 22:28:02 UTC, Isaiah escreveu: >>>> >>>> Last time I tried this (~October), there were still issues with using >>>> LLVM as a shared library, and with building LLDB using the recommended >>>> win32 thread model toolchain. See comments here: >>>> https://github.com/Keno/Cxx.jl/issues/62#issuecomment-88979566 >>>> >>>> If you have gotten through the LLDB build then maybe that no longer >>>> applies. >>>> >>>> and indeed, I have no ScopeInfo.h arround >>>> >>>> >>>> https://github.com/Keno/Cxx.jl/issues/207#issuecomment-169043432 >>>> >>>> On Tue, Jan 5, 2016 at 4:57 PM, J Luis <jmf...@gmail.com> wrote: >>>> >>>>> but even if I remove those "coward" lines, it errors later with >>>>> >>>>> ../src/bootstrap.cpp:31:34: fatal error: clang/Sema/ScopeInfo.h: No >>>>> such file or directory >>>>> #include "clang/Sema/ScopeInfo.h" >>>>> ^ >>>>> compilation terminated. >>>>> BuildBootstrap.Makefile:95: recipe for target 'build/bootstrap.o' >>>>> failed >>>>> make: *** [build/bootstrap.o] Error 1 >>>>> >>>>> and indeed, I have no ScopeInfo.h arround >>>>> >>>>> terça-feira, 5 de Janeiro de 2016 às 19:37:54 UTC, Keno Fischer >>>>> escreveu: >>>>>> >>>>>> `:` probably? May have to add the makefile magic that turns >>>>>> windows-style paths into msys style paths. >>>>>> >>>>>> On Tue, Jan 5, 2016 at 8:35 PM, J Luis <jmf...@gmail.com> wrote: >>>>>> >>>>>>> Hmm, I found a problem. When running Julia it doesn't know anything >>>>>>> about 'make'. So I added the msys2 dir where it lives to the path and >>>>>>> moved >>>>>>> to next error >>>>>>> >>>>>>> Tuning for julia installation at: C:\programs\julia64\usr\bin >>>>>>> C:/programs/julia64/usr/bin/../../Make.inc:101: *** cowardly >>>>>>> refusing to build into directory with a shell-metacharacter in the path >>>>>>> (got: C:/programs/julia64/usr/bin/../..). Stop. >>>>>>> >>>>>>> What " shell-metacharacter "? >>>>>>> >>>>>>> >>>>>>> >>>>>>> terça-feira, 5 de Janeiro de 2016 às 19:21:31 UTC, J Luis escreveu: >>>>>>>> >>>>>>>> So I built 0.5 with llvm 3.7.1 on Windows with the aim of trying >>>>>>>> (again) to build Cxx, but ... >>>>>>>> >>>>>>>> any idea why it errors with (which is not true)? >>>>>>>> >>>>>>>> Pkg.build("Cxx") >>>>>>>> LoadError: could not spawn `make -f BuildBootstrap.Makefile >>>>>>>> JULIA_HOME=C:/programs/julia64/usr/bin`: no such file or directory >>>>>>>> (ENOENT) >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> Joaquim >>>>>>>> >>>>>>> >>>>>> >>>> >>