Re: [OE-core] [PATCH v6] Rust Oe-Selftest implementation

Khem Raj
2022-06-29T16:20:35Z

you want to check the rust/llvm depchain and see if it pokes at host
for zlib and if it does then make it point to right zlib in native
sysroot if enabled or otherwise forcibly keep the
support disabled.

On Wed, Jun 29, 2022 at 4:18 AM Pgowda <pgowda.cve@gmail.com> wrote:
>
> Hi Richard,
>
> Thanks very much for pointing that out.
> I could reproduce the issue on the docker host that does not contain zlib-devel.
> Trying to analyse the issue on dependency of zlib.
> It would be helpful if you could give some pointers on zlib dependency
> as it would have been seen in other recipes as well.
> It would help us in fixing the issue appropriately.
>
> Thanks,
> Pgowda
>
> On Mon, Jun 6, 2022 at 2:21 PM Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> >
> > On Fri, 2022-06-03 at 18:37 +0530, pgowda cve wrote:
> > > Hi Luca,
> > >
> > > Regarding the issue
> > > https://bugzilla.yoctoproject.org/show_bug.cgi?id=14818
> > >
> > > I ran the Oe-Selftest for Rust as well as completed packages and did
> > > not come across any issues.
> > > a@yow-fedora-builder1 build]$ uname -a
> > > Linux yow-fedora-builder1 5.16.18-200.fc35.x86_64 #1 SMP PREEMPT Mon
> > > Mar 28 14:10:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
> > >
> > > The log of tests can be seen as follows:-
> > > The command used to run the test was as mentioned in the Bugzilla.
> > > oe-selftest -a -t machine -t toolchain-system -j 15
> > >
> > > test_libatomic: PASSED (113.76s)
> > > 2022-06-03 08:39:19,084 - oe-selftest - INFO - RESULTS -
> > > gcc.GccLibGompSelfTestSystemEmulated.test_libgomp: PASSED (637.21s)
> > > 2022-06-03 08:39:19,084 - oe-selftest - INFO - RESULTS -
> > > gcc.GccLibItmSelfTestSystemEmulated.test_libitm: PASSED (133.31s)
> > > 2022-06-03 08:39:19,084 - oe-selftest - INFO - RESULTS -
> > > gcc.GccLibStdCxxSelfTestSystemEmulated.test_libstdcxx: PASSED
> > > (2546.63s)
> > > 2022-06-03 08:39:19,084 - oe-selftest - INFO - RESULTS -
> > > gcc.GxxCrossSelfTestSystemEmulated.test_cross_gxx: PASSED (744.56s)
> > > 2022-06-03 08:39:19,084 - oe-selftest - INFO - RESULTS -
> > > glibc.GlibcSelfTestSystemEmulated.test_glibc: PASSED (1101.43s)
> > > 2022-06-03 08:39:19,085 - oe-selftest - INFO - RESULTS -
> > > meta_ide.MetaIDE.test_meta_ide_can_build_cpio_project: PASSED (54.33s)
> > > 2022-06-03 08:39:19,085 - oe-selftest - INFO - RESULTS -
> > > meta_ide.MetaIDE.test_meta_ide_can_compile_c_program: PASSED (0.19s)
> > > 2022-06-03 08:39:19,085 - oe-selftest - INFO - RESULTS -
> > > meta_ide.MetaIDE.test_meta_ide_had_installed_meta_ide_support: PASSED
> > > (0.01s)
> > > 2022-06-03 08:39:19,085 - oe-selftest - INFO - RESULTS -
> > > runqemu.QemuTest.test_qemu_can_shutdown: PASSED (45.98s)
> > > 2022-06-03 08:39:19,085 - oe-selftest - INFO - RESULTS -
> > > rust.RustSelfTestSystemEmulated.test_rust: PASSED (8381.70s)
> > > 2022-06-03 08:39:19,085 - oe-selftest - INFO - RESULTS -
> > > gcc.GccLibSspSelfTestSystemEmulated.test_libssp: SKIPPED (3.92s)
> > > 2022-06-03 08:39:22,336 - oe-selftest - INFO - SUMMARY:
> > > 2022-06-03 08:39:22,336 - oe-selftest - INFO - oe-selftest () - Ran 16
> > > tests in 19613.479s
> > > 2022-06-03 08:39:22,336 - oe-selftest - INFO - oe-selftest - OK - All
> > > required tests passed (successes=15, skipped=1, failures=0, errors=0)
> > >
> > > I also ran the Rust Oe-Selftest individually and did not find any issues.
> > > Can you please share the environment file so that I can reproduce and
> > > fix the issue?
> >
> > There isn't any magic environment we can share here I'm afraid. We
> > don't know why it happens on some autobuilder workers and not on
> > others, this is something we need to investigate and fix. This is one
> > of the challenges of these "intermittent" issues.
> >
> > The errors seem to relate to zlib so it may be worth looking at whether
> > host headers influence the rust build and those may be causing some
> > kind of determinism issue. You may have to build the binaries one a
> > system with the headers, then run them on a system without for example.
> >
> > Cheers,
> >
> > Richard
> >
> >
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#167369): https://lists.openembedded.org/g/openembedded-core/message/167369
> Mute This Topic: https://lists.openembedded.org/mt/91327291/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>