Skip to contentSkip to conversation

Error while compiling ceph v17.2.3 as part of uprev from v15.2.15.

PATCH New Sakib Sajal 1 participant 2 messages Sep 6, 2022

lore
Share & tools
lore
#0 lore raw

cover Error while compiling ceph v17.2.3 as part of uprev from v15.2.15.

I am running into a compilation issue [1] while building ceph v17.2.3 as part of uprev from v15.2.15.

There is an upstream issue (https://tracker.ceph.com/issues/55256) and fixes [2] (which are contained in v17.2.3) that addresses the issue. However I still end up with the compilation issue.

I have tried a solution provided on a similar compilation issue
(https://tracker.ceph.com/issues/55256) as shown in [3] but end up with the following error:

make: *** No rule to make target 'cmake_object_order_depends_target_common-options-objs'. Stop.

I also tried turning of legacy option, ie "with_legacy: false", with no success.

Does anyone have any suggestions? Am I missing something?

I have attached the patch for the uprev:
New build time deps on lua, cryptsetup and thrift
There was some patch refreshing as well.

[1] :

|     1 | #include "global_legacy_options.h"                                                                                                                                                                       
|       |          ^~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                       
| compilation terminated.                                                                                                                                                                                          
| make[2]: ***

[src/crypto/openssl/CMakeFiles/ceph_crypto_openssl.dir/build.make:90:
src/crypto/openssl/CMakeFiles/ceph_crypto_openssl.dir/openssl_crypto_plugin.cc.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: *** [src/crypto/openssl/CMakeFiles/ceph_crypto_openssl.dir/build.make:76:
src/crypto/openssl/CMakeFiles/ceph_crypto_openssl.dir/openssl_crypto_accel.cc.o] Error 1

| make[2]: Leaving directory '/yow-lpggp31/ssajal/repos/build/master/cph_uprev/tmp-glibc/work/core2-64-oe-linux/ceph/17.2.3-r0/build'                                                                              
| make[1]: *** [CMakeFiles/Makefile2:6587: src/crypto/openssl/CMakeFiles/ceph_crypto_openssl.dir/all] Error 2                                                                                                      
| In file included from ..../tmp-glibc/work/core2-64-oe-linux/ceph/17.2.3-r0/ceph-17.2.3/src/common/config_values.h:59,                                                
|                  from ..../tmp-glibc/work/core2-64-oe-linux/ceph/17.2.3-r0/ceph-17.2.3/src/common/config.h:27,                                                       
|                  from ..../tmp-glibc/work/core2-64-oe-linux/ceph/17.2.3-r0/ceph-17.2.3/src/common/config_proxy.h:6,                                                  
|                  from ..../tmp-glibc/work/core2-64-oe-linux/ceph/17.2.3-r0/ceph-17.2.3/src/common/ceph_context.h:41,                                                 
|                  from ..../tmp-glibc/work/core2-64-oe-linux/ceph/17.2.3-r0/ceph-17.2.3/src/common/dout.h:29,                                                         
|                  from ..../tmp-glibc/work/core2-64-oe-linux/ceph/17.2.3-r0/ceph-17.2.3/src/include/Context.h:19,                                                     
|                  from ..../tmp-glibc/work/core2-64-oe-linux/ceph/17.2.3-r0/ceph-17.2.3/src/msg/Message.h:24,                                                         
|                  from ..../tmp-glibc/work/core2-64-oe-linux/ceph/17.2.3-r0/ceph-17.2.3/src/msg/DispatchQueue.cc:15:

ceph/17.2.3-r0/ceph-17.2.3/src/common/options/legacy_config_opts.h:1:10:
fatal error: global_legacy_options.h: No such file or directory

[2]:

https://github.com/ceph/ceph/commit/6007448501b3bf3bd8ee4b619a74b9b4146df745
https://github.com/ceph/ceph/commit/d93880880dad2cdbdc9abed1a51edf5264068ff1

[3]

do_compile() {
cmake_do_compile
}

cmake_do_compile() {
        cmake_runcmake_build --target

cmake_object_order_depends_target_common-options-objs all }

Sakib Sajal (1):
ceph: upgrade v15.2.15 -> v17.2.3

 ...mpressor.h-fix-snappy-compiler-error.patch |  30 ----
 ...h-fix-build-errors-for-cross-compile.patch | 134 ++++++++-------
 ...001-cmake-add-support-for-python3.10.patch |  34 ----
 ...001-fix-host-library-paths-were-used.patch |  30 ++--
 .../ceph/ceph/CVE-2021-3979.patch             | 158 ------------------
 .../ceph/{ceph_15.2.15.bb => ceph_17.2.3.bb}  |  14 +-
 6 files changed, 98 insertions(+), 302 deletions(-)
 delete mode 100644 recipes-extended/ceph/ceph/0001-SnappyCompressor.h-fix-snappy-compiler-error.patch
 delete mode 100644 recipes-extended/ceph/ceph/0001-cmake-add-support-for-python3.10.patch
 delete mode 100644 recipes-extended/ceph/ceph/CVE-2021-3979.patch
 rename recipes-extended/ceph/{ceph_15.2.15.bb => ceph_17.2.3.bb} (91%)
Signature · 1 line
2.33.0
#1 lore raw

PATCH 1/1 ceph: upgrade v15.2.15 -> v17.2.3

Upgrade to latest v17 release.

New runtime dependencies on lua, cryptsetup and thrift. Refreshed patch context.

---
 ...mpressor.h-fix-snappy-compiler-error.patch |  30 ----
 ...h-fix-build-errors-for-cross-compile.patch | 134 ++++++++-------
 ...001-cmake-add-support-for-python3.10.patch |  34 ----
 ...001-fix-host-library-paths-were-used.patch |  30 ++--
 .../ceph/ceph/CVE-2021-3979.patch             | 158 ------------------
 .../ceph/{ceph_15.2.15.bb => ceph_17.2.3.bb}  |  14 +-
 6 files changed, 98 insertions(+), 302 deletions(-)
 delete mode 100644 recipes-extended/ceph/ceph/0001-SnappyCompressor.h-fix-snappy-compiler-error.patch
 delete mode 100644 recipes-extended/ceph/ceph/0001-cmake-add-support-for-python3.10.patch
 delete mode 100644 recipes-extended/ceph/ceph/CVE-2021-3979.patch
 rename recipes-extended/ceph/{ceph_15.2.15.bb => ceph_17.2.3.bb} (91%)
recipes-extended/ceph/ceph/0001-SnappyCompressor.h-fix-snappy-compiler-error.patch deleted +0 -30
deleted file mode 100644
index 2ebd32d..0000000
@@ -1,30 +0,0 @@
-From 85bde55627cfbb35d8b4735dec32bf33fa30079f Mon Sep 17 00:00:00 2001
-From: Saul Wold <[email protected]>
-Date: Fri, 28 May 2021 10:16:07 -0700
-Subject: [PATCH] SnappyCompressor.h: fix snappy compiler error
-
-snappy quietly changed public type
-
-Known issue in ceph: https://tracker.ceph.com/issues/50934
-
-Upstream-Status: Pending
-
-Signed-off-by: Saul Wold <[email protected]>
-
----
- src/compressor/snappy/SnappyCompressor.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/compressor/snappy/SnappyCompressor.h b/src/compressor/snappy/SnappyCompressor.h
-index 0cfb819c..2fbe35b7 100644
---- a/src/compressor/snappy/SnappyCompressor.h
-+++ b/src/compressor/snappy/SnappyCompressor.h
-@@ -96,7 +96,7 @@ class SnappyCompressor : public Compressor {
-     if (qat_enabled)
-       return qat_accel.decompress(p, compressed_len, dst);
- #endif
--    snappy::uint32 res_len = 0;
-+    uint32_t res_len = 0;
-     BufferlistSource source_1(p, compressed_len);
-     if (!snappy::GetUncompressedLength(&source_1, &res_len)) {
-       return -1;
recipes-extended/ceph/ceph/0001-ceph-fix-build-errors-for-cross-compile.patch +77 -57

224 lines not on this page · raw message

recipes-extended/ceph/ceph/0001-cmake-add-support-for-python3.10.patch deleted +0 -34
deleted file mode 100644
index 94c4b8a..0000000
@@ -1,34 +0,0 @@
-From 1060f2e4362ebd6db23870d442dcd158d219ee92 Mon Sep 17 00:00:00 2001
-From: Yanfei Xu <[email protected]>
-Date: Tue, 10 Nov 2020 17:17:30 +0800
-Subject: [PATCH] cmake: add support for python 3.9 and 3.10
-
-add support for python3.9.
-
-Signed-off-by: Yanfei Xu <[email protected]>
-
-Add support for python 3.10.
-
-Upstream-Status: Submitted [https://github.com/ceph/ceph/pull/43630]
-
-Signed-off-by: Kai Kang <[email protected]>
----
- cmake/modules/FindPython/Support.cmake | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/cmake/modules/FindPython/Support.cmake b/cmake/modules/FindPython/Support.cmake
-index 6584699b79..c05bbe3306 100644
---- a/cmake/modules/FindPython/Support.cmake
-+++ b/cmake/modules/FindPython/Support.cmake
-@@ -17,7 +17,7 @@ if (NOT DEFINED _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR)
-   message (FATAL_ERROR "FindPython: INTERNAL ERROR")
- endif()
- if (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL 3)
--  set(_${_PYTHON_PREFIX}_VERSIONS 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
-+  set(_${_PYTHON_PREFIX}_VERSIONS 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
- elseif (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL 2)
-   set(_${_PYTHON_PREFIX}_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
- else()
--- 
-2.18.2
-
recipes-extended/ceph/ceph/0001-fix-host-library-paths-were-used.patch +15 -15
index 310bfa4..47498a2 100644
@@ -1,4 +1,4 @@
-From bbf1cba8feb0e43492a1f6a6b31d024117cad262 Mon Sep 17 00:00:00 2001
+From 35cf12fea8274e85f29723e56f424a17af569907 Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 13 Apr 2020 23:35:41 -0700
 Subject: [PATCH] fix host library paths were used
@@ -16,11 +16,11 @@ Signed-off-by: Hongxu Jia <[email protected]>
  4 files changed, 20 insertions(+), 4 deletions(-)
 
 diff --git a/src/pybind/cephfs/setup.py b/src/pybind/cephfs/setup.py
-index c9a25ccf..972f936c 100755
+index 923a7e324b6..a894fb20766 100755
 --- a/src/pybind/cephfs/setup.py
 +++ b/src/pybind/cephfs/setup.py
 @@ -63,9 +63,13 @@ def get_python_flags(libs):
-                    distutils.sysconfig.get_config_vars('LIBS', 'SYSLIBS')), [])
+                filter(lambda lib: lib.startswith('-l'), py_libs)]
      compiler = new_compiler()
      distutils.sysconfig.customize_compiler(compiler)
 +    libpl = distutils.sysconfig.get_config_var('LIBPL')
@@ -31,15 +31,15 @@ index c9a25ccf..972f936c 100755
          include_dirs=[distutils.sysconfig.get_python_inc()],
 -        library_dirs=distutils.sysconfig.get_config_vars('LIBDIR', 'LIBPL'),
 +        library_dirs=[distutils.sysconfig.get_config_var('LIBDIR'), libpl],
-         libraries=libs + [lib.replace('-l', '') for lib in py_libs],
+         libraries=libs + py_libs,
          extra_compile_args=filter_unsupported_flags(
              compiler.compiler[0],
 diff --git a/src/pybind/rados/setup.py b/src/pybind/rados/setup.py
-index 4e99d267..de24f766 100755
+index 5eb0dce6f94..877200b1629 100755
 --- a/src/pybind/rados/setup.py
 +++ b/src/pybind/rados/setup.py
-@@ -66,9 +66,13 @@ def get_python_flags(libs):
-                    distutils.sysconfig.get_config_vars('LIBS', 'SYSLIBS')), [])
+@@ -62,9 +62,13 @@ def get_python_flags(libs):
+                filter(lambda lib: lib.startswith('-l'), py_libs)]
      compiler = new_compiler()
      distutils.sysconfig.customize_compiler(compiler)
 +    libpl = distutils.sysconfig.get_config_var('LIBPL')
@@ -50,15 +50,15 @@ index 4e99d267..de24f766 100755
          include_dirs=[distutils.sysconfig.get_python_inc()],
 -        library_dirs=distutils.sysconfig.get_config_vars('LIBDIR', 'LIBPL'),
 +        library_dirs=[distutils.sysconfig.get_config_var('LIBDIR'), libpl],
-         libraries=libs + [lib.replace('-l', '') for lib in py_libs],
+         libraries=libs + py_libs,
          extra_compile_args=filter_unsupported_flags(
              compiler.compiler[0],
 diff --git a/src/pybind/rbd/setup.py b/src/pybind/rbd/setup.py
-index f5bbbdab..a1f70e1d 100755
+index 6437a62815c..d17d85e2b51 100755
 --- a/src/pybind/rbd/setup.py
 +++ b/src/pybind/rbd/setup.py
 @@ -63,9 +63,13 @@ def get_python_flags(libs):
-                    distutils.sysconfig.get_config_vars('LIBS', 'SYSLIBS')), [])
+                filter(lambda lib: lib.startswith('-l'), py_libs)]
      compiler = new_compiler()
      distutils.sysconfig.customize_compiler(compiler)
 +    libpl = distutils.sysconfig.get_config_var('LIBPL')
@@ -69,15 +69,15 @@ index f5bbbdab..a1f70e1d 100755
          include_dirs=[distutils.sysconfig.get_python_inc()],
 -        library_dirs=distutils.sysconfig.get_config_vars('LIBDIR', 'LIBPL'),
 +        library_dirs=[distutils.sysconfig.get_config_var('LIBDIR'), libpl],
-         libraries=libs + [lib.replace('-l', '') for lib in py_libs],
+         libraries=libs + py_libs,
          extra_compile_args=filter_unsupported_flags(
              compiler.compiler[0],
 diff --git a/src/pybind/rgw/setup.py b/src/pybind/rgw/setup.py
-index b9f2428c..f5119f73 100755
+index c8094e000fb..22eb6f2b1bc 100755
 --- a/src/pybind/rgw/setup.py
 +++ b/src/pybind/rgw/setup.py
 @@ -64,9 +64,13 @@ def get_python_flags(libs):
-                    distutils.sysconfig.get_config_vars('LIBS', 'SYSLIBS')), [])
+                filter(lambda lib: lib.startswith('-l'), py_libs)]
      compiler = new_compiler()
      distutils.sysconfig.customize_compiler(compiler)
 +    libpl = distutils.sysconfig.get_config_var('LIBPL')
