Skip to content

Suppress lld assertion warnings temporarily #1873

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

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

kateinoigakukun
Copy link
Member

I couldn't find the root reason why wasm-ld warns reloc validation, but I found why the warnings were suddenly appeared.

After #1582 merged, our toolchain started to use self-built wasm-ld instead of wasi-sdk's version to sync LLVM version between compiler and linker. But the wasm-ld is built with LLVM_ENABLE_ASSERTIONS=true, so it verifies reloc records while linking.

I disabled runtime assertions temporarily. I suspect that LLVM backend put invalid offset on relocation point.

Resolve #1823

@kateinoigakukun kateinoigakukun changed the title [WASM] Suppress lld assertion warnings temporarily Suppress lld assertion warnings temporarily Sep 30, 2020
Copy link

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the investigation! I think that we should keep the issue open until we investigate why the assertions were triggered in the first place.

@MaxDesiatov MaxDesiatov merged commit 5e5d9a9 into swiftwasm Sep 30, 2020
@MaxDesiatov
Copy link

BTW, this only fixes the issue in development snapshots, do we ship self-built wasm-ld in the 5.3 branch as well?

@kateinoigakukun kateinoigakukun deleted the katei/suppress-wasm-ld-warnings branch October 30, 2020 00:24
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.

Linker warnings when building with the new 5.3 toolchain
2 participants