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

Use float-abi=hard on armv7hf #16

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Use float-abi=hard on armv7hf #16

wants to merge 1 commit into from

Conversation

apljungquist
Copy link
Contributor

Without it linking to some libraries fail at run-time with an obscure error message.

  • Document the error message
  • Document how to reproduce

Without it linking to some libraries fail at run-time with an obscure
error message.

TODO: Document the error message
TODO: Document how to reproduce
@apljungquist apljungquist requested a review from a team as a code owner May 7, 2024 18:42
@@ -23,5 +23,5 @@ passthrough = [
"PKG_CONFIG_PATH_thumbv7neon_unknown_linux_gnueabihf=/opt/axis/acapsdk/sysroots/armv7hf/usr/lib/pkgconfig:/opt/axis/acapsdk/sysroots/armv7hf/usr/share/pkgconfig",
"PKG_CONFIG_LIBDIR_thumbv7neon_unknown_linux_gnueabihf=/opt/axis/acapsdk/sysroots/armv7hf/usr/lib/pkgconfig:/opt/axis/acapsdk/sysroots/armv7hf/usr/share/pkgconfig",
"CARGO_TARGET_THUMBV7NEON_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc",
"CARGO_TARGET_THUMBV7NEON_UNKNOWN_LINUX_GNUEABIHF_RUSTFLAGS=-C link-args=--sysroot=/opt/axis/acapsdk/sysroots/armv7hf",
"CARGO_TARGET_THUMBV7NEON_UNKNOWN_LINUX_GNUEABIHF_RUSTFLAGS=-C link-args=--sysroot=/opt/axis/acapsdk/sysroots/armv7hf -C link_arg=-mfloat-abi=hard",
Copy link

Choose a reason for hiding this comment

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

Is -C link-arg= needed given that we supply -C link-args= initially? Wondering if it could be something like:
-C link-args=--sysroot=/opt/axis/acapsdk/sysroots/armv7hf -mfloat-abi=hard

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds reasonable. I'll try to reproduce the problem (so far I have only heard that it exists and that the current change fixes it), then try your suggestion.

@apljungquist apljungquist requested a review from a team May 9, 2024 14:40
@apljungquist apljungquist marked this pull request as draft June 7, 2024 09:29
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.

2 participants