Skip to contentSkip to conversation

binutils: backport a patch to address failures when time64.inc is in use

PATCH Superseded Alexander Kanavin 4 participants 38 messages Apr 26, 2023 – May 4, 2023 3 messages not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/11 binutils: backport a patch to address failures when time64.inc is in use

---
 .../binutils/binutils-2.40.inc                |  1 +
 .../binutils/binutils/fix-time64.patch        | 94 +++++++++++++++++++
 2 files changed, 95 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/fix-time64.patch
meta/recipes-devtools/binutils/binutils-2.40.inc +1 -0
index 93631ca3d7f..ad2c9f9da14 100644
@@ -35,5 +35,6 @@ SRC_URI = "\
      file://0014-configure-remove-dependencies-on-gmp-and-mpfr-when-g.patch \
      file://0015-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
      file://0016-CVE-2023-25586.patch \
+     file://fix-time64.patch \
 "
 S  = "${WORKDIR}/git"
meta/recipes-devtools/binutils/binutils/fix-time64.patch new file +94 -0

94 lines not on this page · raw message

Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/11 time64.inc: add glibc-testsuite to 'special cases'

It builds glibc source like other glibc recipes do, and so the same problems occur.

---
 meta/conf/distro/include/time64.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/time64.inc +1 -0
index 2e7278292c6..73adebd39db 100644
@@ -10,6 +10,7 @@ TARGET_CC_ARCH:append:x86 = "${@bb.utils.contains('TUNE_FEATURES', 'm32', '${GLI
 
 GLIBC_64BIT_TIME_FLAGS:pn-glibc = ""
 GLIBC_64BIT_TIME_FLAGS:pn-glibc-tests = ""
+GLIBC_64BIT_TIME_FLAGS:pn-glibc-testsuite = ""
 # pipewire-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to
 # both 32 and 64 bit file APIs.  But it does not handle the time side?
 # Needs further investigation
Signature · 1 line
2.30.2
#2 lore raw

PATCH 3/11 strace: exclude from x86 (32 bit) ptests

In reply to Alexander Kanavin

Please see the linked ticket.

---
 meta/conf/distro/include/ptest-packagelists.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta/conf/distro/include/ptest-packagelists.inc +4 -0
index 78750a0d98b..77d69c9fcd1 100644
@@ -114,6 +114,10 @@ PTESTS_SLOW:append:libc-musl = " libc-test"
 PTESTS_SLOW:remove:x86 = "valgrind"
 PTESTS_PROBLEMS:append:x86 = " valgrind"
 
+# https://github.com/strace/strace/issues/250
+PTESTS_SLOW:remove:x86 = "strace"
+PTESTS_PROBLEMS:append:x86 = " strace"
+
 #    ruby \ # Timeout
 #    lz4 \ # Needs a rewrite
 #    rt-tests \ # Needs to be checked whether it runs at all
Signature · 1 line
2.30.2
#3 lore raw

PATCH 4/11 lttng-tools: exclude from x86 (32 bit) ptests

In reply to Alexander Kanavin

Please see the comment.

---
 meta/conf/distro/include/ptest-packagelists.inc | 6 ++++++
 1 file changed, 6 insertions(+)
meta/conf/distro/include/ptest-packagelists.inc +6 -0
index 77d69c9fcd1..39b885066ce 100644
@@ -118,6 +118,12 @@ PTESTS_PROBLEMS:append:x86 = " valgrind"
 PTESTS_SLOW:remove:x86 = "strace"
 PTESTS_PROBLEMS:append:x86 = " strace"
 
+# Needs support for 64 bit syscall versions
+# which was added in http://git.lttng.org/?p=lttng-modules.git;a=commitdiff;h=86040c9e2ff8a79633db34220e32bdda536b00e6
+# and should show up in lttng-modules 2.14.x
+PTESTS_SLOW:remove:x86 = "lttng-tools"
+PTESTS_PROBLEMS:append:x86 = " lttng-tools"
+
 #    ruby \ # Timeout
 #    lz4 \ # Needs a rewrite
 #    rt-tests \ # Needs to be checked whether it runs at all
Signature · 1 line
2.30.2
#4 lore raw

PATCH 5/11 bitbake.conf: set minimum required kernel to 5.15

In reply to Alexander Kanavin

In particular this enables a number of useful features in glibc, such as actually using 64 bit time_t versions of kernel syscalls:

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/kernel-features.h;h=07b440f4eea364b05fa49bf71ceebf78f80efe13;hb=HEAD#l164

---
 meta/conf/bitbake.conf | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
meta/conf/bitbake.conf +1 -6
index afd9e2f5527..2db84a46eed 100644
@@ -469,12 +469,7 @@ SDKPATHINSTALL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}"
 # Kernel info.
 ##################################################################
 
-OLDEST_KERNEL = "3.2.0"
-OLDEST_KERNEL:aarch64 = "3.14"
-OLDEST_KERNEL:nios2 = "3.19"
-OLDEST_KERNEL:powerpc64le = "3.10.0"
-OLDEST_KERNEL:riscv32 = "5.4"
-OLDEST_KERNEL:riscv64 = "4.15"
+OLDEST_KERNEL = "5.15"
 
 # SDK_OLDEST_KERNEL can't be set using overrides since there are
 # none for the SDK architecture. Best to set it from a machine-sdk
Signature · 1 line
2.30.2
#5 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 17 lines · Alexander Kanavin

In particular this enables a number of useful features in glibc, such as actually using 64 bit time_t versions of kernel syscalls:

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/kernel-features.h;h=07b440f4eea364b05fa49bf71ceebf78f80efe13;hb=HEAD#l164

---
 meta/conf/bitbake.conf | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
meta/conf/bitbake.conf +0 -0
index afd9e2f5527..2db84a46eed 100644
@@ -469,12 +469,7 @@ SDKPATHINSTALL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}"
 # Kernel info.

meta/conf/bitbake.conf SDKPATHINSTALL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}" · line 473

Quoted 10 lines
meta/conf/bitbake.conf +1 -6
 ##################################################################
 
-OLDEST_KERNEL = "3.2.0"
-OLDEST_KERNEL:aarch64 = "3.14"
-OLDEST_KERNEL:nios2 = "3.19"
-OLDEST_KERNEL:powerpc64le = "3.10.0"
-OLDEST_KERNEL:riscv32 = "5.4"
-OLDEST_KERNEL:riscv64 = "4.15"
+OLDEST_KERNEL = "5.15"
 

While this might be good, does this fix anything specific for enabling 64bit time_t.
This change means we are implying that yocto wont work with kernels older than 5.15 and maybe SDK would also need
5.15 on SDK hosts and similar need for build hosts might be imposed too. Perhaps it would be good to do some due diligence before applying this.

Quoted 14 lines
meta/conf/bitbake.conf +0 -1
 # SDK_OLDEST_KERNEL can't be set using overrides since there are
 # none for the SDK architecture. Best to set it from a machine-sdk
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180423): https://lists.openembedded.org/g/openembedded-core/message/180423
Mute This Topic: https://lists.openembedded.org/mt/98511406/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 2 lines · Khem Raj

While this might be good, does this fix anything specific for enabling 64bit time_t.

Yes; please see the link.

Quoted 5 lines

This change means we are implying that yocto wont work with kernels older than 5.15 and maybe SDK would also need
5.15 on SDK hosts and similar need for build hosts might be imposed too. Perhaps it would be good to do some due diligence before applying this.

I was waiting for someone to say something like this. :)

SDKs are not affected. There's a separate setting for them, SDK_OLDEST_KERNEL which stays as it was, at 3.2.0. Kernels versions on build hosts don't have a setting or check, and that never causes trouble. The focus here is specifically on removing all uses of 32 bit time on 32 bit targets, and as a bonus, enabling other optimized paths in glibc that are only supported with newer kernels.

The implication is not that yocto won't work with < 5.15, it's that it is not tested with such kernels. Which is fair enough, isn't it? If someone does need an older kernel (and yes, I'm waiting for the 'outdated vendor kernels' squad to come out and lynch me for this change), they can reset OLDEST_KERNEL locally, which would confirm that they should be doing their own testing.

Alex

#7 lore raw

RE: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Does this mean that SANITY_TESTED_DISTROS should also be updated to remove all distros with kernel older than 5.15?

Regards,
Qi

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Alexander Kanavin
Sent: Thursday, April 27, 2023 3:20 PM
To: Khem Raj <[email protected]>
Cc: [email protected]; Alexander Kanavin <[email protected]>
Subject: Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 2 lines · Khem Raj

While this might be good, does this fix anything specific for enabling 64bit time_t.

Yes; please see the link.

Quoted 5 lines

This change means we are implying that yocto wont work with kernels older than 5.15 and maybe SDK would also need
5.15 on SDK hosts and similar need for build hosts might be imposed too. Perhaps it would be good to do some due diligence before applying this.

I was waiting for someone to say something like this. :)

