Skip to content

Build error with gcc-11 on release_1.0 branch #813

@richmattes

Description

@richmattes

Required information

Operating system:
Fedora 34

Compiler version:
GCC-11.1.1

Observed result or behaviour:
Building the release_1.0 branch fails with the following error:

In file included from /home/rich/workspace/ros2_galactic/src/eclipse-iceoryx/iceoryx/iceoryx_utils/include/iceoryx_utils/internal/relocatable_pointer/base_relative_pointer.hpp:21,
                 from /home/rich/workspace/ros2_galactic/src/eclipse-iceoryx/iceoryx/iceoryx_utils/source/relocatable_pointer/base_relative_pointer.cpp:18:
/home/rich/workspace/ros2_galactic/src/eclipse-iceoryx/iceoryx/iceoryx_utils/include/iceoryx_utils/internal/relocatable_pointer/pointer_repository.hpp:52:45: error: ‘numeric_limits’ is not a member of ‘std’
   52 |     static constexpr id_t INVALID_ID = std::numeric_limits<id_t>::max();

<limits> needs to be included in iceoryx_utils/include/iceoryx_utils/internal/relocatable_pointer/pointer_repository.hpp

Expected result or behaviour:
Successful build

Conditions where it occurred / Performed steps:

docker run --rm=true -it fedora:34 /bin/bash
# Inside docker image
dnf install -y gcc-c++ cmake git libacl-devel
git clone https://github.com/eclipse-iceoryx/iceoryx.git -b release_1.0
cmake -B iceoryx_utils_build -S iceoryx/iceoryx_utils/
cmake --build iceoryx_utils_build

Additional Comments
The issue does not appear in the master branch. <limits> is included in iceoryx_hoofs/cxx/helplets.hpp, which is included by iceoryx_hoofs/cxx/vector.hpp, which is included by iceoryx_hoofs/internal/relocatable_pointer/pointer_repository.hpp, which is included by iceoryx_hoofs/internal/relocatable_pointer/base_relative_pointer.hpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions