eProsima / foonathan_memory_vendor

foonathan/memory vendor package for Fast DDS. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
23 stars 47 forks source link

Compilation of ROS2 failed due to foonathan_memory_vendor [13760] #50

Closed Bug-terminator closed 2 years ago

Bug-terminator commented 3 years ago

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:

--- 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;
...

What's the problem?

MiguelCompany commented 3 years ago

Could you check if #49 solves this issue?

MiguelCompany commented 2 years ago

No response from the OP in half a year, so closing this.

Feel free to reopen if still an issue.