SDKs are not affected. There's a separate setting for them, SDK_OLDEST_KERNEL which stays as it was, at 3.2.0. Kernels versions on build hosts don't have a setting or check, and that never causes trouble. The focus here is specifically on removing all uses of 32 bit time on 32 bit targets, and as a bonus, enabling other optimized paths in glibc that are only supported with newer kernels.

The implication is not that yocto won't work with < 5.15, it's that it is not tested with such kernels. Which is fair enough, isn't it? If someone does need an older kernel (and yes, I'm waiting for the 'outdated vendor kernels' squad to come out and lynch me for this change), they can reset OLDEST_KERNEL locally, which would confirm that they should be doing their own testing.

Alex

#8 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 1 line · Qi

Does this mean that SANITY_TESTED_DISTROS should also be updated to remove all distros with kernel older than 5.15?

No. This check only applies to target kernels built by yocto, not any of the build host or sdk host kernels.

Alex

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 4 lines · Alexander Kanavin via lists.openembedded.org
Quoted 1 line

Does this mean that SANITY_TESTED_DISTROS should also be updated to remove all distros with kernel older than 5.15?

No. This check only applies to target kernels built by yocto, not any of the build host or sdk host kernels.

I should however expand the commit message to make this clear, and better explain where OLDEST_KERNEL is used inside oe-core.

Alex

#11 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

In reply to Alexander Kanavin
Quoted 22 lines · Alexander Kanavin
Quoted 2 lines · Khem Raj

While this might be good, does this fix anything specific for enabling 64bit time_t.

Yes; please see the link.

Quoted 5 lines

This change means we are implying that yocto wont work with kernels older than 5.15 and maybe SDK would also need
5.15 on SDK hosts and similar need for build hosts might be imposed too. Perhaps it would be good to do some due diligence before applying this.

I was waiting for someone to say something like this. :)

SDKs are not affected. There's a separate setting for them, SDK_OLDEST_KERNEL which stays as it was, at 3.2.0. Kernels versions on build hosts don't have a setting or check, and that never causes trouble. The focus here is specifically on removing all uses of 32 bit time on 32 bit targets, and as a bonus, enabling other optimized paths in glibc that are only supported with newer kernels.

Quoted 7 lines

The implication is not that yocto won't work with < 5.15, it's that it is not tested with such kernels. Which is fair enough, isn't it? If someone does need an older kernel (and yes, I'm waiting for the 'outdated vendor kernels' squad to come out and lynch me for this change), they can reset OLDEST_KERNEL locally, which would confirm that they should be doing their own testing.

It will break compatibility with older kernels because we are telling glibc that we have 5.15 at minimum so it will assume system calls which are available upto and including 5.15 and some of these syscalls may not be available in older kernels

by next LTS it might be that 5.15 is commonly used but it still remains a problem for
precompiled binaries and libraries etc. sadly

Quoted 1 line

Alex

#12 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 7 lines · Khem Raj

It will break compatibility with older kernels because we are telling glibc that we have 5.15 at minimum so it will assume system calls which are available upto and including 5.15 and some of these syscalls may not be available in older kernels
by next LTS it might be that 5.15 is commonly used but it still remains a problem for
precompiled binaries and libraries etc. sadly

Once again, this affects target kernels only. There are no new restrictions on the build host or sdk host kernel versions.

If you are using an older target kernel, set OLDEST_KERNEL to match. If you are using precompiled items, I'm not sure what the problem would be for them?

Alex

#13 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

I am also seing some segfaults in qemu usermode runs

| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/qemuwrapper:
line 2: 1592564 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 5.15 -cpu core2duo -L
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib:/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib "$@"

this happens when building libclc from meta-clang

I also saw random build failures in qtbase which is perhaps unrelated but could be this one too

Third issue is https://errors.yoctoproject.org/Errors/Details/701889/

I wonder if uninative version of glibc should be first built with this change if we really want to pursue it.

Also send a BIG warning to community on breaking this backward compatibility, for some it might be helpful to get this notification now than next year.

Quoted 19 lines · Alexander Kanavin
Quoted 7 lines · Khem Raj

It will break compatibility with older kernels because we are telling glibc that we have 5.15 at minimum so it will assume system calls which are available upto and including 5.15 and some of these syscalls may not be available in older kernels
by next LTS it might be that 5.15 is commonly used but it still remains a problem for
precompiled binaries and libraries etc. sadly

Once again, this affects target kernels only. There are no new restrictions on the build host or sdk host kernel versions.

If you are using an older target kernel, set OLDEST_KERNEL to match. If you are using precompiled items, I'm not sure what the problem would be for them?

Alex

#14 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 2 lines · Khem Raj

I wonder if uninative version of glibc should be first built with this change if we really want to pursue it.

I'll take a look at the other issues separately, just wanted to respond here straight away - why would we do that? This change is intended only for the target builds, and uninative glibc should retain the broadest possible compatibility with host kernels. It is controlled via SDK_OLDEST_KERNEL, which is set to 3.2.0 and will remain so.

Alex

#15 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

In reply to Khem Raj
Quoted 10 lines · Khem Raj

I am also seing some segfaults in qemu usermode runs

| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/qemuwrapper:
line 2: 1592564 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 5.15 -cpu core2duo -L
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib:/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib "$@"

this happens when building libclc from meta-clang

Does not reproduce here (qemux86-64/poky/musl/gcc/meta-clang master).

Quoted 2 lines

I also saw random build failures in qtbase which is perhaps unrelated but could be this one too

This needs to be investigated on your side.

Quoted 1 line

Third issue is https://errors.yoctoproject.org/Errors/Details/701889/

This is from a misconfigured CI on your side and the error is

"clang-16: error: unable to execute command: Segmentation fault (core dumped)
clang-16: error: linker command failed due to signal (use -v to see invocation)"

which may be unrelated. Is it still happening, and is it going away if this patchset is removed?

Alex

#16 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 11 lines · Alexander Kanavin
Quoted 9 lines · Khem Raj

I am also seing some segfaults in qemu usermode runs

| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/qemuwrapper:
line 2: 1592564 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 5.15 -cpu core2duo -L
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib:/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib "$@"

Quoted 8 lines
Quoted 1 line

this happens when building libclc from meta-clang

Does not reproduce here (qemux86-64/poky/musl/gcc/meta-clang master).

Quoted 2 lines

I also saw random build failures in qtbase which is perhaps unrelated but could be this one too

This needs to be investigated on your side.

I see that it is host dependent, it works on debian bullseye but fails with latest archlinux
since archlinux is rolling and uptodate it just a matter of time when it starts showing up
with one of time based distro releases like fedora or others.

Quoted 10 lines
Quoted 2 lines

Third issue is https://errors.yoctoproject.org/Errors/Details/701889/

This is from a misconfigured CI on your side and the error is

"clang-16: error: unable to execute command: Segmentation fault (core dumped)
clang-16: error: linker command failed due to signal (use -v to see invocation)"

which may be unrelated. Is it still happening, and is it going away if this patchset is removed?

this have not been tried yet explicitly, I can give it a shot if its not host specific

Quoted 2 lines

Alex

#17 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 13 lines · Khem Raj
Quoted 11 lines · Alexander Kanavin
Quoted 9 lines · Khem Raj

I am also seing some segfaults in qemu usermode runs

| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/qemuwrapper:
line 2: 1592564 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 5.15 -cpu core2duo -L
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib:/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib "$@"

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

this happens when building libclc from meta-clang

Does not reproduce here (qemux86-64/poky/musl/gcc/meta-clang master).

On to this one next. I think it will be good to understand this.

Quoted 19 lines
Quoted 4 lines
Quoted 2 lines

I also saw random build failures in qtbase which is perhaps unrelated but could be this one too

This needs to be investigated on your side.

I see that it is host dependent, it works on debian bullseye but fails with latest archlinux
since archlinux is rolling and uptodate it just a matter of time when it starts showing up
with one of time based distro releases like fedora or others.

Quoted 8 lines
Quoted 2 lines

Third issue is https://errors.yoctoproject.org/Errors/Details/701889/

This is from a misconfigured CI on your side and the error is

"clang-16: error: unable to execute command: Segmentation fault (core dumped)
clang-16: error: linker command failed due to signal (use -v to see invocation)"

This seems to be not related to this. which is good news.

Quoted 8 lines
Quoted 2 lines

which may be unrelated. Is it still happening, and is it going away if this patchset is removed?

this have not been tried yet explicitly, I can give it a shot if its not host specific

Quoted 2 lines

Alex

#18 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 15 lines · Khem Raj
Quoted 13 lines · Khem Raj
Quoted 11 lines · Alexander Kanavin
Quoted 9 lines · Khem Raj

I am also seing some segfaults in qemu usermode runs

| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/qemuwrapper:
line 2: 1592564 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 5.15 -cpu core2duo -L
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib:/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib "$@"

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

this happens when building libclc from meta-clang

Does not reproduce here (qemux86-64/poky/musl/gcc/meta-clang master).

