Skip to content

Fails to build against llvm 3.6 rc1 #21512

Closed
@sylvestre

Description

@sylvestre

With the following error:

g++  -O2  -Wall -Werror -g -fPIC -m64 -fno-rtti -MMD -MP -MT  x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o -MF x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.d -c -o  x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o    -iquote /usr/lib/llvm-3.6/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC -ffunction-sections -fdata-sections -Wcast-qual  -iquote /usr/lib/llvm-3.6/include -iquote /home/sylvestre/dev/debian/rust/src/rustllvm/include /home/sylvestre/dev/debian/rust/src/rustllvm/ExecutionEngineWrapper.cpp
/home/sylvestre/dev/debian/rust/src/rustllvm/ExecutionEngineWrapper.cpp: In function ‘LLVMOpaqueExecutionEngine* LLVMBuildExecutionEngine(LLVMModuleRef, LLVMRustJITMemoryManagerRef)’:
/home/sylvestre/dev/debian/rust/src/rustllvm/ExecutionEngineWrapper.cpp:97:34: error: no matching function for call to ‘llvm::EngineBuilder::setMCJITMemoryManager(RustJITMemoryManager*&)’
         .setMCJITMemoryManager(mm)
                                  ^
/home/sylvestre/dev/debian/rust/src/rustllvm/ExecutionEngineWrapper.cpp:97:34: note: candidate is:
In file included from /home/sylvestre/dev/debian/rust/src/rustllvm/rustllvm.h:34:0,
                 from /home/sylvestre/dev/debian/rust/src/rustllvm/ExecutionEngineWrapper.cpp:11:
/usr/lib/llvm-3.6/include/llvm/ExecutionEngine/ExecutionEngine.h:528:18: note: llvm::EngineBuilder& llvm::EngineBuilder::setMCJITMemoryManager(std::unique_ptr<llvm::RTDyldMemoryManager>)
   EngineBuilder &setMCJITMemoryManager(std::unique_ptr<RTDyldMemoryManager> mcjmm);
                  ^
/usr/lib/llvm-3.6/include/llvm/ExecutionEngine/ExecutionEngine.h:528:18: note:   no known conversion for argument 1 from ‘RustJITMemoryManager*’ to ‘std::unique_ptr<llvm::RTDyldMemoryManager>’
/home/sylvestre/dev/debian/rust/mk/rustllvm.mk:47: recipe for target 'x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o' failed
make[2]: *** [x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions