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

aws-lc-fips-sys: Default to clang compiler #682

Closed
wants to merge 1 commit into from

Conversation

michelhe
Copy link

@michelhe michelhe commented Feb 3, 2025

Issues:

Addresses #569

Description of changes:

The underlying aws-lc library is broken when built with FIPS support on GCC-14, which comes by default with many Linux distributions.

When this crate is used as a sub-dependency, the users' only workaround is to force all C/C++ code on other crates to also be compiled with clang by setting the CC/CXX environment variables.

This change circumvents the issue by setting the CC/CXX environment variables in the crate build script.

This is a temporary workaround until the underlying issue is resolved: aws/aws-lc#2010

Testing:

Tested the builds with and without setting CC and CXX.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

The underlying aws-lc library is broken when built with FIPS support on GCC-14,
which comes by default with many Linux distributions.

When this crate is used as a sub-dependency, the users' only workaround is to force
all C/C++ code on other crates to also be compiled with clang by setting the CC/CXX environment variables.

This change circumvents the issue by setting the CC/CXX environment variables in the crate
build script.

This is a temporary workaround until the underlying issue is resolved:
aws/aws-lc#2010

Signed-off-by: Michel Heily <[email protected]>
@michelhe michelhe requested a review from a team as a code owner February 3, 2025 10:21
@michelhe
Copy link
Author

michelhe commented Feb 3, 2025

Workaround (special env vars to affect compiler) merged in #678 , this is no longer needed

@michelhe michelhe closed this Feb 3, 2025
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.

GCC-14 - build failure for FIPS module
2 participants