On to this one next. I think it will be good to understand this.

I built it on debian container and it does not segfault, Then I tried to build it on archlinux ( just recompiling libclc ) and it does not segfault either which means its some dependency ( maybe a library ) which gets compiled differently when compiled on archlinux and causes qemu to segfault. I will do a full scratch build on archlinux and see if it can be reproduced again.

Quoted 31 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

I also saw random build failures in qtbase which is perhaps unrelated but could be this one too

Quoted 16 lines
Quoted 1 line

This needs to be investigated on your side.

I see that it is host dependent, it works on debian bullseye but fails with latest archlinux
since archlinux is rolling and uptodate it just a matter of time when it starts showing up
with one of time based distro releases like fedora or others.

Quoted 8 lines
Quoted 2 lines

Third issue is https://errors.yoctoproject.org/Errors/Details/701889/

This is from a misconfigured CI on your side and the error is

"clang-16: error: unable to execute command: Segmentation fault (core dumped)
clang-16: error: linker command failed due to signal (use -v to see invocation)"

This seems to be not related to this. which is good news.

Quoted 8 lines
Quoted 2 lines

which may be unrelated. Is it still happening, and is it going away if this patchset is removed?

this have not been tried yet explicitly, I can give it a shot if its not host specific

Quoted 2 lines

Alex

#19 lore raw

Re: [OE-core] [PATCH 05/11] bitbake.conf: set minimum required kernel to 5.15

Quoted 22 lines · Khem Raj
Quoted 20 lines · Khem Raj
Quoted 17 lines · Khem Raj
Quoted 15 lines · Alexander Kanavin
Quoted 10 lines · Khem Raj

I am also seing some segfaults in qemu usermode runs

| /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/qemuwrapper:
line 2: 1592564 Segmentation fault (core dumped) PSEUDO_UNLOAD=1
qemu-x86_64 -r 5.15 -cpu core2duo -L
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot
-E LD_LIBRARY_PATH=/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib:/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libclc/16.0.1-r0/recipe-sysroot/usr/lib "$@"

this happens when building libclc from meta-clang

Does not reproduce here (qemux86-64/poky/musl/gcc/meta-clang master).

Quoted 8 lines
Quoted 1 line

On to this one next. I think it will be good to understand this.

I built it on debian container and it does not segfault, Then I tried to build it on archlinux ( just recompiling libclc ) and it does not segfault either which means its some dependency ( maybe a library ) which gets compiled differently when compiled on archlinux and causes qemu to segfault. I will do a full scratch build on archlinux and see if it can be reproduced again.

It worked with scratch build, however its not same archlinux as last week. GCC got
upgraded to 13.x and i had to disable uninative so it might still be hidden there for now
lets ignore it

Quoted 32 lines
Quoted 32 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

I also saw random build failures in qtbase which is perhaps unrelated but could be this one too

Quoted 16 lines
Quoted 1 line

This needs to be investigated on your side.

I see that it is host dependent, it works on debian bullseye but fails with latest archlinux
since archlinux is rolling and uptodate it just a matter of time when it starts showing up
with one of time based distro releases like fedora or others.

Quoted 8 lines
Quoted 2 lines

Third issue is https://errors.yoctoproject.org/Errors/Details/701889/

This is from a misconfigured CI on your side and the error is

"clang-16: error: unable to execute command: Segmentation fault (core dumped)
clang-16: error: linker command failed due to signal (use -v to see invocation)"

This seems to be not related to this. which is good news.

Quoted 8 lines
Quoted 2 lines

which may be unrelated. Is it still happening, and is it going away if this patchset is removed?

this have not been tried yet explicitly, I can give it a shot if its not host specific

Quoted 2 lines

Alex

#20 lore raw

PATCH 6/11 python3-pytest: add missing tomllib runtime dependency

In reply to Alexander Kanavin
---
 meta/recipes-devtools/python/python3-pytest_7.3.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3-pytest_7.3.1.bb +1 -0
index 9965844d1ad..914ea553464 100644
@@ -26,6 +26,7 @@ RDEPENDS:${PN} += " \
     ${PYTHON_PN}-py \
     ${PYTHON_PN}-setuptools \
     ${PYTHON_PN}-six \
+    ${PYTHON_PN}-tomllib \
     ${PYTHON_PN}-wcwidth \
 "
 
Signature · 1 line
2.30.2
#21 lore raw

PATCH 7/11 time64.inc: add a comment about how to simulate Y2038

In reply to Alexander Kanavin

Setting clock to 2040 causes the following ptest failures on qemux86:

{'perl': ['t/op/magic', 'lib/File/stat', 'ext/POSIX/t/time']} {'python3': ['test_create_server_ssl_verified',

             'test_create_unix_server_ssl_verified',
             'test_local_good_hostname']}
{'dbus': ['dbus/test-relay_with_config.test',
          'dbus/test-misc-internals.test',
          'dbus/test-corrupt.test',
          'dbus/test-loopback_with_config.test',
          'dbus/test-relay.test',
          'dbus/test-misc-internals_with_config.test',
          'dbus/test-loopback.test',
          'dbus/test-fdpass_with_config.test',
          'dbus/test-corrupt_with_config.test',
          'dbus/test-fdpass.test']}
{'openssl': ['Dubious,_test_returned_5', 'Dubious,_test_returned_1']}
{'glibc-tests': ['/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-utimes',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-utimensat',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-utime',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-timespec_get',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-timer4',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-stat',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-sigtimedwait',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-settimeofday',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-sem5',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-select',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-scm_rights',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-rwlock14',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-ppoll',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-ntp_gettimex',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-ntp_gettime',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-ntp_adjtime',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mtx-timedlock',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mqueue8',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mqueue2',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mqueue10',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mqueue1',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-lutimes',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-lchmod',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-futimesat',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-futimes',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-futimens',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-fts',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-fcntl',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-cond11',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-cnd-timedwait',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-clock_settime',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-clock_adjtime',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-clock',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-aio6',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-adjtimex',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/ftwtest',
                 '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-lchmod-time64']}
{'openssh': ['key_options']}
{'curl': ['test_0031',
          'test_0046',
          'test_0053',
          'test_0061',
          'test_0062',
          'test_0172',
          'test_0179',
          'test_0327',
          'test_0329',
          'test_0420',
          'test_1104',
          'test_1216',
          'test_1415']}
{'glib-2.0': ['glib/asyncqueue.test',
              'glib/module-test-plugin.test',
              'glib/file.test',
              'glib/fileutils.test',
              'glib/module-test-library.test']}

{'gstreamer1.0': ['gstreamer/elements_multiqueue.test']} (may be flaky) {'tcl': ['cmdAH.test', 'interp.test']} {'libmodule-build-perl': ['t/compat']}

Some ptests fail on qemux86-64 as well:
{'curl': ['test_0031',

          'test_0046',
          'test_0053',
          'test_0061',
          'test_0062',
          'test_0172',
          'test_0179',
          'test_0327',
          'test_0329',
          'test_0420',
          'test_1104',
          'test_1216',
          'test_1415']}
{'python3': ['test_create_server_ssl_verified',
             'test_create_unix_server_ssl_verified',
             'test_local_good_hostname']}

{'openssh': ['key_options']}
{'openssl': ['Dubious,_test_returned_5', 'Dubious,_test_returned_1']}
{'tcl': ['interp.test']}
{'python3-cryptography': ['tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_smime_sign_detached',

                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_pem',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_alternate_digests_der[hash_alg0-\\x06\\t`\\x86H\\x01e\\x03\\x04\\x02\\x01]',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_alternate_digests_der[hash_alg1-\\x06\\t`\\x86H\\x01e\\x03\\x04\\x02\\x02]',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_alternate_digests_der[hash_alg2-\\x06\\t`\\x86H\\x01e\\x03\\x04\\x02\\x03]',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_attached',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_binary',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_smime_canonicalization',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_text',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_no_capabilities',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_no_attributes',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_multiple_signers',
                          'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_multiple_signers_different_hash_algs']}

Note that setting the year to 2035 resolves almost all of the above, as onl the following then fail:

qemux86:
{'python3': ['test_local_good_hostname']}
{'curl': ['test_0420']}

qemux86-64:
{'python3': ['test_local_good_hostname']}
{'curl': ['test_0420']}

---
 meta/conf/distro/include/time64.inc | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta/conf/distro/include/time64.inc +10 -0
index 73adebd39db..f3bdfba4acf 100644
@@ -1,3 +1,13 @@
+# To simulate Y2038 occurring, add to your build configuration:
+# QB_OPT_APPEND:append = " -rtc base=2040-02-02"
+#
+# Note that this does result in ptest failures on qemux86:
+# perl python3 dbus openssl glibc-tests openssh curl glib-2.0 tcl libmodule-build-perl
+# and a subset of those occurs in qemux86-64 as well:
+# curl python3 openssl openssl tcl python3-cryptography
+#
+# Working to address those (before Y2038 rolls in) will be appreciated.
+
 GLIBC_64BIT_TIME_FLAGS = " -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
 
 # Only needed for some 32-bit architectures, some relatively newer
