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

Fix Snapdragon linking #11968

Merged
merged 2 commits into from
May 6, 2019
Merged

Fix Snapdragon linking #11968

merged 2 commits into from
May 6, 2019

Conversation

julianoes
Copy link
Contributor

This fixes two linking issues on Snapdragon. For more infos check out the commit messages.

The fix for the missing atomic builtin was fairly obvious, for the _LSin symbol I had to bisect and then remove sih from the Snappy build.

Fixes #11945.

julianoes added 2 commits May 6, 2019 15:24
When sih (simulation in hardware) was compiled for Snapdragon, we got
the linking problem below. I'm not sure why, supposedly the symbol
`double sin(double)` is missing.

undefined PLT symbol _LSin (705) /libpx4.so (symbol.c:303)
It looks like the atomic builtins are not available using QuRT and the
Hexagon toolchain, so our best bet is to use `volatile` for the atomics.
@julianoes julianoes requested review from dagar and bkueng May 6, 2019 13:29
@dagar dagar added this to the Release v1.9.0 milestone May 6, 2019
Copy link
Member

@dagar dagar left a comment

Choose a reason for hiding this comment

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

Unfortunate, but I don't have a better solution.

Thanks @julianoes

@dagar dagar merged commit 0a978f5 into master May 6, 2019
@dagar dagar deleted the fix-snappy-yet-again branch May 6, 2019 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

px4_atomic breaks snapdragon flight
2 participants