unrecognized command line option '-mavx' '-mavx2' '-msse3' ...

Hi,

When I tried to build darknet on Xavier, I ran into these errors,

CC: error: unrecognized command line option ‘-mavx’
CC: error: unrecognized command line option ‘-mavx2’
CC: error: unrecognized command line option ‘-msse3’
CC: error: unrecognized command line option ‘-msse4.1’
CC: error: unrecognized command line option ‘-msse4.2’
CC: error: unrecognized command line option ‘-msse4a’

The command is in the darnet CMakelist.txt as follow
set(CMAKE_CXX_FLAGS_RELEASE “${CMAKE_CXX_FLAGS_RELEASE} -ffp-contract=fast -mavx -mavx2 -msse3 -msse4.1 -msse4.2 -msse4a”)
set(CMAKE_C_FLAGS_RELEASE “${CMAKE_C_FLAGS_RELEASE} -ffp-contract=fast -mavx -mavx2 -msse3 -msse4.1 -msse4.2 -msse4a”)

I searched online. It looks like it is due to the processor on Xavier is ARM.

Could you help!
Thanks!

Hi Phil.Chen,

These are x86 options. I would suggest you to get helps for this from any darknet communities. Thanks!