Signature · 1 line
2.30.2
#22 lore raw

PATCH 8/11 oeqa/sdk/assimp: run only when zlib is in the SDK

In reply to Alexander Kanavin

Otherwise assimp will silently fall back to a vendored copy of zlib which will fail with -D_TIME_BITS=64 due to https://github.com/madler/zlib/pull/764

This was exposed by multilib mips core-image-minimal SDKs, where the default 64 bit sysroot has zlib, but 32 bit sysroot does not.

---
 meta/lib/oeqa/sdk/cases/assimp.py | 3 +++
 1 file changed, 3 insertions(+)
meta/lib/oeqa/sdk/cases/assimp.py +3 -0
index aa6541c6f6d..e4c5c730037 100644
@@ -22,6 +22,9 @@ class BuildAssimp(OESDKTestCase):
         if not (self.tc.hasHostPackage("nativesdk-cmake") or
                 self.tc.hasHostPackage("cmake-native")):
             raise unittest.SkipTest("Needs cmake")
+        if not (self.tc.hasTargetPackage("zlib", multilib=True) or \
+                self.tc.hasTargetPackage("libz1", multilib=True)):
+            raise unittest.SkipTest("Assimp test needs zlib in the SDK")
 
     def test_assimp(self):
         with tempfile.TemporaryDirectory(prefix="assimp", dir=self.tc.sdk_dir) as testdir:
Signature · 1 line
2.30.2
#23 lore raw

PATCH 9/11 defaultsetup: Enable largefile and 64bit time_t support systemwide

In reply to Alexander Kanavin

From: Khem Raj <[email protected]>

---
 meta/conf/distro/defaultsetup.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/distro/defaultsetup.conf +1 -1
index f6894f3ab56..1abb5096293 100644
@@ -2,7 +2,7 @@ include conf/distro/include/default-providers.inc
 include conf/distro/include/default-versions.inc
 include conf/distro/include/default-distrovars.inc
 include conf/distro/include/maintainers.inc
-
+include conf/distro/include/time64.inc
 require conf/distro/include/tcmode-${TCMODE}.inc
 require conf/distro/include/tclibc-${TCLIBC}.inc
 
Signature · 1 line
2.30.2
#24 lore raw

PATCH 10/11 insane.bbclass: simplify exceptions for 32 bit time API check

In reply to Alexander Kanavin

Existing implementation required to list both specific problematic apis, and files that use them: neither is necessary as both are seen in package_qa error messages, and can cause excessive amount of exception lines, if there are too many files, or they are installed in arch-specific locations. Also, the value of INSANE_SKIP should be the test that needs to be skipped, and in this case it wasn't.

Also, all problematic recipes are now correctly listed.

---
 meta/classes-global/insane.bbclass  | 14 +++-----------
 meta/conf/distro/include/time64.inc | 18 ++++++++++++------
 2 files changed, 15 insertions(+), 17 deletions(-)
meta/classes-global/insane.bbclass +3 -11
index ee34d5208d1..8788f58fc5b 100644
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
             # At this point, any symbol information is stripped into the debug
             # package, so that is the only place we will find them.
             elfpath = elfpath.replace('.debug/', '')
-            allowed = (
-                d.getVarFlag(
-                    'INSANE_SKIP:' + d.getVar('PN'), elfpath.replace('/', '_')
-                ) or ''
-            ).split()
-            usedapis -= set(allowed)
-            if usedapis:
+            allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or '').split()
+            if not allowed:
                 msgformat = elfpath + " uses 32-bit api '%s'"
                 for sym in usedapis:
                     oe.qa.add_message(messages, '32bit-time', msgformat % sym)
                 oe.qa.add_message(
                     messages, '32bit-time',
-                    'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
-                        d.getVar('PN'), elfpath.replace('/', '_'),
-                        ' '.join(usedapis)
-                    )
+                    'Suppress with INSANE_SKIP = "32bit-time"'
                 )
 
 # Check license variables
meta/conf/distro/include/time64.inc +12 -6
index f3bdfba4acf..1a3399bc5e6 100644
@@ -30,10 +30,16 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
 
-INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64"
-INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64 prctl stat64 clock_gettime"
-INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl lstat64 setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r"
-
-# libpulsedsp.so is a preload-library that hooks libc functions
-INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] = "setsockopt fcntl"
+INSANE_SKIP:append:pn-cargo = " 32bit-time"
+INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
+INSANE_SKIP:append:pn-glibc = " 32bit-time"
+INSANE_SKIP:append:pn-glibc-tests = " 32bit-time"
+INSANE_SKIP:append:pn-librsvg = " 32bit-time"
+INSANE_SKIP:append:pn-libstd-rs = " 32bit-time"
+INSANE_SKIP:append:pn-pulseaudio = " 32bit-time"
+INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time"
+INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time"
+INSANE_SKIP:append:pn-rust = " 32bit-time"
+INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time"
+INSANE_SKIP:append:pn-strace = " 32bit-time"
 
Signature · 1 line
2.30.2
#25 lore raw

Re: [OE-core] [PATCH 10/11] insane.bbclass: simplify exceptions for 32 bit time API check

its still triggering as error.

Quoted 84 lines · Alexander Kanavin

Existing implementation required to list both specific problematic apis, and files that use them: neither is necessary as both are seen in package_qa error messages, and can cause excessive amount of exception lines, if there are too many files, or they are installed in arch-specific locations. Also, the value of INSANE_SKIP should be the test that needs to be skipped, and in this case it wasn't.

Also, all problematic recipes are now correctly listed.

---
 meta/classes-global/insane.bbclass  | 14 +++-----------
 meta/conf/distro/include/time64.inc | 18 ++++++++++++------
 2 files changed, 15 insertions(+), 17 deletions(-)
meta/classes-global/insane.bbclass +3 -11
index ee34d5208d1..8788f58fc5b 100644
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
             # At this point, any symbol information is stripped into the debug
             # package, so that is the only place we will find them.
             elfpath = elfpath.replace('.debug/', '')
-            allowed = (
-                d.getVarFlag(
-                    'INSANE_SKIP:' + d.getVar('PN'), elfpath.replace('/', '_')
-                ) or ''
-            ).split()
-            usedapis -= set(allowed)
-            if usedapis:
+            allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or '').split()
+            if not allowed:
                 msgformat = elfpath + " uses 32-bit api '%s'"
                 for sym in usedapis:
                     oe.qa.add_message(messages, '32bit-time', msgformat % sym)
                 oe.qa.add_message(
                     messages, '32bit-time',
-                    'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
-                        d.getVar('PN'), elfpath.replace('/', '_'),
-                        ' '.join(usedapis)
-                    )
+                    'Suppress with INSANE_SKIP = "32bit-time"'
                 )
 
 # Check license variables
meta/conf/distro/include/time64.inc +12 -7
index f3bdfba4acf..1a3399bc5e6 100644
@@ -30,10 +30,16 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
 
-INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64"
-INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64 prctl stat64 clock_gettime"
-INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl lstat64 setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r"
-
-# libpulsedsp.so is a preload-library that hooks libc functions
-INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] = "setsockopt fcntl"
+INSANE_SKIP:append:pn-cargo = " 32bit-time"
+INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
+INSANE_SKIP:append:pn-glibc = " 32bit-time"
+INSANE_SKIP:append:pn-glibc-tests = " 32bit-time"
+INSANE_SKIP:append:pn-librsvg = " 32bit-time"
+INSANE_SKIP:append:pn-libstd-rs = " 32bit-time"
+INSANE_SKIP:append:pn-pulseaudio = " 32bit-time"
+INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time"
+INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time"
+INSANE_SKIP:append:pn-rust = " 32bit-time"
+INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time"
+INSANE_SKIP:append:pn-strace = " 32bit-time"
 
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180428): https://lists.openembedded.org/g/openembedded-core/message/180428
Mute This Topic: https://lists.openembedded.org/mt/98511412/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#26 lore raw

Re: [OE-core] [PATCH 10/11] insane.bbclass: simplify exceptions for 32 bit time API check

Can I see the error please?

Alex

Quoted 109 lines · Khem Raj

its still triggering as error.

Quoted 2 lines · Alexander Kanavin

Existing implementation required to list both specific problematic apis,

and files that

Quoted 1 line

use them: neither is necessary as both are seen in package_qa error

messages, and

Quoted 1 line

can cause excessive amount of exception lines, if there are too many

files, or

Quoted 1 line

they are installed in arch-specific locations. Also, the value of

INSANE_SKIP

Review

Quoted 11 lines

should be the test that needs to be skipped, and in this case it wasn't.

Also, all problematic recipes are now correctly listed.

---
 meta/classes-global/insane.bbclass  | 14 +++-----------
 meta/conf/distro/include/time64.inc | 18 ++++++++++++------
 2 files changed, 15 insertions(+), 17 deletions(-)
