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

Compilation with latest (3.6svn) LLVM fails #16660

Closed
jauhien opened this issue Aug 21, 2014 · 1 comment
Closed

Compilation with latest (3.6svn) LLVM fails #16660

jauhien opened this issue Aug 21, 2014 · 1 comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

Comments

@jauhien
Copy link
Contributor

jauhien commented Aug 21, 2014

Relevant piece of log:

compile: x86_64-unknown-linux-gnu/rustllvm/RustWrapper.o
/home/jauhien/work/rust/working_copy/rust/src/rustllvm/RustWrapper.cpp: In function ‘void* LLVMRustOpenArchive(char*)’:
/home/jauhien/work/rust/working_copy/rust/src/rustllvm/RustWrapper.cpp:718:60: error: no matching function for call to ‘llvm::object::Archive::Archive(std::remove_reference<std::unique_ptr<llvm::MemoryBuffer>&>::type, std::error_code&)’
     Archive *ret = new Archive(std::move(buf_or.get()), err);
                                                            ^
/home/jauhien/work/rust/working_copy/rust/src/rustllvm/RustWrapper.cpp:718:60: note: candidate is:
In file included from /home/jauhien/work/rust/working_copy/rust/src/rustllvm/RustWrapper.cpp:12:0:
/usr/include/llvm/Object/Archive.h:166:3: note: llvm::object::Archive::Archive(llvm::MemoryBufferRef, std::error_code&)
   Archive(MemoryBufferRef Source, std::error_code &EC);
   ^
/usr/include/llvm/Object/Archive.h:166:3: note:   no known conversion for argument 1 from ‘std::remove_reference<std::unique_ptr<llvm::MemoryBuffer>&>::type {aka std::unique_ptr<llvm::MemoryBuffer>}’ to ‘llvm::MemoryBufferRef’
make: *** [x86_64-unknown-linux-gnu/rustllvm/RustWrapper.o] Error 1

It seems like interface of LLVM has been changed.

@sanxiyn sanxiyn added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Jan 25, 2015
@dotdash
Copy link
Contributor

dotdash commented Feb 28, 2015

We're successfully building with 3.6 now.

@dotdash dotdash closed this as completed Feb 28, 2015
bors added a commit to rust-lang-ci/rust that referenced this issue Mar 3, 2024
fix: panic when inlining callsites inside macros' parameters

Close rust-lang#16660, rust-lang#12429, rust-lang#10695.

When `inline_into_callers` encounters callsites in macros parameters, it can lead to panics. Since there is no perfect way to handle macros, this PR directly filters out these cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
Projects
None yet
Development

No branches or pull requests

3 participants