Skip to content

Building bgrep in release mode fails with linker errors #746

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

Closed
bjorn3 opened this issue Oct 9, 2019 · 4 comments
Closed

Building bgrep in release mode fails with linker errors #746

bjorn3 opened this issue Oct 9, 2019 · 4 comments
Labels
C-bug Category: This is a bug.
Milestone

Comments

@bjorn3
Copy link
Member

bjorn3 commented Oct 9, 2019

https://github.com/gahag/bgrep

Reported by @jyn514 in https://github.com/bjorn3/rustc_codegen_cranelift/issues/247#issuecomment-540092766

@bjorn3 bjorn3 added the C-bug Category: This is a bug. label Oct 9, 2019
@bjorn3 bjorn3 added this to the MVP milestone Oct 9, 2019
@bjorn3 bjorn3 mentioned this issue Oct 9, 2019
15 tasks
@bjorn3
Copy link
Member Author

bjorn3 commented Oct 9, 2019

@bjorn3
Copy link
Member Author

bjorn3 commented Oct 9, 2019

The relevant rlibs seem to export at least several of the symbols which the linker thinks are undefined.

@bjorn3
Copy link
Member Author

bjorn3 commented Oct 9, 2019

I diffed the linker invocation and the only diff is that cg_clif codegens the allocator shim, while cg_llvm doesn't. This can't be the source of this problem though.

@bjorn3
Copy link
Member Author

bjorn3 commented Jan 17, 2020

bgrep uses LTO in release mode. This doesn't work with cg_clif. See https://github.com/bjorn3/rustc_codegen_cranelift/issues/779#issuecomment-575661625 for more info.

@bjorn3 bjorn3 closed this as completed Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

1 participant