I am attempting to build ROS2 Rolling from source on macOS 11 Big Sur. So far, most packages were compiling fine.
However, when colcon gets to this package, I get the following error:
--- stderr: foonathan_memory_vendor
In file included from /Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext/src/detail/align.cpp:5:
In file included from /Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext/include/foonathan/memory/detail/align.hpp:14:
In file included from /Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext/include/foonathan/memory/detail/../config.hpp:21:
/Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext-build/foonathan/hosted_implementation.hpp:30:60: error: expected ';' at end of declaration
typename std::remove_reference<T>::type&& move(T&& arg) FOONATHAN_NOEXCEPT
^
;
/Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext-build/foonathan/hosted_implementation.hpp:30:61: error: C++ requires a type specifier for all declarations
typename std::remove_reference<T>::type&& move(T&& arg) FOONATHAN_NOEXCEPT
^
/Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext-build/foonathan/hosted_implementation.hpp:32:9: error: expected expression
return static_cast<typename std::remove_reference<T>::type&&>(arg);
^
/Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext-build/foonathan/hosted_implementation.hpp:33:6: error: expected ';' after top level declarator
}
^
;
In file included from /Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext/src/detail/align.cpp:5:
In file included from /Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext/include/foonathan/memory/detail/align.hpp:15:
/Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext/include/foonathan/memory/detail/assert.hpp:20:56: error: expected function body after function declarator
const char* fnc) FOONATHAN_NOEXCEPT;
^
/Users/bytedance/ros2_rolling/build/foonathan_memory_vendor/foo_mem-ext-prefix/src/foo_mem-ext/include/foonathan/memory/detail/assert.hpp:23:50: error: expected function body after function declarator
const char* fnc) FOONATHAN_NOEXCEPT;
...
Hi,
I am attempting to build ROS2 Rolling from source on macOS 11 Big Sur. So far, most packages were compiling fine.
However, when colcon gets to this package, I get the following error:
What's the problem?