Compilation failure when building Ceph on Ubuntu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to build a DEBUG version of Ceph Reef on a virtual Ubuntu-LTS
22.04 running on Lima by following the README on Ceph's github repo. The
build failed and the last CMake error was ""g++-11: error: unrecognized
command-line option '-Wimplicit-const-int-float-conversion'". Does anyone
know what I can do to fix the compilation error? I could try different gcc
versions, but I'd assume Ceph's build scripts would install and verify all
the dependencies. Thanks,

The system configuration is as follows:

> uname -a
Linux lima-ceph-dev 5.15.0-86-generic #96-Ubuntu SMP Wed Sep 20 08:23:49
UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

I followed the instructions on the README in Ceph's github repo:
https://github.com/ceph/ceph, and the command ./do_cmake.sh failed at step
[137/2150] that builds frontend dashboard with the error message "ninja:
build stopped: subcommand failed." The last error logged in the file
CMakeError.log has to do with "g++-11: error: unrecognized command-line
option '-Wimplicit-const-int-float-conversion'".

Below the last error message on the CMakeError.log:

Performing C++ SOURCE FILE Test
COMPILER_SUPPORTS_WARN_IMPLICIT_CONST_INT_FLOAT_CONVERSION failed with the
following output:
Change Dir: /home/dyuan.linux/ceph/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/ninja cmTC_bab6d && [1/2] Building CXX object
CMakeFiles/cmTC_bab6d.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_bab6d.dir/src.cxx.o
/usr/bin/g++-11
-DCOMPILER_SUPPORTS_WARN_IMPLICIT_CONST_INT_FLOAT_CONVERSION  -fPIE
-Wimplicit-const-int-float-conversion -std=c++20 -o
CMakeFiles/cmTC_bab6d.dir/src.cxx.o -c
/home/dyuan.linux/ceph/build/CMakeFiles/CMakeTmp/src.cxx
g++-11: error: unrecognized command-line option
'-Wimplicit-const-int-float-conversion'
ninja: build stopped: subcommand failed.
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux