ndt_omp icon indicating copy to clipboard operation
ndt_omp copied to clipboard

c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’?

Open jsYangCode opened this issue 4 years ago • 3 comments

hello,friends. today, i compile this on Xavier which is NVIDIA's product, it is the ARM architecture different from the intel‘s x86_64. when i build it on Xavier, some errors occur!! like these: c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’? c++: error: unrecognized command line option ‘-msse2’ c++: error: unrecognized command line option ‘-msse3’ c++: error: unrecognized command line option ‘-msse4’ c++: error: unrecognized command line option ‘-msse4.1’ c++: error: unrecognized command line option ‘-msse4.2’ c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’? c++: error: unrecognized command line option ‘-msse2’ c++: error: unrecognized command line option ‘-msse3’ c++: error: unrecognized command line option ‘-msse4’ c++: error: unrecognized command line option ‘-msse4.1’ c++: error: unrecognized command line option ‘-msse4.2’

In the CMakeLists.txt is "add_definitions(-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2) set(CMAKE_CXX_FLAGS "-std=c++11 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2")". which is OK on the intel‘s x86_64 architecture. Can you give me some help ? THANK YOU FIRST!!

jsYangCode avatar Mar 13 '20 01:03 jsYangCode

Hi @Young532042725 , You can just remove these optimization flags for non x86_64 CPUs. Then, it should work on a Jetson.

koide3 avatar Mar 13 '20 08:03 koide3

Hi @Young532042725 , You can just remove these optimization flags for non x86_64 CPUs. Then, it should work on a Jetson.

I'm trying to compile this package on Xavier NX (with the latest Ubuntu 18.04 image from Nvidia). In addition to the compile flag issue mentioned above, I also got compile errors related to "omp_get_max_threads()". I had to replace it with 1 to get the code compiled, but not sure if there is a better way to handle this.

rxdu avatar Jun 16 '20 07:06 rxdu

you can use catkin build -j2 -l2 to solve

lr-1998-dy avatar Oct 27 '22 09:10 lr-1998-dy