Closed jschleicher closed 5 years ago
Could we use a flag for armhf to enable c++17?
A little more system information to @jschleicher's comment:
$ lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Vendor ID: ARM
Model: 4
Model name: Cortex-A53
Stepping: r0p4
CPU max MHz: 1200.0000
CPU min MHz: 600.0000
BogoMIPS: 38.40
Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
Linux Kernel Version: 4.9.76-rt60-v7+
Setting up prbt_ikfast_manipulator_plugin/CMakeLists.txt
like this also fixes the issue.
add_compile_options(-Wall)
add_compile_options(-Wextra)
add_compile_options(-Wno-unused-parameter)
add_compile_options(-Wno-unused-variable)
add_compile_options(-Werror)
if(CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -faligned-new")
endif()
endif()
@SansoneG thanks for testing. I've opened that as pull-request.
Commit
70812c06340c8eb4c68b10a8275beec46aafb722
Steps to reproduce
I do not understand, where the difference to the last (successful!) build on the official build farm is?!
Compiling with C++17 fixes the issue.
prbt_ikfast_manipulator_plugin/CMakeLists.txt:15