From: Kai Kang <[email protected]>

It requires gcc 5.0 via OE-Core rev abc741a. On centos 7, the gcc
version is too low then it has to build with buildtools-extended-tarball
which provides nativesdk-gcc.

But it fails to build nspr-native:

| gcc   abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 
-lpthread -o abstract
| /PATH/TO/x86_64-wrlinuxsdk-linux/bin/ld: /lib64/librt.so.1: undefined 
reference to `__clock_getcpuclockid@GLIBC_PRIVATE'
| /PATH/TO/x86_64-wrlinuxsdk-linux/bin/ld: /lib64/librt.so.1: undefined 
reference to `__clock_nanosleep@GLIBC_PRIVATE'
| /PATH/TO/x86_64-wrlinuxsdk-linux/bin/ld: /lib64/librt.so.1: undefined 
reference to `__clock_settime@GLIBC_PRIVATE'
| /PATH/TO/x86_64-wrlinuxsdk-linux/bin/ld: /lib64/librt.so.1: undefined 
reference to `__clock_getres@GLIBC_PRIVATE'
| collect2: error: ld returned 1 exit status
| make: *** [Makefile:379: abstract] Error 1

Add nativesdk-glibc to buildtools-extended-tarball. And it increases
size of buildtools-extended-tarball about 3K from 48356989 to 48360329.

Signed-off-by: Kai Kang <[email protected]>
---
 meta/recipes-core/meta/buildtools-extended-tarball.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/meta/buildtools-extended-tarball.bb 
b/meta/recipes-core/meta/buildtools-extended-tarball.bb
index c32d0107c3..ab95d62f6f 100644
--- a/meta/recipes-core/meta/buildtools-extended-tarball.bb
+++ b/meta/recipes-core/meta/buildtools-extended-tarball.bb
@@ -27,6 +27,7 @@ TOOLCHAIN_HOST_TASK += "\
     nativesdk-libstdc++-staticdev \
     nativesdk-libtool \
     nativesdk-pkgconfig \
+    nativesdk-glibc \
     nativesdk-glibc-utils \
     nativesdk-libxcrypt-dev \
     "
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#137959): 
https://lists.openembedded.org/g/openembedded-core/message/137959
Mute This Topic: https://lists.openembedded.org/mt/74012860/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to