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

[SOL] Fix bug in LLD that prevented linker from being called twice #57

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

LucasSte
Copy link
Collaborator

After moving Solang to LLVM 14, an assertion in the linker was failing when we would call it more than once. This PR from the official repository introduced a new data structure LinkerContext to manage the error handler and the early exit, but it did not call the cleanUpCallBack when we are not exiting the linker early. This PR fixes this bug, so that we can use LLVM 14 on Solang.

Signed-off-by: Lucas Steuernagel <lucas.tnagel@gmail.com>
@dmakarov
Copy link
Collaborator

Could you please make this PR on solana-rustc/15.0-2022-08-09 branch https://github.com/solana-labs/llvm-project/tree/solana-rustc/15.0-2022-08-09 ? We'll switch to the new branch soon, when solana monorepo is bumped to new version of sbf-tools solana-labs/solana#29325

@seanyoung
Copy link

Could you please make this PR on solana-rustc/15.0-2022-08-09 branch https://github.com/solana-labs/llvm-project/tree/solana-rustc/15.0-2022-08-09 ? We'll switch to the new branch soon, when solana monorepo is bumped to new version of sbf-tools solana-labs/solana#29325

We'd like to switch to llvm 15 but we depend on inkwell which does not support 15 yet (hopefully soon). So, for now we would like to move to llvm 14 and once inkwell supports 15 we can move too.

@LucasSte LucasSte marked this pull request as ready for review December 21, 2022 11:23
@dmakarov dmakarov merged commit 2413614 into anza-xyz:solana-rustc/14.0-2022-03-22 Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants