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

Building on Fedora linux #26

Open
bkmgit opened this issue Jan 21, 2023 · 2 comments
Open

Building on Fedora linux #26

bkmgit opened this issue Jan 21, 2023 · 2 comments
Labels
compiler-support Issue or request specific to a particular compiler investigate Needs further investigation

Comments

@bkmgit
Copy link

bkmgit commented Jan 21, 2023

Default build options need some changes when packaging for Fedora Linux.
For a release build, following test fails:

Starting performance measurements...
Perf min measurement clock time = 30000
Sanity check measurements:
512.0 cycles fixedTimeLoop, 6.0 cycles null, 39.0 cycles (for 32), 71.0 cycles (for 64), 135.0 cycles (for 128), 263.0 cycles (for 256), 519.0 cycles (for 512), 1030.9 cycles (for 1024), 2054.7 cycles (for 2048), 4103.1 cycles (for 4096), 8198.2 cycles (for 8192), 16391.6 cycles (for 16384)
*

***** FATAL ERROR /builddir/build/BUILD/SymCrypt-103.1.0/unittest/lib/perf.cpp(670): Measurement too fast
error: Bad exit status from /var/tmp/rpm-tmp.KJeasA (%check)

Build log

FIPS verification also seems to fail with a debug build:

Traceback (most recent call last):
  File "/builddir/build/BUILD/SymCrypt-103.1.0/scripts/process_fips_module.py", line 402, in <module>
    main()
  File "/builddir/build/BUILD/SymCrypt-103.1.0/scripts/process_fips_module.py", line 365, in main
    assert(fips_boundary_variable.value == PLACEHOLDER_VALUE)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
make[2]: *** [modules_linux/generic/CMakeFiles/symcrypt_generic_linux.dir/build.make:149: module/generic/libsymcrypt.so.103.1.0] Error 1
make[2]: *** Deleting file 'module/generic/libsymcrypt.so.103.1.0'
make[1]: *** [CMakeFiles/Makefile2:328: modules_linux/generic/CMakeFiles/symcrypt_generic_linux.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.2aryKX (%build)

Build log

Can investigate further if of interest to see how SymCrypt can be adapted to other platforms.

@NielsFerguson
Copy link
Contributor

NielsFerguson commented Jan 23, 2023 via email

@mlindgren mlindgren added the investigate Needs further investigation label Jan 23, 2023
@mlindgren
Copy link
Member

Fedora isn't currently a priority for us, but if you happen to find out what the issue is, we'd be happy to make reasonable changes to improve our cross-distro support. The interesting thing is that we do have a package which builds for Mariner using their build environment; Mariner is RedHat/Fedora based, and I believe the Mariner build tools should be similar to what's used there. Possibly just different default compiler flags - we may need to be more explicit in choosing which flags we set or don't set.

@mlindgren mlindgren added the compiler-support Issue or request specific to a particular compiler label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-support Issue or request specific to a particular compiler investigate Needs further investigation
Projects
None yet
Development

No branches or pull requests

3 participants