(quoted diff) +0 -0

b/meta/classes-global/insane.bbclass

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, d, elf,

Quoted 4 lines

index ee34d5208d1..8788f58fc5b 100644

meta/classes-global/insane.bbclass +0 -0
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf,

messages):

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, d, elf, · line 617

Quoted 1 line
meta/classes-global/insane.bbclass +0 -0
             # At this point, any symbol information is stripped into

the debug

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, d, elf, messages):

Quoted 5 lines
meta/classes-global/insane.bbclass +0 -3
             # package, so that is the only place we will find them.
             elfpath = elfpath.replace('.debug/', '')
-            allowed = (
-                d.getVarFlag(
-                    'INSANE_SKIP:' + d.getVar('PN'),

elfpath.replace('/', '_')

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, d, elf, messages):

Quoted 5 lines
meta/classes-global/insane.bbclass +1 -4
-                ) or ''
-            ).split()
-            usedapis -= set(allowed)
-            if usedapis:
+            allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or

'').split()

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, d, elf, messages):

Quoted 4 lines
meta/classes-global/insane.bbclass +1 -0
+            if not allowed:
                 msgformat = elfpath + " uses 32-bit api '%s'"
                 for sym in usedapis:
                     oe.qa.add_message(messages, '32bit-time', msgformat

% sym)

Review

Quoted 11 lines
meta/classes-global/insane.bbclass +1 -4
                 oe.qa.add_message(
                     messages, '32bit-time',
-                    'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
-                        d.getVar('PN'), elfpath.replace('/', '_'),
-                        ' '.join(usedapis)
-                    )
+                    'Suppress with INSANE_SKIP = "32bit-time"'
                 )
 
 # Check license variables
(quoted diff) +0 -0

b/meta/conf/distro/include/time64.inc

meta/conf/distro/include/time64.inc GLIBC_64BIT_TIME_FLAGS:pn-pipewire = "" · line 33

Quoted 8 lines

index f3bdfba4acf..1a3399bc5e6 100644

meta/conf/distro/include/time64.inc +0 -0
@@ -30,10 +30,16 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
 
 

-INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64"

meta/conf/distro/include/time64.inc GLIBC_64BIT_TIME_FLAGS:pn-pipewire = "" · line 34

Quoted 1 line
meta/conf/distro/include/time64.inc +0 -1
-INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64 prctl

stat64 clock_gettime"

meta/conf/distro/include/time64.inc GLIBC_64BIT_TIME_FLAGS:pn-pipewire = "" · line 35

Quoted 1 line
meta/conf/distro/include/time64.inc +0 -1
-INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl lstat64

setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r"

meta/conf/distro/include/time64.inc GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""

Quoted 3 lines
meta/conf/distro/include/time64.inc +0 -3
-
-# libpulsedsp.so is a preload-library that hooks libc functions
-INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] =

"setsockopt fcntl"

Quoted 17 lines
meta/conf/distro/include/time64.inc +12 -1
+INSANE_SKIP:append:pn-cargo = " 32bit-time"
+INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
+INSANE_SKIP:append:pn-glibc = " 32bit-time"
+INSANE_SKIP:append:pn-glibc-tests = " 32bit-time"
+INSANE_SKIP:append:pn-librsvg = " 32bit-time"
+INSANE_SKIP:append:pn-libstd-rs = " 32bit-time"
+INSANE_SKIP:append:pn-pulseaudio = " 32bit-time"
+INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time"
+INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time"
+INSANE_SKIP:append:pn-rust = " 32bit-time"
+INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time"
+INSANE_SKIP:append:pn-strace = " 32bit-time"
 
--

2.30.2

Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#180428):

https://lists.openembedded.org/g/openembedded-core/message/180428

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/98511412/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

#27 lore raw

Re: [OE-core] [PATCH 10/11] insane.bbclass: simplify exceptions for 32 bit time API check

https://errors.yoctoproject.org/Errors/Build/163415/

Quoted 95 lines · Alexander Kanavin

Can I see the error please?

Alex

Quoted 89 lines · Khem Raj

its still triggering as error.

Quoted 84 lines · Alexander Kanavin

Existing implementation required to list both specific problematic apis, and files that use them: neither is necessary as both are seen in package_qa error messages, and can cause excessive amount of exception lines, if there are too many files, or they are installed in arch-specific locations. Also, the value of INSANE_SKIP should be the test that needs to be skipped, and in this case it wasn't.

Also, all problematic recipes are now correctly listed.

---
 meta/classes-global/insane.bbclass  | 14 +++-----------
 meta/conf/distro/include/time64.inc | 18 ++++++++++++------
 2 files changed, 15 insertions(+), 17 deletions(-)
meta/classes-global/insane.bbclass +3 -11
index ee34d5208d1..8788f58fc5b 100644
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
             # At this point, any symbol information is stripped into the debug
             # package, so that is the only place we will find them.
             elfpath = elfpath.replace('.debug/', '')
-            allowed = (
-                d.getVarFlag(
-                    'INSANE_SKIP:' + d.getVar('PN'), elfpath.replace('/', '_')
-                ) or ''
-            ).split()
-            usedapis -= set(allowed)
-            if usedapis:
+            allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or '').split()
+            if not allowed:
                 msgformat = elfpath + " uses 32-bit api '%s'"
                 for sym in usedapis:
                     oe.qa.add_message(messages, '32bit-time', msgformat % sym)
                 oe.qa.add_message(
                     messages, '32bit-time',
-                    'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
-                        d.getVar('PN'), elfpath.replace('/', '_'),
-                        ' '.join(usedapis)
-                    )
+                    'Suppress with INSANE_SKIP = "32bit-time"'
                 )
 
 # Check license variables
meta/conf/distro/include/time64.inc +12 -7
index f3bdfba4acf..1a3399bc5e6 100644
@@ -30,10 +30,16 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
 
-INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64"
-INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64 prctl stat64 clock_gettime"
-INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl lstat64 setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r"
-
-# libpulsedsp.so is a preload-library that hooks libc functions
-INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] = "setsockopt fcntl"
+INSANE_SKIP:append:pn-cargo = " 32bit-time"
+INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
+INSANE_SKIP:append:pn-glibc = " 32bit-time"
+INSANE_SKIP:append:pn-glibc-tests = " 32bit-time"
+INSANE_SKIP:append:pn-librsvg = " 32bit-time"
+INSANE_SKIP:append:pn-libstd-rs = " 32bit-time"
+INSANE_SKIP:append:pn-pulseaudio = " 32bit-time"
+INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time"
+INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time"
+INSANE_SKIP:append:pn-rust = " 32bit-time"
+INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time"
+INSANE_SKIP:append:pn-strace = " 32bit-time"
 
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180428): https://lists.openembedded.org/g/openembedded-core/message/180428
Mute This Topic: https://lists.openembedded.org/mt/98511412/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#28 lore raw

Re: [OE-core] [PATCH 10/11] insane.bbclass: simplify exceptions for 32 bit time API check

This looks like a build with v1 version of the patchset, and not v2. Pseudo has been specifically excluded from the qa check in v2 for instance.

Alex

Quoted 100 lines · Khem Raj

https://errors.yoctoproject.org/Errors/Build/163415/

Quoted 95 lines · Alexander Kanavin

Can I see the error please?

Alex

Quoted 89 lines · Khem Raj

its still triggering as error.

Quoted 84 lines · Alexander Kanavin

Existing implementation required to list both specific problematic apis, and files that use them: neither is necessary as both are seen in package_qa error messages, and can cause excessive amount of exception lines, if there are too many files, or they are installed in arch-specific locations. Also, the value of INSANE_SKIP should be the test that needs to be skipped, and in this case it wasn't.

Also, all problematic recipes are now correctly listed.

---
 meta/classes-global/insane.bbclass  | 14 +++-----------
 meta/conf/distro/include/time64.inc | 18 ++++++++++++------
 2 files changed, 15 insertions(+), 17 deletions(-)
meta/classes-global/insane.bbclass +3 -11
index ee34d5208d1..8788f58fc5b 100644
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
             # At this point, any symbol information is stripped into the debug
             # package, so that is the only place we will find them.
             elfpath = elfpath.replace('.debug/', '')
-            allowed = (
-                d.getVarFlag(
-                    'INSANE_SKIP:' + d.getVar('PN'), elfpath.replace('/', '_')
-                ) or ''
-            ).split()
-            usedapis -= set(allowed)
-            if usedapis:
+            allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or '').split()
+            if not allowed:
                 msgformat = elfpath + " uses 32-bit api '%s'"
                 for sym in usedapis:
                     oe.qa.add_message(messages, '32bit-time', msgformat % sym)
                 oe.qa.add_message(
                     messages, '32bit-time',
-                    'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
-                        d.getVar('PN'), elfpath.replace('/', '_'),
-                        ' '.join(usedapis)
-                    )
+                    'Suppress with INSANE_SKIP = "32bit-time"'
                 )
 
 # Check license variables
