Skip to contentSkip to conversation

buildtools-extended-tarball: add nativesdk-glibc

PATCH In review kai 3 participants 7 messages May 6, 2020 – May 14, 2020

lore
Share & tools
lore

kai

author
#0 lore raw

PATCH 1/1 buildtools-extended-tarball: add nativesdk-glibc

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.

---
 meta/recipes-core/meta/buildtools-extended-tarball.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/meta/buildtools-extended-tarball.bb +1 -0
index c32d0107c3..ab95d62f6f 100644
@@ -27,6 +27,7 @@ TOOLCHAIN_HOST_TASK += "\
     nativesdk-libstdc++-staticdev \
     nativesdk-libtool \
     nativesdk-pkgconfig \
+    nativesdk-glibc \
     nativesdk-glibc-utils \
     nativesdk-libxcrypt-dev \
     "
Signature · 1 line
2.17.1
#1 lore raw
Quoted 22 lines · kai

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:

Quoted 4 lines

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'

Quoted 8 lines

/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

Quoted 8 lines

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

---
 meta/recipes-core/meta/buildtools-extended-tarball.bb | 1 +
 1 file changed, 1 insertion(+)

This doesn't make sense. Does it mean we need a new uninative version instead?

Cheers,

Richard

#2 lore raw
Quoted 26 lines · Richard Purdie
Quoted 25 lines · kai

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:

Quoted 4 lines

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'

Quoted 8 lines

/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.

Quoted 6 lines
Quoted 4 lines
---
  meta/recipes-core/meta/buildtools-extended-tarball.bb | 1 +
  1 file changed, 1 insertion(+)

This doesn't make sense. Does it mean we need a new uninative version instead?

This works in dunfell, as of right now. This should have been fixed with:

https://patchwork.openembedded.org/patch/171584/

Quoted 9 lines

Cheers,

Richard

Signature · 2 lines
Jeremy A. Puhlman
[email protected]
author
#3 lore raw
In reply to Richard Purdie
Quoted 30 lines · Richard Purdie
Quoted 21 lines · kai

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:

Quoted 4 lines

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'

Quoted 8 lines

/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

Quoted 8 lines

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

---
  meta/recipes-core/meta/buildtools-extended-tarball.bb | 1 +
  1 file changed, 1 insertion(+)
Quoted 7 lines

This doesn't make sense. Does it mean we need a new uninative version instead?

Cheers,

Richard

```This works in dunfell, as of right now. This should have been fixed with:

```https://patchwork.openembedded.org/patch/171584/

Hi Jeremy,

I can't receive mails from maillist for now. So reply here.

I suppose when I build oe-core master on ubunu 16.04, it already contains the commit. I'll double  check it.

Thanks a lot.

Signature · 2 lines
Kai Kang
Wind River Linux
#4 lore raw
Quoted 42 lines · Kang Kai
Quoted 30 lines · Richard Purdie
Quoted 21 lines · kai

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:

Quoted 4 lines

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'

Quoted 8 lines

/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

Quoted 8 lines

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

---
  meta/recipes-core/meta/buildtools-extended-tarball.bb | 1 +

  1 file changed, 1 insertion(+)
Quoted 7 lines

This doesn't make sense. Does it mean we need a new uninative version instead?

Cheers,

Richard

```This works in dunfell, as of right now. This should have been fixed with:

```https://patchwork.openembedded.org/patch/171584/
Quoted 5 lines

Hi Jeremy,

I can't receive mails from maillist for now. So reply here.

I suppose when I build oe-core master on ubunu 16.04, it already contains the commit. I'll double  check it.

Yeah it is in master right now. I am not entirely sure why you would be seeing it. There was some discussion on the list about twiddling with the location of /etc/ld.so.conf and relocating it in the generation of sdks in general, but I have not been able to poke at it today. If that went in, it might have caused the issue. Basically what I saw when I was looking in to it, was the sdk ld.so.conf was not getting loaded(in the case of the patch because it was looking for etc/etc), but if it got moved or something similar, it might cause a similar issue.

