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

catkin_make failed #62

Open
YouShaoze opened this issue Dec 1, 2022 · 2 comments
Open

catkin_make failed #62

YouShaoze opened this issue Dec 1, 2022 · 2 comments

Comments

@YouShaoze
Copy link

[ 90%] Building CXX object Teach-Repeat-Replan/simulation/mission_template/CMakeFiles/mission_template.dir/src/mission_template.cpp.o
g++-7: error: unrecognized command line option ‘-std=c++11 ’; did you mean ‘-std=c++11’?
Teach-Repeat-Replan/simulation/mission_template/CMakeFiles/mission_template.dir/build.make:62: recipe for target 'Teach-Repeat-Replan/simulation/mission_template/CMakeFiles/mission_template.dir/src/mission_template.cpp.o' failed
make[2]: *** [Teach-Repeat-Replan/simulation/mission_template/CMakeFiles/mission_template.dir/src/mission_template.cpp.o] Error 1
CMakeFiles/Makefile2:6405: recipe for target 'Teach-Repeat-Replan/simulation/mission_template/CMakeFiles/mission_template.dir/all' failed
make[1]: *** [Teach-Repeat-Replan/simulation/mission_template/CMakeFiles/mission_template.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 94%] Built target decomp_rviz_plugins
[ 97%] Built target tr_node
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j12 -l12" failed

@YouShaoze
Copy link
Author

ww@ww:/TRR$ /usr/bin/gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1
18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ww@ww:~/TRR$ sudo update-alternatives --config gcc
There are 3 choices for the alternative gcc (providing /usr/bin/gcc).

Selection Path Priority Status

0 /usr/bin/gcc-5 60 auto mode
1 /usr/bin/gcc-5 60 manual mode

  • 2 /usr/bin/gcc-7 50 manual mode
    3 /usr/bin/gcc-8 10 manual mode

ww@ww:/TRR$ gfortran --version
GNU Fortran (Ubuntu 7.5.0-3ubuntu1
18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ww@ww:/TRR$ g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1
18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@bigsuperZZZX
Copy link
Collaborator

Something goes wrong with the g++ compiler.
You could delete the white space after the ‘-std=c++11’ flag or just delete the whole ‘-std=c++11’ flag.

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

2 participants