FAILED: bin/radosgw-es : && /usr/bin/x86_64-pc-linux-gnu-g++ -O3 -pipe -march=alderlake -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -ggdb3 -Wl,-O1 -Wl,--as-needed -rdynamic -pie src/rgw/CMakeFiles/radosgw-es.dir/rgw_es_main.cc.o -o bin/radosgw-es -Wl,-rpath,/var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7_build/lib: lib/librgw_a.a /usr/lib64/liblua5.4.so -lm lib/libcls_rgw_client.a lib/libcls_otp_client.a lib/libcls_lock_client.a lib/libcls_refcount_client.a lib/libcls_log_client.a lib/libcls_timeindex_client.a lib/libcls_version_client.a lib/libcls_user_client.a lib/libglobal.a -lresolv /usr/lib64/libcurl.so /usr/lib64/libexpat.so /usr/lib64/libblkid.so lib/librgw_common.a lib/libdbstore.a lib/libdbstore_lib.a lib/libsqlite_db.a lib/librgw_common.a lib/libdbstore.a lib/libdbstore_lib.a lib/libsqlite_db.a lib/librados.so.2.0.0 lib/libcls_rgw_client.a lib/libcls_otp_client.a lib/libcls_lock_client.a lib/libcls_refcount_client.a lib/libcls_log_client.a lib/libcls_timeindex_client.a lib/libcls_version_client.a lib/libcls_user_client.a lib/libglobal.a /usr/lib64/librt.a src/arrow/lib/libparquet.a src/arrow/lib/libarrow.a -lthrift /usr/lib64/liblz4.so /usr/lib64/libsnappy.so /usr/lib64/libz.so /usr/lib64/libzstd.so /usr/lib64/liboath.so lib/libceph-common.so.2 -lresolv /usr/lib64/libcrypto.so lib/libjson_spirit.a lib/libcommon_utf8.a lib/liberasure_code.a lib/libcrc32.a lib/libarch.a -lboost_thread -lboost_random -lboost_program_options -lboost_date_time -lboost_iostreams /usr/lib64/libblkid.so -ludev lib/libcls_2pc_queue_client.a lib/libcls_cmpomap_client.a lib/libcls_rgw_gc_client.a -lrt /usr/lib64/liblua5.4.so -lm /usr/lib64/libcurl.so /usr/lib64/libexpat.so lib/libfmt.a /usr/lib64/libicuuc.so -ldl lib/libdmclock.a -lpthread -lsqlite3 -lboost_system -lboost_context && : /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:187:7: error: type ‘struct OSFile’ violates the C++ One Definition Rule [-Werror=odr] 187 | class OSFile : public ObjectInterface { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:65: note: a type with different bases is defined in another translation unit 65 | class OSFile { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/rgw/rgw_sal.cc:37: error: ‘newDBStore’ violates the C++ One Definition Rule [-Werror=odr] 37 | extern rgw::sal::Store* newDBStore(CephContext *cct); | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/rgw/rgw_sal_dbstore.cc:1932: note: ‘newDBStore’ was previously declared here 1932 | void *newDBStore(CephContext *cct) | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:146: error: type of ‘Read’ does not match original declaration [-Werror=lto-type-mismatch] 146 | Result<int64_t> Read(int64_t nbytes, void* out) { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:268:19: note: ‘Read’ was previously declared here 268 | Result<int64_t> Read(int64_t nbytes, void* out) override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:152: error: type of ‘ReadAt’ does not match original declaration [-Werror=lto-type-mismatch] 152 | Result<int64_t> ReadAt(int64_t position, int64_t nbytes, void* out) { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:274:19: note: ‘ReadAt’ was previously declared here 274 | Result<int64_t> ReadAt(int64_t position, int64_t nbytes, void* out) override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:174: error: type of ‘Tell’ does not match original declaration [-Werror=lto-type-mismatch] 174 | Result<int64_t> Tell() const { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:296:19: note: ‘Tell’ was previously declared here 296 | Result<int64_t> Tell() const override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:212: error: type of ‘CheckPositioned’ does not match original declaration [-Werror=lto-type-mismatch] 212 | Status CheckPositioned() { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:334:10: note: ‘CheckPositioned’ was previously declared here 334 | Status CheckPositioned() override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:179: error: type of ‘Write’ does not match original declaration [-Werror=lto-type-mismatch] 179 | Status Write(const void* data, int64_t length) { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:301:10: note: ‘Write’ was previously declared here 301 | Status Write(const void* data, int64_t length) override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:162: error: type of ‘Seek’ does not match original declaration [-Werror=lto-type-mismatch] 162 | Status Seek(int64_t pos) { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:284:10: note: ‘Seek’ was previously declared here 284 | Status Seek(int64_t pos) override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:127: error: type of ‘CheckClosed’ does not match original declaration [-Werror=lto-type-mismatch] 127 | Status CheckClosed() const { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:249:10: note: ‘CheckClosed’ was previously declared here 249 | Status CheckClosed() const override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:206: error: type of ‘SetFileName’ does not match original declaration [-Werror=lto-type-mismatch] 206 | Status SetFileName(int fd) { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:328:10: note: ‘SetFileName’ was previously declared here 328 | Status SetFileName(int fd) override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:202: error: type of ‘SetFileName’ does not match original declaration [-Werror=lto-type-mismatch] 202 | Status SetFileName(const std::string& file_name) { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:324:10: note: ‘SetFileName’ was previously declared here 324 | Status SetFileName(const std::string& file_name) override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:92: error: type of ‘OpenWritable’ does not match original declaration [-Werror=lto-type-mismatch] 92 | Status OpenWritable(int fd) { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:214:10: note: ‘OpenWritable’ was previously declared here 214 | Status OpenWritable(int fd) override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:73: error: type of ‘OpenWritable’ does not match original declaration [-Werror=lto-type-mismatch] 73 | Status OpenWritable(const std::string& path, bool truncate, bool append, | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:195:10: note: ‘OpenWritable’ was previously declared here 195 | Status OpenWritable(const std::string& path, bool truncate, bool append, | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:107: error: type of ‘OpenReadable’ does not match original declaration [-Werror=lto-type-mismatch] 107 | Status OpenReadable(const std::string& path) { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:229:10: note: ‘OpenReadable’ was previously declared here 229 | Status OpenReadable(const std::string& path) override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:118: error: type of ‘OpenReadable’ does not match original declaration [-Werror=lto-type-mismatch] 118 | Status OpenReadable(int fd) { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:240:10: note: ‘OpenReadable’ was previously declared here 240 | Status OpenReadable(int fd) override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/io/file.cc:134: error: type of ‘Close’ does not match original declaration [-Werror=lto-type-mismatch] 134 | Status Close() { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/s3select/include/s3select_parquet_intrf.h:256:10: note: ‘Close’ was previously declared here 256 | Status Close() override { | ^ /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/type.h:204: error: virtual table of type ‘struct FixedWidthType’ violates one definition rule [-Werror=odr] 204 | class ARROW_EXPORT FixedWidthType : public DataType { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/type.h:204: note: the conflicting type defined in another translation unit has virtual table with more entries 204 | class ARROW_EXPORT FixedWidthType : public DataType { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/type.h:241: error: virtual table of type ‘struct NestedType’ violates one definition rule [-Werror=odr] 241 | class ARROW_EXPORT NestedType : public DataType, public ParametricType { | /var/tmp/portage/sys-cluster/ceph-17.2.7/work/ceph-17.2.7/src/arrow/cpp/src/arrow/type.h:241: note: the conflicting type defined in another translation unit has virtual table with more entries 241 | class ARROW_EXPORT NestedType : public DataType, public ParametricType { | lto1: some warnings being treated as errors lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status compilation terminated. /usr/libexec/gcc/x86_64-pc-linux-gnu/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Reproducible: Always
Created attachment 887677 [details] build.log.xz /// or https://0x0.st/HF9-.log , or use xzless to see it in. or `xz -d -c > your_favourite_editor`
Created attachment 887678 [details] environment /// amd64 gcc stable openrc profile: desktop/plasma multilib -O3 -flto=auto + warnings for lto + verbose -march=native + -ggdb3
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cc780302cb92791bb3a23a30125dae21e742d78 commit 2cc780302cb92791bb3a23a30125dae21e742d78 Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2024-03-16 17:31:56 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2024-03-16 17:32:16 +0000 sys-cluster/ceph: Add filter-lto (bug #927066) Closes: https://bugs.gentoo.org/927066 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> sys-cluster/ceph/ceph-16.2.15.ebuild | 3 +++ sys-cluster/ceph/ceph-17.2.6-r8.ebuild | 3 +++ sys-cluster/ceph/ceph-17.2.7.ebuild | 3 +++ sys-cluster/ceph/ceph-18.2.1.ebuild | 3 +++ 4 files changed, 12 insertions(+)