[llvm-bugs] Fwd: [julia] llvm-svn build broken (#12509)
Jingpeng Wu via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 17 12:12:17 PDT 2015
Ubuntu 14.04
I can compile julia directly, but when I tried to compile it using some
special specifications. I got some error.
Following the specification of Cxx.jl https://github.com/Keno/Cxx.jl
I made a Make.user file with following content:
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
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
after commenting that line, I could compile julia. But, still can not build
Cxx
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
===============================================================================================================================================================================================================================================
—
Reply to this email directly or view it on GitHub
<https://github.com/JuliaLang/julia/issues/12509#issuecomment-131931948>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150817/d862fadc/attachment.html>
More information about the llvm-bugs
mailing list