Skip to content

Build fails with gcc15.1/boost 1.89 #61

Description

@rossburton

Trying to upgrade to gator daemon 9.6 but it's failing to build (GCC 15.1, Boost 1.98):

| FAILED: [code=1] CMakeFiles/gatord.dir/Child.cpp.o
| ccache /work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ --sysroot=/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/recipe-sysroot -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_DEPRECATED -DBOOST_FILESYSTEM_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DETCDIR=\"/etc\" -I/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/sources/gator-daemon-9.6.0/daemon -I/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/build -I/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/sources/gator-daemon-9.6.0/daemon/hwcpipe2/device/include -I/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/sources/gator-daemon-9.6.0/daemon/../ext -isystem /work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/sources/gator-daemon-9.6.0/daemon/extheaders -isystem /work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/sources/gator-daemon-9.6.0/daemon/libsensors -mcpu=cortex-a57+crc -mbranch-protection=standard -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/recipe-sysroot  -O2 -g  -ffile-prefix-map=/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/sources/gator-daemon-9.6.0/daemon=/usr/src/debug/gator-daemon/9.6.0  -ffile-prefix-map=/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/build=/usr/src/debug/gator-daemon/9.6.0  -ffile-prefix-map=/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/recipe-sysroot=  -ffile-prefix-map=/work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/recipe-sysroot-native=  -pipe -fvisibility-inlines-hidden -fvisibility=hidden -fexceptions -ffile-prefix-map=/work/ross/build/tmp=. -Wall -Wextra -Wno-shadow -Wno-psabi -g -g -ggdb3 -gdwarf-3 -D_DEBUG -std=gnu++17 -MD -MT CMakeFiles/gatord.dir/Child.cpp.o -MF CMakeFiles/gatord.dir/Child.cpp.o.d -o CMakeFiles/gatord.dir/Child.cpp.o -c /work/ross/build/tmp/work/cortexa57-poky-linux/gator-daemon/9.6.0/sources/gator-daemon-9.6.0/daemon/Child.cpp
| In file included from ../sources/gator-daemon-9.6.0/daemon/logging/agent_log.h:5,
|                  from ../sources/gator-daemon-9.6.0/daemon/agents/spawn_agent.h:11,
|                  from ../sources/gator-daemon-9.6.0/daemon/agents/agent_workers_process_holder.h:6,
|                  from ../sources/gator-daemon-9.6.0/daemon/Child.h:8,
|                  from ../sources/gator-daemon-9.6.0/daemon/Child.cpp:3:
| ../sources/gator-daemon-9.6.0/daemon/async/async_line_reader.hpp: In lambda function:
| ../sources/gator-daemon-9.6.0/daemon/async/async_line_reader.hpp:51:74: error: 'const_buffers_1' is not a member of 'boost::asio'; did you mean 'const_buffer'? [-Wtemplate-body]
|    51 |                                                             boost::asio::const_buffers_1>);
|       |                                                                          ^~~~~~~~~~~~~~~
|       |                                                                          const_buffer
| ../sources/gator-daemon-9.6.0/daemon/async/async_line_reader.hpp:51:89: error: template argument 2 is invalid [-Wtemplate-body]
|    51 |                                                             boost::asio::const_buffers_1>);
|       |                                                                                         ^
| ../sources/gator-daemon-9.6.0/daemon/Child.cpp: In member function 'void Child::run()':
| ../sources/gator-daemon-9.6.0/daemon/Child.cpp:200:5: error: 'mxmlSetWrapMargin' was not declared in this scope; did you mean 'mxmlOptionsSetWrapMargin'?
|   200 |     mxmlSetWrapMargin(0);
|       |     ^~~~~~~~~~~~~~~~~
|       |     mxmlOptionsSetWrapMargin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions