ros-infrastructure / ros_buildfarm

ROS buildfarm based on Docker
Apache License 2.0
81 stars 96 forks source link

Humble build lto flags cause link errors #982

Open Nir-Az opened 1 year ago

Nir-Az commented 1 year ago

Hi,

librealsense2 build on Humble ARM is failing and the root cause is that it builds with compiler flags of -flto -ffat-lto-objects.

Our release builds as expected at foxy & galactic but since we link to a C static library the humble build is failing.

Any reason to introduce this new compiler flags? can we somehow disable them?

Failed build link here Normal build inside the buildfarm docker locally works as expected, and we find ourselves struggeling for a long time trying to make it work with this new build system.

Appreciate some help since it's blocking us from continue developing.