<div dir="ltr"><p style="margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.3999996185303px;margin-top:0px!important">Ubuntu 14.04<br style="box-sizing: border-box;">I can compile julia directly, but when I tried to compile it using some special specifications. I got some error.</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.3999996185303px">Following the specification of Cxx.jl <a href="https://github.com/Keno/Cxx.jl" style="color:rgb(64,120,192);text-decoration:none;background-color:transparent">https://github.com/Keno/Cxx.jl</a><br style="box-sizing: border-box;">I made a <code style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:11.8999996185303px;padding:0.2em 0px;margin:0px;border-radius:3px;background-color:rgba(0,0,0,0.0392157)">Make.user</code> file with following content:</p><pre style="overflow:auto;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:11.8999996185303px;margin-top:0px;margin-bottom:16px;font-stretch:normal;line-height:1.45;padding:16px;border-radius:3px;word-wrap:normal;color:rgb(51,51,51);background-color:rgb(247,247,247)"><code style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:11.8999996185303px;padding:0px;margin:0px;border-radius:3px;word-break:normal;border:0px;display:inline;max-width:initial;overflow:initial;line-height:inherit;word-wrap:normal;background:transparent">override LLDB_VER=master
override LLVM_VER=svn
override LLVM_ASSERTIONS=1
override BUILD_LLVM_CLANG=1
override BUILD_LLDB=1
override USE_LLVM_SHLIB=1
override LLDB_DISABLE_PYTHON=1</code></pre><pre style="overflow:auto;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:11.8999996185303px;margin-top:0px;margin-bottom:16px;font-stretch:normal;line-height:1.45;padding:16px;border-radius:3px;word-wrap:normal;color:rgb(51,51,51);background-color:rgb(247,247,247)"><code style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:11.8999996185303px;padding:0px;margin:0px;border-radius:3px;word-break:normal;border:0px;display:inline;max-width:initial;overflow:initial;line-height:inherit;word-wrap:normal;background:transparent"> CC src/codegen.o
codegen.cpp: In function ‘void init_julia_llvm_env(llvm::Module*)’:
codegen.cpp:5363:47: error: ‘createTypeBasedAliasAnalysisPass’ was not
declared in this scope
     FPM->add(createTypeBasedAliasAnalysisPass());
                                               ^
make[1]: *** [codegen.o] Error 1
make: *** [julia-src-release] Error 2
</code></pre><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.3999996185303px">after commenting that line, I could compile julia. But, still can not build Cxx</p><pre style="overflow:auto;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:11.8999996185303px;margin-top:0px;font-stretch:normal;line-height:1.45;padding:16px;border-radius:3px;word-wrap:normal;color:rgb(51,51,51);margin-bottom:0px!important;background-color:rgb(247,247,247)"><code style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:11.8999996185303px;padding:0px;margin:0px;border-radius:3px;word-break:normal;border:0px;display:inline;max-width:initial;overflow:initial;line-height:inherit;word-wrap:normal;background:transparent">julia> Pkg.build("Cxx")
INFO: Building Cxx
Tuning for julia installation at: /usr/people/jingpeng/libs/julia/usr/bin
    CC /usr/people/jingpeng/.julia/v0.4/Cxx/deps/build/bootstrap.o
../src/bootstrap.cpp: In function ‘void init_clang_instance(CxxInstance*, const char*)’:
../src/bootstrap.cpp:878:29: error: ‘class clang::TargetInfo’ has no member named ‘getTargetDescription’
     TD = new DataLayout(tin.getTargetDescription());
                             ^
../src/bootstrap.cpp:886:34: error: no matching function for call to ‘clang::CodeGen::CodeGenModule::CodeGenModule(clang::ASTContext&, clang::HeaderSearchOptions&, clang::PreprocessorOptions&, clang::CodeGenOptions&, llvm::Module&, llvm::DataLayout&, clang::DiagnosticsEngine&)’
         Cxx->CI->getDiagnostics());
                                  ^
../src/bootstrap.cpp:886:34: note: candidate is:
In file included from ../src/bootstrap.cpp:54:0:
/usr/people/jingpeng/libs/julia/usr/bin/../../deps/llvm-svn/tools/clang/lib/CodeGen/CodeGenModule.h:494:3: note: clang::CodeGen::CodeGenModule::CodeGenModule(clang::ASTContext&, const clang::HeaderSearchOptions&, const clang::PreprocessorOptions&, const clang::CodeGenOptions&, llvm::Module&, clang::DiagnosticsEngine&, clang::CoverageSourceInfo*)
   CodeGenModule(ASTContext &C, const HeaderSearchOptions &headersearchopts,
   ^
/usr/people/jingpeng/libs/julia/usr/bin/../../deps/llvm-svn/tools/clang/lib/CodeGen/CodeGenModule.h:494:3: note:   no known conversion for argument 6 from ‘llvm::DataLayout’ to ‘clang::DiagnosticsEngine&’
../src/bootstrap.cpp:906:25: error: ‘class clang::Builtin::Context’ has no member named ‘InitializeBuiltins’
     pp.getBuiltinInfo().InitializeBuiltins(pp.getIdentifierTable(),
                         ^
../src/bootstrap.cpp: In function ‘void* getTypeName(CxxInstance*, void*)’:
../src/bootstrap.cpp:2052:13: error: use of deleted function ‘void llvm::raw_svector_ostream::flush()’
   Out.flush();
             ^
In file included from /usr/people/jingpeng/libs/julia/usr/bin/../../usr/include/llvm/Object/ELFObjectFile.h:29:0,
                 from /usr/people/jingpeng/libs/julia/usr/bin/../../usr/include/llvm/Object/RelocVisitor.h:21,
                 from /usr/people/jingpeng/libs/julia/usr/bin/../../usr/include/llvm/DebugInfo/DIContext.h:21,
                 from /usr/people/jingpeng/libs/julia/usr/bin/../../usr/include/llvm/ExecutionEngine/RuntimeDyld.h:22,
                 from /usr/people/jingpeng/libs/julia/usr/bin/../../usr/include/llvm/ExecutionEngine/ExecutionEngine.h:18,
                 from ../src/bootstrap.cpp:13:
/usr/people/jingpeng/libs/julia/usr/bin/../../usr/include/llvm/Support/raw_ostream.h:512:8: error: declared here
   void flush() = delete;
        ^
make: *** [build/bootstrap.o] Error 1
================================================================================================================[ ERROR: Cxx ]=================================================================================================================

LoadError: failed process: Process(`make -f BuildBootstrap.Makefile JULIA_HOME=/usr/people/jingpeng/libs/julia/usr/bin`, ProcessExited(2)) [2]
while loading /usr/people/jingpeng/.julia/v0.4/Cxx/deps/build.jl, in expression starting on line 16

===============================================================================================================================================================================================================================================

===============================================================================================================[ BUILD ERRORS ]================================================================================================================

WARNING: Cxx had build errors.

 - packages with build errors remain installed in /usr/people/jingpeng/.julia/v0.4
 - build the package(s) and all dependencies with `Pkg.build("Cxx")`
 - build a single package by running its `deps/build.jl` script

===============================================================================================================================================================================================================================================</code></pre><div class="gmail_quote"><div class="HOEnZb"><div class="h5"><p style="font-size:small;color:#666">—<br>Reply to this email directly or <a href="https://github.com/JuliaLang/julia/issues/12509#issuecomment-131931948" target="_blank">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AHTA9aETTmGPrEZp23LmYdvcKPCbImz0ks5ooihhgaJpZM4FnyP1.gif" width="1"></p>
<div>
<div>
  
  
</div>

</div>
</div></div></div><br></div>