Closed xumia closed 2 years ago
@xumia apologies for not replying to this earlier - support for Debian/older versions of GCC hasn't been a priority for us. It looks like the current stable version of Debian is now "bullseye." Is this change still needed?
@mlindgren , we have changed to use bullseye, not necessary to support the earlier version for us, thanks.
Build error:
See detail: https://dev.azure.com/mssonic/build/_build/results?buildId=22857&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=59a85588-b0ba-5043-24c4-d9e29d89c6f6
To reproduce it, only need to build it in debian:buster docker image.
Analysis:
https://github.com/microsoft/SymCrypt/blob/b15ec2c87d54704474ee8d26c95e90762c746ba2/lib/precomp.h#L19
/usr/lib/gcc/x86_64-linux-gnu/8/include/rdseedintrin.h:# error "Never use directly; include instead."
/usr/lib/gcc/x86_64-linux-gnu/9/include/rdseedintrin.h:# error "Never use directly; include instead."
For GCC <=8, need to change to include
See https://github.com/gcc-mirror/gcc/commit/59a95143ddeb4939fe2336e8f86cbc908bfa8e1a
Workaround:
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake-toolchain/LinuxUserMode-AMD64.cmake -DCMAKE_C_FLAGS="-D_rdseed64_step=__builtin_ia32_rdseed_di_step"
Support request:
GCC 8 is used by debian:buster, which is the latest version of debian currently. Could you please help support it?