]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
binutils: Disable gprofng on musl systems
authorKhem Raj <raj.khem@gmail.com>
Thu, 18 Aug 2022 20:27:57 +0000 (13:27 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Aug 2022 21:51:38 +0000 (22:51 +0100)
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 ();
|       |        ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils_2.39.bb

index 863eedbcbd98b57db47d15c283b268a7a5be16d5..67240383f72cbd2febedb1cf3c3ccaef71b0d9f2 100644 (file)
@@ -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 \