Skip to contentSkip to conversation

ceph: set CXXFLAGS and CFLAGS

PATCH In review Sakib Sajal 2 participants 2 messages Mar 22, 2022 – Mar 24, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ceph: set CXXFLAGS and CFLAGS

In oe-core, the commit:
a83623a54a Revert "cmake.bbclass: Set CXXFLAGS and CFLAGS"

drops compiler flags overrides for all cmake-based recipes, causing the ceph compile to fail with the error:
ld: cannot find crtn.o: No such file or directory

collect2: error: ld returned 1 exit status

Add the override back for ceph to fix the build error.

---
 recipes-extended/ceph/ceph_15.2.15.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-extended/ceph/ceph_15.2.15.bb +3 -0
index c72953a..17dbcf3 100644
@@ -66,6 +66,9 @@ EXTRA_OECMAKE = "-DWITH_MANPAGE=OFF \
                  -DWITH_REENTRANT_STRSIGNAL=ON \
 "
 
+CXXFLAGS += "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
+CFLAGS += "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
+
 export STAGING_DIR_HOST
 
 do_configure:prepend () {
Signature · 1 line
2.25.1
#1 lore raw

thanks for V2!

I forgot that I was testing with v1, and pushed it instead of this .. but since the functional change is the same, we'll leave it as-is.

Cheers,

Bruce

In message: [meta-virtualization][PATCH V2] ceph: set CXXFLAGS and CFLAGS

Quoted 43 lines · on 22/03/2022 [email protected] wrote:

In oe-core, the commit:
a83623a54a Revert "cmake.bbclass: Set CXXFLAGS and CFLAGS"

drops compiler flags overrides for all cmake-based recipes, causing the ceph compile to fail with the error:
ld: cannot find crtn.o: No such file or directory

collect2: error: ld returned 1 exit status

Add the override back for ceph to fix the build error.

---
 recipes-extended/ceph/ceph_15.2.15.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-extended/ceph/ceph_15.2.15.bb +3 -0
index c72953a..17dbcf3 100644
@@ -66,6 +66,9 @@ EXTRA_OECMAKE = "-DWITH_MANPAGE=OFF \
                  -DWITH_REENTRANT_STRSIGNAL=ON \
 "
 
+CXXFLAGS += "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
+CFLAGS += "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
+
 export STAGING_DIR_HOST
 
 do_configure:prepend () {
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7105): https://lists.yoctoproject.org/g/meta-virtualization/message/7105
Mute This Topic: https://lists.yoctoproject.org/mt/89962111/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-