Change in meta-telephony[201705]: libosmocore: Avoid use --disable-detect-tls-gcc-arm-bug

pespin gerrit-no-reply at lists.osmocom.org
Wed Apr 21 12:58:18 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/meta-telephony/+/23844 )


Change subject: libosmocore: Avoid use --disable-detect-tls-gcc-arm-bug
......................................................................

libosmocore: Avoid use --disable-detect-tls-gcc-arm-bug

Related: OS#5079
Change-Id: I74cfbc784e2330837a3b165b0f3a62dc6c4ce274
---
M recipes-osmocom/libosmocore/libosmocore_git.bb
1 file changed, 10 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/meta-telephony refs/changes/44/23844/1

diff --git a/recipes-osmocom/libosmocore/libosmocore_git.bb b/recipes-osmocom/libosmocore/libosmocore_git.bb
index 9717511..062fb20 100644
--- a/recipes-osmocom/libosmocore/libosmocore_git.bb
+++ b/recipes-osmocom/libosmocore/libosmocore_git.bb
@@ -4,7 +4,7 @@
 SRCREV = "1.5.1"
 SRC_URI = "git://git.osmocom.org/libosmocore.git;protocol=git;tag=${SRCREV};nobranch=1"
 PV = "1.5.1+gitr${SRCPV}"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 PACKAGES =+ "libosmoctrl libosmocodec libosmogb libosmogsm libosmovty osmo-arfcn osmo-auc-gen osmo-config-merge"
 FILES_libosmoctrl = "${libdir}/libosmoctrl${SOLIBS}"
@@ -36,4 +36,12 @@
 # we are not affected by the bug, we are fine with that. If the toolchain had
 # the TLS runtime bug, then we'd had to build with -O0. Can be probably dropped
 # once we move to newer toolchain.
-EXTRA_OECONF +=  "--disable-detect-tls-gcc-arm-bug"
+#EXTRA_OECONF +=  "--disable-detect-tls-gcc-arm-bug"
+# UPDATE: OS#5079: we stop using "--disable-detect-tls-gcc-arm-bug" because we
+# finally hit the TLS bug in sysmobts (osmo-bts-symo calling osmo_str_tolower()
+# which uses "static __thread char capsbuf"). As a result, the only option would
+# be to use -O0 when building libosmocore with the sysmobts toolchain. In order
+# to avoid that, we take advantage of the fact that no libosmocore multi-thread
+# process is expected to run there and simply drop all the "__thread"
+# references when building for sysmobts. That's done as a machine-specific
+# bbappend in meta-sysmocom-bsp.

-- 
To view, visit https://gerrit.osmocom.org/c/meta-telephony/+/23844
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: meta-telephony
Gerrit-Branch: 201705
Gerrit-Change-Id: I74cfbc784e2330837a3b165b0f3a62dc6c4ce274
Gerrit-Change-Number: 23844
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210421/1359ada0/attachment.htm>


More information about the gerrit-log mailing list