If you are still seeing the issue on master, strace the link of the file with -f and look at what is going on with the load of ld.so.conf and that might explain what is going on. Also make sure that ld.so.conf is still there and has reasonable content.

Signature · 2 lines
Jeremy A. Puhlman
[email protected]
author
#5 lore raw
Quoted 50 lines · Jeremy A. Puhlman
Quoted 42 lines · Kang Kai
Quoted 30 lines · Richard Purdie
Quoted 21 lines · kai

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:

Quoted 4 lines

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'

Quoted 8 lines

/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

Quoted 8 lines

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

---
  meta/recipes-core/meta/buildtools-extended-tarball.bb | 1 +

  1 file changed, 1 insertion(+)
Quoted 7 lines

This doesn't make sense. Does it mean we need a new uninative version instead?

Cheers,

Richard

```This works in dunfell, as of right now. This should have been fixed with:

```https://patchwork.openembedded.org/patch/171584/
Quoted 5 lines

Hi Jeremy,

I can't receive mails from maillist for now. So reply here.

I suppose when I build oe-core master on ubunu 16.04, it already contains the commit. I'll double  check it.

Quoted 8 lines

Yeah it is in master right now. I am not entirely sure why you would be seeing it. There was some discussion on the list about twiddling with the location of /etc/ld.so.conf and relocating it in the generation of sdks in general, but I have not been able to poke at it today. If that went in, it might have caused the issue. Basically what I saw when I was looking in to it, was the sdk ld.so.conf was not getting loaded(in the case of the patch because it was looking for etc/etc), but if it got moved or something similar, it might cause a similar issue.

If you are still seeing the issue on master, strace the link of the file with -f and look at what is going on with the load of ld.so.conf and that might explain what is going on. Also make sure that ld.so.conf is still there and has reasonable content.

Thank you very much for your detailed comment. I'll try it.

Quoted 2 lines
Signature · 2 lines
Kai Kang
Wind River Linux
author
#6 lore raw
Quoted 57 lines · Kang Kai
Quoted 56 lines · Jeremy A. Puhlman
Quoted 42 lines · Kang Kai
Quoted 30 lines · Richard Purdie
Quoted 21 lines · kai

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:

Quoted 4 lines

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'

Quoted 8 lines

/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

Quoted 8 lines

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

---
  meta/recipes-core/meta/buildtools-extended-tarball.bb | 1 +

  1 file changed, 1 insertion(+)
Quoted 7 lines

This doesn't make sense. Does it mean we need a new uninative version instead?

Cheers,

Richard

```This works in dunfell, as of right now. This should have been fixed with:

```https://patchwork.openembedded.org/patch/171584/
Quoted 5 lines

Hi Jeremy,

I can't receive mails from maillist for now. So reply here.

I suppose when I build oe-core master on ubunu 16.04, it already contains the commit. I'll double  check it.

Yeah it is in master right now. I am not entirely sure why you would be seeing it. There was some discussion on the list about twiddling with the location of /etc/ld.so.conf and relocating it in the generation of sdks in general, but I have not been able to poke at it today. If that went in, it might have caused the issue. Basically what I saw when I was looking in to it, was the sdk ld.so.conf was not getting loaded(in the case of the patch because it was looking for etc/etc), but if it got moved or something similar, it might cause a similar issue.

Quoted 5 lines
Quoted 2 lines

If you are still seeing the issue on master, strace the link of the file with -f and look at what is going on with the load of ld.so.conf and that might explain what is going on. Also make sure that ld.so.conf is still there and has reasonable content.

Thank you very much for your detailed comment. I'll try it.

Hi Richard & Jeremy,

I tried buildtools-extended-tarball with latest oe-core repo, and it could build nspr-native on both ubuntu 16.04 and centos 7.7. Maybe it is fixed along with recent update of buildtools-extend.

Thanks a lot for your replies.

Regards,
Kai

Quoted 5 lines
Quoted 4 lines
Signature · 2 lines
Kai Kang
Wind River Linux