Actions
Bug #55256
openBuild failure with gcc-12.0.1 (global_legacy_options.h not found)
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
Hi there,
trying to build ceph with gcc-12.0.1 stops at with a missing include file.
In file included from /root/repos/ceph/BUILD/ceph-17.1.0/src/common/config_values.h:59,
from /root/repos/ceph/BUILD/ceph-17.1.0/src/common/config.h:27,
from /root/repos/ceph/BUILD/ceph-17.1.0/src/common/config_proxy.h:6,
from /root/repos/ceph/BUILD/ceph-17.1.0/src/common/ceph_context.h:41,
from /root/repos/ceph/BUILD/ceph-17.1.0/src/common/dout.h:29,
from /root/repos/ceph/BUILD/ceph-17.1.0/src/common/debug.h:18,
from /root/repos/ceph/BUILD/ceph-17.1.0/src/mgr/MgrCap.cc:27:
/root/repos/ceph/BUILD/ceph-17.1.0/src/common/options/legacy_config_opts.h:1:10: fatal error: global_legacy_options.h: No such file or directory
1 | #include "global_legacy_options.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [src/mgr/CMakeFiles/mgr_cap_obj.dir/build.make:76: src/mgr/CMakeFiles/mgr_cap_obj.dir/MgrCap.cc.o] Error 1
gmake[2]: Leaving directory '/root/repos/ceph/BUILD/ceph-17.1.0/build'
gmake[1]: *** [CMakeFiles/Makefile2:5000: src/mgr/CMakeFiles/mgr_cap_obj.dir/all] Error 2
Updated by Duncan Bellamy almost 2 years ago
we have just had this problem on alpine with gcc 11 and ceph 17.2.0, the fix was to use
cmake --build build --target cmake_object_order_depends_target_common-options-objs
cmake --build build
it might work without the second cmake
Actions