Skip to contentSkip to conversation

binutils: Disable gprofng on musl systems

PATCH New Khem Raj 1 participant 1 message Aug 18, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 binutils: Disable gprofng on musl systems

disable gprofng, as it depends on few glibc apis

| ../../../gprofng/libcollector/../src/collector_module.h:78:13: error: duplicate member 'pwrite'
|    78 |   ssize_t (*pwrite64)();
|       |             ^~~~~~~~
| ../../../gprofng/libcollector/dispatcher.c: In function 'collector_timer_create':
| ../../../gprofng/libcollector/dispatcher.c:578:8: error: 'struct sigevent' has no member named '_sigev_un'
|   578 |   sigev._sigev_un._tid = __collector_gettid ();
|       |        ^
---
 meta/recipes-devtools/binutils/binutils_2.39.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/binutils/binutils_2.39.bb +3 -0
index 863eedbcbd..67240383f7 100644
@@ -16,6 +16,9 @@ EXTRA_OEMAKE:append:libc-musl = "\
                                 "
 # libcollector/collector.c:547:15: error: no member named '__fprintf_chk' in 'struct CollectorUtilFuncs'
 EXTRA_OECONF:append:toolchain-clang = " --disable-gprofng"
+# | ../../../gprofng/libcollector/../src/collector_module.h:78:13: error: duplicate member 'pwrite'
+# | ../../../gprofng/libcollector/dispatcher.c:578:8: error: 'struct sigevent' has no member named '_sigev_un'
+EXTRA_OECONF:append:libc-musl = " --disable-gprofng"
 
 EXTRA_OECONF:class-native = "--enable-targets=all \
                              --enable-64-bit-bfd \
Signature · 1 line
2.37.2