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

Enable LLD linker to enable UBSan #705

Merged
merged 2 commits into from
Jun 5, 2021
Merged

Enable LLD linker to enable UBSan #705

merged 2 commits into from
Jun 5, 2021

Conversation

senderista
Copy link
Contributor

This is the first of 3 atomic PRs to enable UBSan in our debug builds. The second will fix existing issues found by UBSan, and the third will enable UBSan in "immediate termination" mode, so builds with flagged issues will immediately fail the test suite.

NB: this requires lld to be installed in the build environment. lld is now automatically installed by gdev, but in non-gdev environments, you need to install it with the OS package manager, e.g. on Ubuntu:

sudo apt install lld

@@ -9,6 +9,7 @@ libcap-dev
openjdk-8-jdk
python3-dev
{enable_if('GaiaRelease')}rpm
lld
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe move this higher in this list, as it's a more important component than the others.

Copy link
Contributor

@simone-gaia simone-gaia left a comment

Choose a reason for hiding this comment

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

LGTM, really curious to see if thanks to this we can shave some seconds off the build time,

@senderista
Copy link
Contributor Author

LGTM, really curious to see if thanks to this we can shave some seconds off the build time,

Sadly, I have no idea...

@senderista senderista merged commit 02450dd into master Jun 5, 2021
@senderista senderista deleted the enable_lld branch June 5, 2021 00:51
senderista added a commit that referenced this pull request Jun 6, 2021
senderista added a commit that referenced this pull request Jun 7, 2021
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