Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
TransGirlCodes opened this issue May 9, 2019 · 2 comments
Closed

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

TransGirlCodes opened this issue May 9, 2019 · 2 comments

Comments

@TransGirlCodes
Copy link

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:0in 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 Gnimuc closed this as completed in d74704b May 9, 2019
@Gnimuc
Copy link
Member

Gnimuc commented May 9, 2019

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 Gnimuc reopened this May 9, 2019
@Gnimuc
Copy link
Member

Gnimuc commented May 10, 2019

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

@Gnimuc Gnimuc closed this as completed May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants