Skip to content

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

@alessandromorra

Description

@alessandromorra

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions