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

Compilation Error NVIDIA Jetson TX2 #9

Open
Novotendo opened this issue Jul 21, 2022 · 3 comments
Open

Compilation Error NVIDIA Jetson TX2 #9

Novotendo opened this issue Jul 21, 2022 · 3 comments

Comments

@Novotendo
Copy link

Hello!

I was able to build the package in my personal computer, but now I want to run it in a TX2 for an autonomous robot. However, when I try to do the build, I get the following error in several packages, for example in "ze_common":

Errors << ze_common:make /home/nvidia/catkin_ws/logs/ze_common/build.make.010.log
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’?
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 ‘-mssse3’
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’?
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 ‘-mssse3’
make[2]: *** [CMakeFiles/ze_common.dir/src/matrix.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/ze_common.dir/src/random.cpp.o] Error 1
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’?
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 ‘-mssse3’
make[2]: *** [CMakeFiles/ze_common.dir/src/signal_handler.cpp.o] Error 1
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’?
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 ‘-mssse3’
make[2]: *** [CMakeFiles/ze_common.dir/src/test_utils.cpp.o] Error 1
c++: error: unrecognized command line option ‘-mmmx’
c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’?
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 ‘-mssse3’
make[2]: *** [CMakeFiles/ze_common.dir/src/csv_trajectory.cpp.o] Error 1
make[1]: *** [CMakeFiles/ze_common.dir/all] Error 2
make: *** [all] Error 2
cd /home/nvidia/catkin_ws/build/ze_common; catkin build --get-env ze_common | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -

Is there a way to make this working in my TX2?

@hebaoy
Copy link

hebaoy commented Dec 3, 2022

I have the same problem, i know TX2 is arm, maybe it have not SSE(Streaming SIMD Extensions). But I don't know how to work.

@hichamhendy
Copy link

Any news on that? I am using NIVIDIA Xavier AGY and get almost the same error
c++: error: unrecognized command line option ‘-mmmx’ c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’? 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 ‘-mssse3’ make[2]: *** [CMakeFiles/fast.dir/src/fast_9.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... c++: error: unrecognized command line option ‘-mmmx’ c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’? 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 ‘-mssse3’ make[2]: *** [CMakeFiles/fast.dir/src/fast_10.cpp.o] Error 1 make[1]: *** [CMakeFiles/fast.dir/all] Error 2 make: *** [all] Error 2

@ghani35
Copy link

ghani35 commented May 18, 2023

I got the same problem. This is how to solve it:
Go to the CmakeList "in this case go to the CmakeList of the package where fast_9.cpp is defined",
then, past this in the CmakeList: export ARM_ARCHITECTURE=true
then, also past it on the terminal
then, build your workspace if you get an error just remove export ARM_ARCHITECTURE=true from the CMakeList and build again

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