Closed drsaroj closed 1 year ago
Let me guess: You are on an Apple machine using the Clang that comes with it.
Either way you need to make JiTCDDE not use that Clang with that flag, for which there are several options:
Use no Clang at all, but e.g., GCC. See this for more information.
Install a different version of Clang that supports the flag. If my initial guess was correct, see this and this SO question for more information.
Make JiTCDDE not use the flag as follows:
from jitcxde_common import DEFAULT_COMPILE_ARGS
DEFAULT_COMPILE_ARGS.remove("-march=native")
DDE = jitcdde(…)
DDE.compile_C( extra_compile_args=DEFAULT_COMPILE_ARGS, verbose=True )
verbose=True
is only so you can check the result. You might need to remove -mtune=native
as well. If my initial guess was correct, you can also add a system-specific flag for optimisation as per this SO post.
Hello,
I am getting this error on running the jitcdde
clang: error: the clang compiler does not support '-march=native' error: command '/usr/bin/clang' failed with exit code 1
I am using the version jitcxde-common 1.5.4