-
Notifications
You must be signed in to change notification settings - Fork 12
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
Emulate arm64 binary on x86_64 machine #60
Conversation
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 understand that we want developers to use nix
, but I think a bare make
should work out of the box on standard environments -- just to satisfy people who are curious about the repo and want to give it a very quick try.
Can we keep make
working outside of the nix
environment @potsrevennil ?
@hanno-becker I'm not sure if I understand you correctly
To be more clear, there are two external dependencies for |
@potsrevennil Ok, I'll have another look. When I try
Does it work for you? |
@hanno-becker Oh, this is not what I intended... It seems like a incompatibility issue of different version of I tested on my macOS, under While under I pushed a new version which should resolve this issue, but maybe we would also want to fix a version of |
@potsrevennil Can we remove the macros, even if it means a bit of repetition between the makefile targets? |
@hanno-becker Done, please have a look again, thanks |
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.
Minor comment regarding qemu on AArch64 systems.
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
5c453be
to
95e621d
Compare
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
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.
Mostly LGTM, but can we keep the make
output in the CI logs?
Signed-off-by: Thing-han, Lim <[email protected]>
Currently, I see the following in the CI log:
Is there a way to show the full command line? |
Ah, yes! Let me see how to do it |
Signed-off-by: Thing-han, Lim <[email protected]>
Signed-off-by: Thing-han, Lim <[email protected]>
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.
Thanks a lot @potsrevennil, LGTM
I added
scripts/tests
(should be able to be executed by simply typingtests
in nix shell) for functional, kat and nistkat tests.The script currently automatically detects the host system and decides to run natively on ARM64 machines or emulate on QEMU for x86_64 machines. We might want to add the capability to manually specify whether to run tests natively or on QEMU in the future. However, I don't think we need this functionality for now.
Usage of the script is as follow:
I have also added
black
as the Python formatter and updated theformat
andlint
scripts to utilize it for checking the format of Python scripts. I don't have a strong opinion on the choice of Python formatter, so if there are any better suggestions, I am open to using them.I made CI continues even when some part of the tests failed as @hanno-becker suggested in https://github.com/pq-code-package/mlkem-c-aarch64/issues/48 (sorry about that I somehow missed the message last week).