-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
sgx-sdk: unpin GCC #434553
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
sgx-sdk: unpin GCC #434553
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| { | ||
| gcc11Stdenv, | ||
| stdenv, | ||
| fetchFromGitHub, | ||
| cmake, | ||
| nasm, | ||
| openssl, | ||
| python3, | ||
| extraCmakeFlags ? [ ], | ||
| }: | ||
| gcc11Stdenv.mkDerivation rec { | ||
| stdenv.mkDerivation rec { | ||
| pname = "ipp-crypto"; | ||
| version = "2021.11.1"; | ||
|
|
||
|
|
@@ -25,6 +25,12 @@ gcc11Stdenv.mkDerivation rec { | |
| ] | ||
| ++ extraCmakeFlags; | ||
|
|
||
| # Yes, it seems bad for a cryptography library to trigger this | ||
| # warning. We previously pinned an EOL GCC which avoided it, but this | ||
| # issue is present regardless of whether we use a compiler that flags | ||
| # it up or not; upstream just doesn’t test with modern compilers. | ||
| env.NIX_CFLAGS_COMPILE = "-Wno-error=stringop-overflow"; | ||
|
Comment on lines
+28
to
+32
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Potentially mention this issue, which seems related?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, that doesn’t seem to include the default‐error warning that breaks the build here, and triggers even without They nominally claim support for GCC 14, though. Go figure. I could report an issue upstream if you want, but the upstream responses are generally not very encouraging. |
||
|
|
||
| nativeBuildInputs = [ | ||
| cmake | ||
| nasm | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be outdated, upstream seems to have changed its tags:
https://github.com/intel/cryptography-primitives/tags
Maybe a newer version builds differently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried
HEADand it failed in exactly the same way. This is internal tosgx-sdkand this version more closely matches the version pinned as a submodule in that repository (though it’s actually a patch version bump ahead), so I’m inclined to leave it to thesgx-sdkmaintainers to handle bumping it, given that it doesn’t affect the warning.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. This also explains why there is no meta section, I guess.