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

Build Error on Ubuntu 18.04: ofast -> Ofast #34

Open
alessandromorra opened this issue Jun 14, 2021 · 2 comments
Open

Build Error on Ubuntu 18.04: ofast -> Ofast #34

alessandromorra opened this issue Jun 14, 2021 · 2 comments

Comments

@alessandromorra
Copy link

We had to chnage the compile options in order to build it on our machines: master...ascento-robotics:master

Otherwise we always got this error:

Errors     << lidar_align:make /home/catkin_ws/arc_ws/logs/lidar_align/build.make.014.log                                                                                                                           
cc1plus: error: too many filenames given.  Type cc1plus --help for usage
cc1plus: fatal error: CMakeFiles/lidar_align.dir/src/sensors.cpp.d: No such file or directory
compilation terminated.
cc1plus: error: too many filenames given.  Type cc1plus --help for usage
cc1plus: fatal error: CMakeFiles/lidar_align.dir/src/aligner.cpp.d: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/lidar_align.dir/src/sensors.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/lidar_align.dir/src/aligner.cpp.o] Error 1
cc1plus: error: too many filenames given.  Type cc1plus --help for usage
cc1plus: fatal error: CMakeFiles/lidar_align.dir/src/loader.cpp.d: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/lidar_align.dir/src/loader.cpp.o] Error 1
make[1]: *** [CMakeFiles/lidar_align.dir/all] Error 2
make: *** [all] Error 2
cd /home/wala/arc_ws/build/lidar_align; catkin build --get-env lidar_align | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
...............................................................................................................................................................................................................
Failed     << lidar_align:make           [ Exited with code 2 ]                                                                                                                                                
Failed    <<< lidar_align                [ 1.4 seconds ] 

Our setup:

17:12 $ 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.

@alittlewall0
Copy link

try to delete "-ofast" in CMakeLists.txt.It worked for me.

@grosserding
Copy link

try to delete "-ofast" in CMakeLists.txt.It worked for me.

thanks so much! Worked for me too!

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

3 participants