meta/conf/distro/include/time64.inc +12 -7
index f3bdfba4acf..1a3399bc5e6 100644
@@ -30,10 +30,16 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
 
-INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64"
-INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64 prctl stat64 clock_gettime"
-INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl lstat64 setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r"
-
-# libpulsedsp.so is a preload-library that hooks libc functions
-INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] = "setsockopt fcntl"
+INSANE_SKIP:append:pn-cargo = " 32bit-time"
+INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
+INSANE_SKIP:append:pn-glibc = " 32bit-time"
+INSANE_SKIP:append:pn-glibc-tests = " 32bit-time"
+INSANE_SKIP:append:pn-librsvg = " 32bit-time"
+INSANE_SKIP:append:pn-libstd-rs = " 32bit-time"
+INSANE_SKIP:append:pn-pulseaudio = " 32bit-time"
+INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time"
+INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time"
+INSANE_SKIP:append:pn-rust = " 32bit-time"
+INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time"
+INSANE_SKIP:append:pn-strace = " 32bit-time"
 
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180428): https://lists.openembedded.org/g/openembedded-core/message/180428
Mute This Topic: https://lists.openembedded.org/mt/98511412/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#29 lore raw

Re: [OE-core] [PATCH 10/11] insane.bbclass: simplify exceptions for 32 bit time API check

here is latest - https://errors.yoctoproject.org/Errors/Build/163426/
I have tree rebased on alex'es master-next here

https://git.yoctoproject.org/poky-contrib/log/?h=yoe/mut

Quoted 108 lines · Alexander Kanavin

This looks like a build with v1 version of the patchset, and not v2. Pseudo has been specifically excluded from the qa check in v2 for instance.

Alex

Quoted 100 lines · Khem Raj

https://errors.yoctoproject.org/Errors/Build/163415/

Quoted 95 lines · Alexander Kanavin

Can I see the error please?

Alex

Quoted 89 lines · Khem Raj

its still triggering as error.

Quoted 84 lines · Alexander Kanavin

Existing implementation required to list both specific problematic apis, and files that use them: neither is necessary as both are seen in package_qa error messages, and can cause excessive amount of exception lines, if there are too many files, or they are installed in arch-specific locations. Also, the value of INSANE_SKIP should be the test that needs to be skipped, and in this case it wasn't.

Also, all problematic recipes are now correctly listed.

---
 meta/classes-global/insane.bbclass  | 14 +++-----------
 meta/conf/distro/include/time64.inc | 18 ++++++++++++------
 2 files changed, 15 insertions(+), 17 deletions(-)
meta/classes-global/insane.bbclass +3 -11
index ee34d5208d1..8788f58fc5b 100644
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
             # At this point, any symbol information is stripped into the debug
             # package, so that is the only place we will find them.
             elfpath = elfpath.replace('.debug/', '')
-            allowed = (
-                d.getVarFlag(
-                    'INSANE_SKIP:' + d.getVar('PN'), elfpath.replace('/', '_')
-                ) or ''
-            ).split()
-            usedapis -= set(allowed)
-            if usedapis:
+            allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or '').split()
+            if not allowed:
                 msgformat = elfpath + " uses 32-bit api '%s'"
                 for sym in usedapis:
                     oe.qa.add_message(messages, '32bit-time', msgformat % sym)
                 oe.qa.add_message(
                     messages, '32bit-time',
-                    'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
-                        d.getVar('PN'), elfpath.replace('/', '_'),
-                        ' '.join(usedapis)
-                    )
+                    'Suppress with INSANE_SKIP = "32bit-time"'
                 )
 
 # Check license variables
meta/conf/distro/include/time64.inc +12 -7
index f3bdfba4acf..1a3399bc5e6 100644
@@ -30,10 +30,16 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
 
-INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64"
-INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64 prctl stat64 clock_gettime"
-INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl lstat64 setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r"
-
-# libpulsedsp.so is a preload-library that hooks libc functions
-INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] = "setsockopt fcntl"
+INSANE_SKIP:append:pn-cargo = " 32bit-time"
+INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
+INSANE_SKIP:append:pn-glibc = " 32bit-time"
+INSANE_SKIP:append:pn-glibc-tests = " 32bit-time"
+INSANE_SKIP:append:pn-librsvg = " 32bit-time"
+INSANE_SKIP:append:pn-libstd-rs = " 32bit-time"
+INSANE_SKIP:append:pn-pulseaudio = " 32bit-time"
+INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time"
+INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time"
+INSANE_SKIP:append:pn-rust = " 32bit-time"
+INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time"
+INSANE_SKIP:append:pn-strace = " 32bit-time"
 
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180428): https://lists.openembedded.org/g/openembedded-core/message/180428
Mute This Topic: https://lists.openembedded.org/mt/98511412/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#30 lore raw

Re: [OE-core] [PATCH 10/11] insane.bbclass: simplify exceptions for 32 bit time API check

So how would I replicate these? What build is actually being run?

Alex

Quoted 141 lines · Khem Raj

here is latest - https://errors.yoctoproject.org/Errors/Build/163426/
I have tree rebased on alex'es master-next here

https://git.yoctoproject.org/poky-contrib/log/?h=yoe/mut

Quoted 26 lines · Alexander Kanavin

This looks like a build with v1 version of the patchset, and not v2. Pseudo has been specifically excluded from the qa check in v2 for instance.

Alex

Quoted 18 lines · Khem Raj

https://errors.yoctoproject.org/Errors/Build/163415/

Quoted 13 lines · Alexander Kanavin

Can I see the error please?

Alex

Quoted 7 lines · Khem Raj

its still triggering as error.

Quoted 2 lines · Alexander Kanavin

Existing implementation required to list both specific

problematic apis, and files that

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

use them: neither is necessary as both are seen in package_qa

error messages, and

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

can cause excessive amount of exception lines, if there are too

many files, or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

they are installed in arch-specific locations. Also, the value of

INSANE_SKIP

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

should be the test that needs to be skipped, and in this case it

wasn't.

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Review

Quoted 10 lines

Also, all problematic recipes are now correctly listed.

---
 meta/classes-global/insane.bbclass  | 14 +++-----------
 meta/conf/distro/include/time64.inc | 18 ++++++++++++------
 2 files changed, 15 insertions(+), 17 deletions(-)
(quoted diff) +0 -0

b/meta/classes-global/insane.bbclass

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename,

Quoted 4 lines

index ee34d5208d1..8788f58fc5b 100644

meta/classes-global/insane.bbclass +0 -0
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename,

d, elf, messages):

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, · line 617

Quoted 1 line
meta/classes-global/insane.bbclass +0 -0
             # At this point, any symbol information is stripped

into the debug

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, · line 618

Quoted 1 line
meta/classes-global/insane.bbclass +0 -0
             # package, so that is the only place we will find

them.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, d, elf, messages):

Quoted 4 lines
meta/classes-global/insane.bbclass +0 -3
             elfpath = elfpath.replace('.debug/', '')
-            allowed = (
-                d.getVarFlag(
-                    'INSANE_SKIP:' + d.getVar('PN'),

elfpath.replace('/', '_')

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, d, elf, messages):

Quoted 5 lines
meta/classes-global/insane.bbclass +1 -4
-                ) or ''
-            ).split()
-            usedapis -= set(allowed)
-            if usedapis:
+            allowed = "32bit-time" in (d.getVar('INSANE_SKIP')

or '').split()

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, d, elf, messages):

Quoted 4 lines
meta/classes-global/insane.bbclass +1 -0
+            if not allowed:
                 msgformat = elfpath + " uses 32-bit api '%s'"
                 for sym in usedapis:
                     oe.qa.add_message(messages, '32bit-time',

msgformat % sym)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

meta/classes-global/insane.bbclass def check_32bit_symbols(path, packagename, d, elf, messages):

Quoted 4 lines
meta/classes-global/insane.bbclass +0 -2
                 oe.qa.add_message(
                     messages, '32bit-time',
-                    'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
-                        d.getVar('PN'), elfpath.replace('/',

'_'),

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Review

Quoted 7 lines
meta/classes-global/insane.bbclass +1 -2
-                        ' '.join(usedapis)
-                    )
+                    'Suppress with INSANE_SKIP = "32bit-time"'
                 )
 
 # Check license variables
(quoted diff) +0 -0

b/meta/conf/distro/include/time64.inc

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta/conf/distro/include/time64.inc GLIBC_64BIT_TIME_FLAGS:pn-pipewire = "" · line 33

Quoted 8 lines

index f3bdfba4acf..1a3399bc5e6 100644

meta/conf/distro/include/time64.inc +0 -0
@@ -30,10 +30,16 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
 
 

-INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64"

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

meta/conf/distro/include/time64.inc GLIBC_64BIT_TIME_FLAGS:pn-pipewire = "" · line 34

