← Back to issue list

CXX_Flags not generated properly for catkin plugin

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1728481
Type
issue
State
closed
Author
~petermilani80
Labels
catkin-plugin snapcraft
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Incorrect CXX_FLAGS generation with a stray semicolon caused g++ compilation failures in the snapcraft catkin plugin. The issue was closed without a fix or resolution, appearing abandoned.

Suggested action:

No scores available.

Issue body

Got an g++ file not found error, whilst using the catkin_plugin for snapcraft, Here is the error: -- Build files have been written to: /home/mil607/snap/parts/workspace/build/build_isolated/nabo ==> make -j8 -l8 in '/home/mil607/snap/parts/workspace/build/build_isolated/nabo' Scanning dependencies of target nabo [ 5%] Building CXX object CMakeFiles/nabo.dir/libnabo/nabo/nabo.cpp.o [ 10%] Building CXX object CMakeFiles/nabo.dir/libnabo/nabo/brute_force_cpu.cpp.o [ 15%] Building CXX object CMakeFiles/nabo.dir/libnabo/nabo/kdtree_cpu.cpp.o g++: fatal error: no input files compilation terminated. g++: fatal error: no input files compilation terminated. /bin/sh: 1: -fopenmp: not found CMakeFiles/nabo.dir/build.make:86: recipe for target 'CMakeFiles/nabo.dir/libnabo/nabo/brute_force_cpu.cpp.o' failed make[2]: *** [CMakeFiles/nabo.dir/libnabo/nabo/brute_force_cpu.cpp.o] Error 127 /bin/sh: 1: -fopenmp: not found make[2]: *** Waiting for unfinished jobs.... CMakeFiles/nabo.dir/build.make:62: recipe for target 'CMakeFiles/nabo.dir/libnabo/nabo/nabo.cpp.o' failed make[2]: *** [CMakeFiles/nabo.dir/libnabo/nabo/nabo.cpp.o] Error 127 g++: fatal error: no input files compilation terminated. /bin/sh: 1: -fopenmp: not found CMakeFiles/nabo.dir/build.make:110: recipe for target 'CMakeFiles/nabo.dir/libnabo/nabo/kdtree_cpu.cpp.o' failed make[2]: *** [CMakeFiles/nabo.dir/libnabo/nabo/kdtree_cpu.cpp.o] Error 127 [ 21%] Building CXX object CMakeFiles/nabo.dir/libnabo/nabo/kdtree_opencl.cpp.o g++: fatal error: no input files compilation terminated. /bin/sh: 1: -fopenmp: not found CMakeFiles/nabo.dir/build.make:134: recipe for target 'CMakeFiles/nabo.dir/libnabo/nabo/kdtree_opencl.cpp.o' failed make[2]: *** [CMakeFiles/nabo.dir/libnabo/nabo/kdtree_opencl.cpp.o] Error 127 CMakeFiles/Makefile2:259: recipe for target 'CMakeFiles/nabo.dir/all' failed make[1]: *** [CMakeFiles/nabo.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 <== Failed to process package 'nabo': Command '['/home/mil607/snap/parts/workspace/install/opt/ros/kinetic/env.sh', 'make', '-j8', '-l8']' returned non-zero exit status 2 Reproduce this error by running: ==> cd /home/mil607/snap/parts/workspace/build/build_isolated/nabo && /home/mil607/snap/parts/workspace/install/opt/ros/kinetic/env.sh make -j8 -l8 After some diggin found that the flags.make for the nabo package had a semi-colon inserted into the CXX_FLAGS. The original flags.make with the error is here, the error is in line 5 near the end, before the -fopenmp flag: 1 # CMAKE generated file: DO NOT EDIT! 2 # Generated by "Unix Makefiles" Generator, CMake Version 3.5 3 4 # compile CXX with /home/mil607/snap/parts/workspace/compilers/install/usr/bin/g++ 5 CXX_FLAGS = -I/home/mil607/snap/parts/workspace/install/usr/include -I/home/mil607/snap/parts/workspace/install/usr/includ e/x86_64-linux-gnu -I/home/mil607/snap/parts/workspace/compilers/install/usr/include -I/home/mil607/snap/parts/workspace/co mpilers/install/usr/include/x86_64-linux-gnu/c++/5.4.0 -I/home/mil607/snap/parts/workspace/compilers/install/usr/include/c+ +/5.4.0 -I/home/mil607/snap/parts/workspace/compilers/install/usr/include/x86_64-linux-gnu;-fopenmp -O3 -DNDEBUG -fPIC 6 7 CXX_DEFINES = -DEIGEN_DONT_ALIGN -DEIGEN_DONT_ALIGN_STATICALLY -Dnabo_EXPORTS 8 9 CXX_INCLUDES = -I/usr/include/eigen3 -I/home/mil607/snap/parts/workspace/install/usr/include -I/home/mil607/hovermap/src/ct -slam/src/nabo/libnabo/nabo Not sure if the catkin plugin has generated it or is due to some other file that might have had an inadvertant semi-colon included. But its a possible bug. I'm still investigating and will provide any updates.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Incorrect CXX_FLAGS generation with a stray semicolon caused g++ compilation failures in the snapcraft catkin plugin. The issue was closed without a fix or resolution, appearing abandoned.
qwen/qwen3.6-35b-a3b Closed without resolution. The report detailed a semicolon insertion bug in CXX_FLAGS generation for the catkin plugin causing g++ compilation failures. With zero comments and the author noting ongoing investigation, the issue was likely abandoned.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution. A stray semicolon in generated CXX_FLAGS caused catkin build failures, but no fix or follow-up was provided. The report appears abandoned.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1791743 Catkin plugin doesn't follow project error guidelines snapcraft (launchpad) closed Closed without resolution. The catkin plugin still fails to fully implement snapcraft's base exception handling. No fix or pull request was submitted, indicating the report was likely abandoned or superseded.
71%