Build failure with -std=c99 on arm64 Macs due to assembly syntax
Hello, MacPorts users report being unable to build orc 0.4.35 on macOS with Apple Silicon / arm64 / aarch64 processors.
The error is:
../orc-0.4.35/orc-test/orctest.c:68:22: error: expected ')'
asm("msr FPCR, %0" : : "r" (fpcr_value));
^
../orc-0.4.35/orc-test/orctest.c:68:6: note: to match this '('
asm("msr FPCR, %0" : : "r" (fpcr_value));
^
1 error generated.
The code in question is here:
Perhaps this is GNU-specific assembler syntax. We are compiling with clang, as is customary on macOS. Clang does define __GNUC__
.