Quoted 1 line
meta/conf/distro/include/time64.inc +0 -1
-INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64

prctl stat64 clock_gettime"

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

meta/conf/distro/include/time64.inc GLIBC_64BIT_TIME_FLAGS:pn-pipewire = "" · line 35

Quoted 1 line
meta/conf/distro/include/time64.inc +0 -1
-INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl

lstat64 setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r"

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

meta/conf/distro/include/time64.inc GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""

Quoted 3 lines
meta/conf/distro/include/time64.inc +0 -3
-
-# libpulsedsp.so is a preload-library that hooks libc functions
-INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] =

"setsockopt fcntl"

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
meta/conf/distro/include/time64.inc +12 -0
+INSANE_SKIP:append:pn-cargo = " 32bit-time"
+INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
+INSANE_SKIP:append:pn-glibc = " 32bit-time"
+INSANE_SKIP:append:pn-glibc-tests = " 32bit-time"
+INSANE_SKIP:append:pn-librsvg = " 32bit-time"
+INSANE_SKIP:append:pn-libstd-rs = " 32bit-time"
+INSANE_SKIP:append:pn-pulseaudio = " 32bit-time"
+INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time"
+INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time"
+INSANE_SKIP:append:pn-rust = " 32bit-time"
+INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time"
+INSANE_SKIP:append:pn-strace = " 32bit-time"
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta/conf/distro/include/time64.inc +0 -1
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#180428):

https://lists.openembedded.org/g/openembedded-core/message/180428

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Mute This Topic:

https://lists.openembedded.org/mt/98511412/1997914

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Group Owner: [email protected] Unsubscribe:

https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#32 lore raw

Re: [OE-core] [PATCH 10/11] insane.bbclass: simplify exceptions for 32 bit time API check

For example, pseudo is still there even though it's explicitly excluded from the check in the new version of the patchset. Something doesn't compute here.

Alex

Quoted 126 lines · Alexander Kanavin via lists.openembedded.org

So how would I replicate these? What build is actually being run?

Alex

Quoted 104 lines · Khem Raj

here is latest - https://errors.yoctoproject.org/Errors/Build/163426/
I have tree rebased on alex'es master-next here

https://git.yoctoproject.org/poky-contrib/log/?h=yoe/mut

Quoted 96 lines · Alexander Kanavin

This looks like a build with v1 version of the patchset, and not v2. Pseudo has been specifically excluded from the qa check in v2 for instance.

Alex

Quoted 88 lines · Khem Raj

https://errors.yoctoproject.org/Errors/Build/163415/

Quoted 83 lines · Alexander Kanavin

Can I see the error please?

Alex

Quoted 77 lines · Khem Raj

its still triggering as error.

Quoted 72 lines · Alexander Kanavin

Existing implementation required to list both specific problematic apis, and files that use them: neither is necessary as both are seen in package_qa error messages, and can cause excessive amount of exception lines, if there are too many files, or they are installed in arch-specific locations. Also, the value of INSANE_SKIP should be the test that needs to be skipped, and in this case it wasn't.

Also, all problematic recipes are now correctly listed.

---
 meta/classes-global/insane.bbclass  | 14 +++-----------
 meta/conf/distro/include/time64.inc | 18 ++++++++++++------
 2 files changed, 15 insertions(+), 17 deletions(-)
meta/classes-global/insane.bbclass +3 -11
index ee34d5208d1..8788f58fc5b 100644
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
             # At this point, any symbol information is stripped into the debug
             # package, so that is the only place we will find them.
             elfpath = elfpath.replace('.debug/', '')
-            allowed = (
-                d.getVarFlag(
-                    'INSANE_SKIP:' + d.getVar('PN'), elfpath.replace('/', '_')
-                ) or ''
-            ).split()
-            usedapis -= set(allowed)
-            if usedapis:
+            allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or '').split()
+            if not allowed:
                 msgformat = elfpath + " uses 32-bit api '%s'"
                 for sym in usedapis:
                     oe.qa.add_message(messages, '32bit-time', msgformat % sym)
                 oe.qa.add_message(
                     messages, '32bit-time',
-                    'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
-                        d.getVar('PN'), elfpath.replace('/', '_'),
-                        ' '.join(usedapis)
-                    )
+                    'Suppress with INSANE_SKIP = "32bit-time"'
                 )
 
 # Check license variables
meta/conf/distro/include/time64.inc +12 -6
index f3bdfba4acf..1a3399bc5e6 100644
@@ -30,10 +30,16 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
 
-INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64"
-INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64 prctl stat64 clock_gettime"
-INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl lstat64 setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r"
-
-# libpulsedsp.so is a preload-library that hooks libc functions
-INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] = "setsockopt fcntl"
+INSANE_SKIP:append:pn-cargo = " 32bit-time"
+INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
+INSANE_SKIP:append:pn-glibc = " 32bit-time"
+INSANE_SKIP:append:pn-glibc-tests = " 32bit-time"
+INSANE_SKIP:append:pn-librsvg = " 32bit-time"
+INSANE_SKIP:append:pn-libstd-rs = " 32bit-time"
+INSANE_SKIP:append:pn-pulseaudio = " 32bit-time"
+INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time"
+INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time"
+INSANE_SKIP:append:pn-rust = " 32bit-time"
+INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time"
+INSANE_SKIP:append:pn-strace = " 32bit-time"
 
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--
2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180583): https://lists.openembedded.org/g/openembedded-core/message/180583
Mute This Topic: https://lists.openembedded.org/mt/98511412/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#33 lore raw

Re: [OE-core] [PATCH 10/11] insane.bbclass: simplify exceptions for 32 bit time API check

Quoted 4 lines · Alexander Kanavin

For example, pseudo is still there even though it's explicitly excluded from the check in the new version of the patchset. Something doesn't compute here.

yeah, it was a blip on my automation. poky repository had not been pruned for many months, and somehow it was failing to rebase due to diverged heads
so project was not updating the branch to latest yoe/mut. I have fixed it now and lets see what happens.

Quoted 132 lines

Alex

Quoted 126 lines · Alexander Kanavin via lists.openembedded.org

So how would I replicate these? What build is actually being run?

Alex

Quoted 104 lines · Khem Raj

here is latest - https://errors.yoctoproject.org/Errors/Build/163426/
I have tree rebased on alex'es master-next here

https://git.yoctoproject.org/poky-contrib/log/?h=yoe/mut

Quoted 96 lines · Alexander Kanavin

This looks like a build with v1 version of the patchset, and not v2. Pseudo has been specifically excluded from the qa check in v2 for instance.

Alex

Quoted 88 lines · Khem Raj

https://errors.yoctoproject.org/Errors/Build/163415/

Quoted 83 lines · Alexander Kanavin

Can I see the error please?

Alex

Quoted 77 lines · Khem Raj

its still triggering as error.

Quoted 72 lines · Alexander Kanavin

Existing implementation required to list both specific problematic apis, and files that use them: neither is necessary as both are seen in package_qa error messages, and can cause excessive amount of exception lines, if there are too many files, or they are installed in arch-specific locations. Also, the value of INSANE_SKIP should be the test that needs to be skipped, and in this case it wasn't.

Also, all problematic recipes are now correctly listed.

---
 meta/classes-global/insane.bbclass  | 14 +++-----------
 meta/conf/distro/include/time64.inc | 18 ++++++++++++------
 2 files changed, 15 insertions(+), 17 deletions(-)
meta/classes-global/insane.bbclass +3 -11
index ee34d5208d1..8788f58fc5b 100644
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
             # At this point, any symbol information is stripped into the debug
             # package, so that is the only place we will find them.
             elfpath = elfpath.replace('.debug/', '')
-            allowed = (
-                d.getVarFlag(
-                    'INSANE_SKIP:' + d.getVar('PN'), elfpath.replace('/', '_')
-                ) or ''
-            ).split()
-            usedapis -= set(allowed)
-            if usedapis:
+            allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or '').split()
+            if not allowed:
                 msgformat = elfpath + " uses 32-bit api '%s'"
                 for sym in usedapis:
                     oe.qa.add_message(messages, '32bit-time', msgformat % sym)
                 oe.qa.add_message(
                     messages, '32bit-time',
-                    'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
-                        d.getVar('PN'), elfpath.replace('/', '_'),
-                        ' '.join(usedapis)
-                    )
+                    'Suppress with INSANE_SKIP = "32bit-time"'
                 )
 
 # Check license variables
meta/conf/distro/include/time64.inc +12 -6
index f3bdfba4acf..1a3399bc5e6 100644
@@ -30,10 +30,16 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = ""
 GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = ""
 GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = ""
 
-INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64"
-INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64 prctl stat64 clock_gettime"
-INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl lstat64 setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r"
-
-# libpulsedsp.so is a preload-library that hooks libc functions
-INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] = "setsockopt fcntl"
+INSANE_SKIP:append:pn-cargo = " 32bit-time"
+INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time"
+INSANE_SKIP:append:pn-glibc = " 32bit-time"
+INSANE_SKIP:append:pn-glibc-tests = " 32bit-time"
+INSANE_SKIP:append:pn-librsvg = " 32bit-time"
+INSANE_SKIP:append:pn-libstd-rs = " 32bit-time"
+INSANE_SKIP:append:pn-pulseaudio = " 32bit-time"
+INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time"
+INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time"
+INSANE_SKIP:append:pn-rust = " 32bit-time"
+INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time"
+INSANE_SKIP:append:pn-strace = " 32bit-time"
 
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--
2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180583): https://lists.openembedded.org/g/openembedded-core/message/180583
Mute This Topic: https://lists.openembedded.org/mt/98511412/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#34 lore raw

PATCH 11/11 insane.bbclass: enable 32 bit time API check on affected architectures

In reply to Alexander Kanavin
---
 meta/classes-global/insane.bbclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta/classes-global/insane.bbclass +6 -1
index 8788f58fc5b..38126d89a58 100644
@@ -44,7 +44,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
             already-stripped installed-vs-shipped ldflags compile-host-path \
             install-host-path pn-overrides unknown-configure-option \
             useless-rpaths rpaths staticdev empty-dirs \
-            patch-fuzz patch-status-core\
+            patch-fuzz patch-status-core 32bit-time \
             "
 # Add usrmerge QA check based on distro feature
 ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}"
@@ -512,6 +512,11 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
     """
     Check that ELF files do not use any 32 bit time APIs from glibc.
     """
+    thirtytwo_bit_time_archs = set(('arm','armeb','mipsarcho32','powerpc','x86'))
+    overrides = set(d.getVar('OVERRIDES').split(':'))
+    if not(thirtytwo_bit_time_archs & overrides):
+        return
+
     import re
     # This list is manually constructed by searching the image folder of the
     # glibc recipe for __USE_TIME_BITS64.  There is no good way to do this
Signature · 1 line
2.30.2
#35 lore raw

Re: [OE-core] [PATCH 11/11] insane.bbclass: enable 32 bit time API check on affected architectures

Hi Alex,

Quoted 10 lines · On Wed, 26 Apr 2023 11:50:36 +0200 "Alexander Kanavin"…
---
 meta/classes-global/insane.bbclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta/classes-global/insane.bbclass +0 -0
index 8788f58fc5b..38126d89a58 100644

meta/classes-global/insane.bbclass ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ · line 47

Quoted 5 lines
meta/classes-global/insane.bbclass +1 -1
@@ -44,7 +44,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
             already-stripped installed-vs-shipped ldflags compile-host-path \
             install-host-path pn-overrides unknown-configure-option \
             useless-rpaths rpaths staticdev empty-dirs \
-            patch-fuzz patch-status-core\
+            patch-fuzz patch-status-core 32bit-time \

This line conflicted with another patch you sent earlier and which is on my branch. You may want to double check whether lucaceresoli/master-next is still consistent with what you had in mind.

Best regards,
Luca

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#36 lore raw

Re: [OE-core] [PATCH 11/11] insane.bbclass: enable 32 bit time API check on affected architectures

Quoted 9 lines · Luca Ceresoli

meta/classes-global/insane.bbclass ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ · line 47

Quoted 5 lines
             already-stripped installed-vs-shipped ldflags compile-host-path \
             install-host-path pn-overrides unknown-configure-option \
             useless-rpaths rpaths staticdev empty-dirs \
meta/classes-global/insane.bbclass +1 -1
-            patch-fuzz patch-status-core\
+            patch-fuzz patch-status-core 32bit-time \

This line conflicted with another patch you sent earlier and which is on my branch. You may want to double check whether lucaceresoli/master-next is still consistent with what you had in mind.

The patchsets independently add entries to this list, so yes the correct resolution is to add them both in any order.

I'll send a newer version of the other patchset now (with recipe metadata tests).

Alex

#37 lore raw

Re: [OE-core] [PATCH 11/11] insane.bbclass: enable 32 bit time API check on affected architectures

In reply to Alexander Kanavin

I see this error triggering for meta-openembedded builds

qemuarm - https://errors.yoctoproject.org/Errors/Build/163136/

Quoted 43 lines · Alexander Kanavin
---
 meta/classes-global/insane.bbclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta/classes-global/insane.bbclass +6 -2
index 8788f58fc5b..38126d89a58 100644
@@ -44,7 +44,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
             already-stripped installed-vs-shipped ldflags compile-host-path \
             install-host-path pn-overrides unknown-configure-option \
             useless-rpaths rpaths staticdev empty-dirs \
-            patch-fuzz patch-status-core\
+            patch-fuzz patch-status-core 32bit-time \
             "
 # Add usrmerge QA check based on distro feature
 ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}"
@@ -512,6 +512,11 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
     """
     Check that ELF files do not use any 32 bit time APIs from glibc.
     """
+    thirtytwo_bit_time_archs = set(('arm','armeb','mipsarcho32','powerpc','x86'))
+    overrides = set(d.getVar('OVERRIDES').split(':'))
+    if not(thirtytwo_bit_time_archs & overrides):
+        return
+
     import re
     # This list is manually constructed by searching the image folder of the
     # glibc recipe for __USE_TIME_BITS64.  There is no good way to do this
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180429): https://lists.openembedded.org/g/openembedded-core/message/180429
Mute This Topic: https://lists.openembedded.org/mt/98511413/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#38 lore raw

Re: [OE-core] [PATCH 11/11] insane.bbclass: enable 32 bit time API check on affected architectures

They all need INSANE_SKIP = "32bit-time".

I'll send patches.

Alex

Quoted 50 lines · Khem Raj

I see this error triggering for meta-openembedded builds

qemuarm - https://errors.yoctoproject.org/Errors/Build/163136/

Quoted 43 lines · Alexander Kanavin
---
 meta/classes-global/insane.bbclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta/classes-global/insane.bbclass +6 -2
index 8788f58fc5b..38126d89a58 100644
@@ -44,7 +44,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
             already-stripped installed-vs-shipped ldflags compile-host-path \
             install-host-path pn-overrides unknown-configure-option \
             useless-rpaths rpaths staticdev empty-dirs \
-            patch-fuzz patch-status-core\
+            patch-fuzz patch-status-core 32bit-time \
             "
 # Add usrmerge QA check based on distro feature
 ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}"
@@ -512,6 +512,11 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
     """
     Check that ELF files do not use any 32 bit time APIs from glibc.
     """
+    thirtytwo_bit_time_archs = set(('arm','armeb','mipsarcho32','powerpc','x86'))
+    overrides = set(d.getVar('OVERRIDES').split(':'))
+    if not(thirtytwo_bit_time_archs & overrides):
+        return
+
     import re
     # This list is manually constructed by searching the image folder of the
     # glibc recipe for __USE_TIME_BITS64.  There is no good way to do this
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180429): https://lists.openembedded.org/g/openembedded-core/message/180429
Mute This Topic: https://lists.openembedded.org/mt/98511413/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#40 lore raw

Re: [OE-core] [PATCH 11/11] insane.bbclass: enable 32 bit time API check on affected architectures

Come to think of it, let's downgrade this check to WARN_QA. It's not a critical error, not yet :)

Alex

Quoted 61 lines · Alexander Kanavin via lists.openembedded.org

They all need INSANE_SKIP = "32bit-time".

I'll send patches.

Alex

Quoted 36 lines · Khem Raj

I see this error triggering for meta-openembedded builds

qemuarm - https://errors.yoctoproject.org/Errors/Build/163136/

Quoted 29 lines · Alexander Kanavin
---
 meta/classes-global/insane.bbclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta/classes-global/insane.bbclass +6 -1
index 8788f58fc5b..38126d89a58 100644
@@ -44,7 +44,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
             already-stripped installed-vs-shipped ldflags compile-host-path \
             install-host-path pn-overrides unknown-configure-option \
             useless-rpaths rpaths staticdev empty-dirs \
-            patch-fuzz patch-status-core\
+            patch-fuzz patch-status-core 32bit-time \
             "
 # Add usrmerge QA check based on distro feature
 ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}"
@@ -512,6 +512,11 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
     """
     Check that ELF files do not use any 32 bit time APIs from glibc.
     """
+    thirtytwo_bit_time_archs = set(('arm','armeb','mipsarcho32','powerpc','x86'))
+    overrides = set(d.getVar('OVERRIDES').split(':'))
+    if not(thirtytwo_bit_time_archs & overrides):
+        return
+
     import re
Quoted 8 lines
Quoted 8 lines
meta/classes-global/insane.bbclass +0 -1
     # This list is manually constructed by searching the image folder of the
     # glibc recipe for __USE_TIME_BITS64.  There is no good way to do this
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180508): https://lists.openembedded.org/g/openembedded-core/message/180508
Mute This Topic: https://lists.openembedded.org/mt/98511413/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-