@@ -88,9 +88,9 @@ index b9f2428c..f5119f73 100755
          include_dirs=[distutils.sysconfig.get_python_inc()],
 -        library_dirs=distutils.sysconfig.get_config_vars('LIBDIR', 'LIBPL'),
 +        library_dirs=[distutils.sysconfig.get_config_var('LIBDIR'), libpl],
-         libraries=libs + [lib.replace('-l', '') for lib in py_libs],
+         libraries=libs + py_libs,
          extra_compile_args=filter_unsupported_flags(
              compiler.compiler[0],
 -- 
-2.21.0
+2.25.1
 
recipes-extended/ceph/ceph/CVE-2021-3979.patch deleted +0 -158

158 lines not on this page · raw message

recipes-extended/ceph/ceph_17.2.3.bb renamed from recipes-extended/ceph/ceph_15.2.15.bb +6 -8
similarity index 91%
rename from recipes-extended/ceph/ceph_15.2.15.bb
rename to recipes-extended/ceph/ceph_17.2.3.bb
index f2ece8c..6b27a00 100644
@@ -2,7 +2,7 @@ SUMMARY = "User space components of the Ceph file system"
 LICENSE = "LGPL-2.1-only & GPL-2.0-only & Apache-2.0 & MIT"
 LIC_FILES_CHKSUM = "file://COPYING-LGPL2.1;md5=fbc093901857fcd118f065f900982c24 \
                     file://COPYING-GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
-                    file://COPYING;md5=4eb012c221c5fd4b760029a2981a6754 \
+                    file://COPYING;md5=5351120989d78252e65dc1a2a92e3617 \
 "
 inherit cmake pkgconfig python3native python3-dir systemd
 # Disable python pybind support for ceph temporary, when corss compiling pybind,
@@ -12,20 +12,17 @@ SRC_URI = "http://download.ceph.com/tarballs/ceph-${PV}.tar.gz \
            file://0001-ceph-fix-build-errors-for-cross-compile.patch \
            file://0001-fix-host-library-paths-were-used.patch \
            file://ceph.conf \
-           file://0001-cmake-add-support-for-python3.10.patch \
-           file://0001-SnappyCompressor.h-fix-snappy-compiler-error.patch \
            file://0001-buffer.h-add-missing-header-file-due-to-gcc-upgrade.patch \
            file://0002-common-fix-FTBFS-due-to-dout-need_dynamic-on-GCC-12.patch \
-           file://CVE-2021-3979.patch \
 "
 
-SRC_URI[sha256sum] = "5dccdaff2ebe18d435b32bfc06f8b5f474bf6ac0432a6a07d144b7c56700d0bf"
+SRC_URI[sha256sum] = "3dd0c7b3cb740abd38eeb0a44078ca5ae6ad96050a7290ac82883e106592a3fa"
 
-DEPENDS = "boost bzip2 curl expat gperf-native \
-           keyutils libaio libibverbs lz4 \
+DEPENDS = "boost bzip2 cryptsetup curl expat gperf-native \
+           keyutils libaio libibverbs lua lz4 \
            nspr nss \
            oath openldap openssl \
-           python3 python3-cython-native rabbitmq-c rocksdb snappy udev \
+           python3 python3-cython-native rabbitmq-c rocksdb snappy thrift udev \
            valgrind xfsprogs zlib \
 "
 SYSTEMD_SERVICE:${PN} = " \
@@ -67,6 +64,7 @@ EXTRA_OECMAKE = "-DWITH_MANPAGE=OFF \
                  -DPython3_EXECUTABLE=${PYTHON} \
                  -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF \
                  -DWITH_REENTRANT_STRSIGNAL=ON \
+                 -DWITH_RADOSGW_LUA_PACKAGES=OFF \
 "
 
 CXXFLAGS += "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
Signature · 1 line
2.33.0