Project

General

Profile

Bug #19386

Updated by Dan Mick about 7 years ago

The cmake detection for compiler intrinsics for CRC and CRYPTO fails for gcc 4.8.5 4.5.8 on aarch64; gcc accepts the -march=armv8+crc+crypto, but there are no __builtin_aarch64_crc* routines and no arm_acle.h; thus, the compile fails, because  

 The ACLE specification says that one can test for presence of arm_acle.h with __ARM_ACLE, and indeed it is not set on this compiler, but it's also not set on gcc 5.4.0 on Ubuntu Xenial, so apparently gcc is not reliable wrt ACLE.    See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70974 

 Thus, enhance the test for CRC intrinsics to first test for the -march support but then also gest for the actual symbol definition.

Back