JuliaInterop / Cxx.jl

The Julia C++ Interface
Other
757 stars 108 forks source link

Failure to precompile Cxx #384

Closed vd2309 closed 5 years ago

vd2309 commented 6 years ago

Hello!

I have a Mac - High Sierra and am using JUNO - Julia version 0.6.2.2 I am coding "using Cxx" and I get an error each time, even though the package has already been added.

This is the error I get:

INFO: Precompiling module Cxx. ERROR: LoadError: LoadError: could not open file /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/Cxx/src/../deps/build/clang_constants.jl Stacktrace: [1] include_from_node1(::String) at ./loading.jl:576 [2] include(::String) at ./sysimg.jl:14 [3] include_from_node1(::String) at ./loading.jl:576 [4] include(::String) at ./sysimg.jl:14 [5] include_from_node1(::String) at ./loading.jl:576 [6] include(::String) at ./sysimg.jl:14 [7] anonymous at ./:2 while loading /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/Cxx/src/typetranslation.jl, in expression starting on line 434 while loading /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/Cxx/src/Cxx.jl, in expression starting on line 162 ERROR: LoadError: Failed to precompile Cxx to /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/lib/v0.6/Cxx.ji. Stacktrace: [1] (::Atom.##110#114{String,String})() at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/Atom/src/eval.jl:104 [2] withpath(::Atom.##110#114{String,String}, ::Void) at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/CodeTools/src/utils.jl:30 [3] withpath(::Function, ::String) at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/Atom/src/eval.jl:38 [4] hideprompt(::Atom.##109#113{String,String}) at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/Atom/src/repl.jl:65 [5] macro expansion at /Applications/JuliaPro-0.6.2.2.app/Contents/Resources/pkgs-0.6.2.2/v0.6/Atom/src/eval.jl:99 [inlined] [6] (::Atom.##108#112{Dict{String,Any}})() at ./task.jl:80 while loading untitled-6fe6b15c54a6afaa0a700c5a874733e5, in expression starting on line 4

It says could not open file clang_constants, but when I look in my folders and in the src folder in github there is no clang_constants jl file? Am i missing something?

Thanks very much! Please let me know what to do.

Ginny

Gnimuc commented 5 years ago

clang_constants.jl is auto-generated when building Cxx locally. Now Cxx master supports BB2 and this file is shipped along with other binaries.