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

Patch BoringSSL files for C tests #1692

Merged
merged 2 commits into from
Oct 24, 2023
Merged

Conversation

JasonGross
Copy link
Collaborator

@JasonGross
Copy link
Collaborator Author

@andres-erbsen I'm going to set this to squash and merge so we can (relatively) quickly unblock the other failing PRs, but feel free to revert and implement some other preferred alternative.

@andres-erbsen
Copy link
Contributor

I don't understand what you're trying to do here. IIUC the point of this integration test is to exercise the bedrock2-generated C code, so we probably shouldn't prefer assembly implementations?

JasonGross added a commit to JasonGross/fiat-crypto that referenced this pull request Oct 23, 2023
@@ -40,7 +40,7 @@ echo "::group::Building BoringSSL"
set -ex
mkdir build
cd build
cmake -GNinja .. -DCMAKE_CXX_FLAGS="-Wno-error=unused-function ${EXTRA_CFLAGS}" -DCMAKE_C_FLAGS="-Wno-error=unused-function ${EXTRA_CFLAGS}" || exit $?
cmake -GNinja .. -DOPENSSL_NO_ASM=1 -DCMAKE_CXX_FLAGS="-Wno-error=unused-function ${EXTRA_CFLAGS}" -DCMAKE_C_FLAGS="-Wno-error=unused-function ${EXTRA_CFLAGS}" || exit $?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@andres-erbsen you suggested

env CC=clang CXX=clang++ cmake -GNinja -B build-noasm -DOPENSSL_NO_ASM=1 -DCMAKE_BUILD_TYPE=Release seems to work for me

What's the relationship between .. and -B build-noasm (if any)? What's the importance of -B build-noasm?

And what are your thoughts on -DCMAKE_BUILD_TYPE=Release vs -DCMAKE_CXX_FLAGS="-Wno-error=unused-function ${EXTRA_CFLAGS}" -DCMAKE_C_FLAGS="-Wno-error=unused-function ${EXTRA_CFLAGS}"? (EXTRA_CFLAGS gets set to -Wno-error=unused-but-set-variable by CI)

@JasonGross JasonGross merged commit ad546c8 into mit-plv:master Oct 24, 2023
14 checks passed
@JasonGross JasonGross deleted the patch-boring branch April 13, 2024 15:21
@JasonGross
Copy link
Collaborator Author

Apparently build time for C tests jumped from ~13m on the last successful run before this change to ~30m after this change, did BoringSSL get much slower to build around this time? @davidben @andres-erbsen

@davidben
Copy link
Collaborator

Can't think of anything. We have been adjusting the build, but I don't see anything obviously relevant around October. I dunno, if it's a huge problem, maybe try building it at different versions and see what changed?

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.

3 participants