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

Makefile.uk: Add flag to avoid gcc specifc symbol #38

Closed
wants to merge 1 commit into from

Conversation

mariasfiraiala
Copy link
Contributor

When building apps with clang for x86, an asm specific symbol, __muldc3, which results in a undefined reference error, at link time.

This PR adds the -ffast-math flag, when clang is used in order to fix this issue.

@mariasfiraiala mariasfiraiala added the bug Something isn't working label Mar 11, 2023
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

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

Thanks @mariasfiraiala, it works on my side.
Since it feels a little tricky, would it make sense to add this only if libmath is selected in musl?

@mariasfiraiala
Copy link
Contributor Author

@StefanJum I've amended the commit. Regarding adding the dependency on the libmath config, the problem actually resides in the libcomplex part musl, so I've set the dependency accordingly.

Makefile.uk Outdated Show resolved Hide resolved
When building apps with `clang` for `x86`, an asm specific symbol,
`__muldc3`, appears, which results in a undefined reference error, at
link time.

This commit adds the `-ffast-math` flag, when `clang` is used in order
to fix this issue.

Signed-off-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

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

All good now, thanks @mariasfiraiala.

Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com

Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Approved-by: Razvan Deaconescu razvand@unikraft.io

@razvand razvand added this to the v0.13.0 (Atlas) milestone May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci/merged
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

4 participants