Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jsYangCode opened this issue Mar 13, 2020 · 3 comments

Comments

@jsYangCode
Copy link

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!!

@koide3
Copy link
Owner

koide3 commented Mar 13, 2020

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

@rxdu
Copy link

rxdu commented Jun 16, 2020

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.

@lr-1998-dy
Copy link

you can use catkin build -j2 -l2 to solve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants