JuliaInterop / Cxx.jl

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

Cxx.jl won't build for julia 1.1 build from source OSX. #416

Closed TransGirlCodes closed 5 years ago

TransGirlCodes commented 5 years ago

Hi if I try to build julia from source, the following happens:

(v1.1) pkg> build Cxx
  Building Cxx → `~/.julia/packages/Cxx/8BHMC/deps/build.log`
┌ Error: Error building `Cxx`, showing the last 100 of log: 
│   JL_DLLEXPORT const clang::Type *EX(C) {                          \
│                                      ^
│ ../src/bootstrap.cpp:155:3: error: use of undeclared identifier 'Cxx'
│ ../src/bootstrap.cpp:151:12: note: expanded from macro 'TYPE_ACCESS'
│     return Cxx->CI->getASTContext().IN.getTypePtrOrNull();      \
│            ^
│ ../src/bootstrap.cpp:156:3: error: unknown type name 'C'
│   TYPE_ACCESS(cT_int1,BoolTy)
│   ^
│ ../src/bootstrap.cpp:150:38: note: expanded from macro 'TYPE_ACCESS'
│   JL_DLLEXPORT const clang::Type *EX(C) {                          \
│                                      ^
│ ../src/bootstrap.cpp:156:3: error: use of undeclared identifier 'Cxx'
│ ../src/bootstrap.cpp:151:12: note: expanded from macro 'TYPE_ACCESS'
│     return Cxx->CI->getASTContext().IN.getTypePtrOrNull();      \
│            ^
│ ../src/bootstrap.cpp:157:3: error: unknown type name 'C'
│   TYPE_ACCESS(cT_int8,SignedCharTy)
│   ^
│ ../src/bootstrap.cpp:150:38: note: expanded from macro 'TYPE_ACCESS'
│   JL_DLLEXPORT const clang::Type *EX(C) {                          \
│                                      ^
│ ../src/bootstrap.cpp:157:3: error: use of undeclared identifier 'Cxx'
│ ../src/bootstrap.cpp:151:12: note: expanded from macro 'TYPE_ACCESS'
│     return Cxx->CI->getASTContext().IN.getTypePtrOrNull();      \
│            ^
│ ../src/bootstrap.cpp:158:3: error: unknown type name 'C'
│   TYPE_ACCESS(cT_uint8,UnsignedCharTy)
│   ^
│ ../src/bootstrap.cpp:150:38: note: expanded from macro 'TYPE_ACCESS'
│   JL_DLLEXPORT const clang::Type *EX(C) {                          \
│                                      ^
│ ../src/bootstrap.cpp:158:3: error: use of undeclared identifier 'Cxx'
│ ../src/bootstrap.cpp:151:12: note: expanded from macro 'TYPE_ACCESS'
│     return Cxx->CI->getASTContext().IN.getTypePtrOrNull();      \
│            ^
│ ../src/bootstrap.cpp:159:3: error: unknown type name 'C'
│   TYPE_ACCESS(cT_int16,ShortTy)
│   ^
│ ../src/bootstrap.cpp:150:38: note: expanded from macro 'TYPE_ACCESS'
│   JL_DLLEXPORT const clang::Type *EX(C) {                          \
│                                      ^
│ ../src/bootstrap.cpp:159:3: error: use of undeclared identifier 'Cxx'
│ ../src/bootstrap.cpp:151:12: note: expanded from macro 'TYPE_ACCESS'
│     return Cxx->CI->getASTContext().IN.getTypePtrOrNull();      \
│            ^
│ ../src/bootstrap.cpp:160:3: error: unknown type name 'C'
│   TYPE_ACCESS(cT_uint16,UnsignedShortTy)
│   ^
│ ../src/bootstrap.cpp:150:38: note: expanded from macro 'TYPE_ACCESS'
│   JL_DLLEXPORT const clang::Type *EX(C) {                          \
│                                      ^
│ ../src/bootstrap.cpp:160:3: error: use of undeclared identifier 'Cxx'
│ ../src/bootstrap.cpp:151:12: note: expanded from macro 'TYPE_ACCESS'
│     return Cxx->CI->getASTContext().IN.getTypePtrOrNull();      \
│            ^
│ ../src/bootstrap.cpp:161:3: error: unknown type name 'C'
│   TYPE_ACCESS(cT_int32,IntTy)
│   ^
│ ../src/bootstrap.cpp:150:38: note: expanded from macro 'TYPE_ACCESS'
│   JL_DLLEXPORT const clang::Type *EX(C) {                          \
│                                      ^
│ ../src/bootstrap.cpp:161:3: error: use of undeclared identifier 'Cxx'
│ ../src/bootstrap.cpp:151:12: note: expanded from macro 'TYPE_ACCESS'
│     return Cxx->CI->getASTContext().IN.getTypePtrOrNull();      \
│            ^
│ ../src/bootstrap.cpp:162:3: error: unknown type name 'C'
│   TYPE_ACCESS(cT_uint32,UnsignedIntTy)
│   ^
│ ../src/bootstrap.cpp:150:38: note: expanded from macro 'TYPE_ACCESS'
│   JL_DLLEXPORT const clang::Type *EX(C) {                          \
│                                      ^
│ ../src/bootstrap.cpp:162:3: error: use of undeclared identifier 'Cxx'
│ ../src/bootstrap.cpp:151:12: note: expanded from macro 'TYPE_ACCESS'
│     return Cxx->CI->getASTContext().IN.getTypePtrOrNull();      \
│            ^
│ ../src/bootstrap.cpp:164:3: error: unknown type name 'C'
│   TYPE_ACCESS(cT_int64,LongLongTy)
│   ^
│ ../src/bootstrap.cpp:150:38: note: expanded from macro 'TYPE_ACCESS'
│   JL_DLLEXPORT const clang::Type *EX(C) {                          \
│                                      ^
│ fatal error: too many errors emitted, stopping now [-ferror-limit=]
│ 20 errors generated.
│ make: *** [build/bootstrap.o] Error 1
│ [ Info: Building julia source build
│ ERROR: LoadError: failed process: Process(`make -j8 -f BuildBootstrap.Makefile BASE_JULIA_BIN=/Users/bward/repos/julia/usr/bin BASE_JULIA_SRC=/Users/bward/repos/julia/usr/bin/../..`, ProcessExited(2)) [2]
│ Stacktrace:
│  [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
│  [2] pipeline_error at ./process.jl:785 [inlined]
│  [3] #run#515(::Bool, ::Function, ::Cmd) at ./process.jl:726
│  [4] run(::Cmd) at ./process.jl:724
│  [5] top-level scope at /Users/bward/.julia/packages/Cxx/8BHMC/deps/build.jl:45
│  [6] include at ./boot.jl:326 [inlined]
│  [7] include_relative(::Module, ::String) at ./loading.jl:1038
│  [8] include(::Module, ::String) at ./sysimg.jl:29
│  [9] include(::String) at ./client.jl:403
│  [10] top-level scope at none:0
│ in expression starting at /Users/bward/.julia/packages/Cxx/8BHMC/deps/build.jl:40
│ writing path.jl file
│ Tuning for julia installation at /Users/bward/repos/julia/usr/bin with sources possibly at /Users/bward/repos/julia/usr/bin/../..
│ 
│ Full log at /Users/bward/.julia/packages/Cxx/8BHMC/deps/build.log
└ @ Pkg.Operations ~/repos/julia/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075
Gnimuc commented 5 years ago

Sorry, that's due to a previous merge fault added when I was exploring Windows support. I've rolled back those changes on master.

Gnimuc commented 5 years ago

I've tagged a new release and rebuilt it successfully on my machine. Feel free to reopen if the problem persists.