On Wed, Nov 9, 2022 at 4:23 PM Alexandre Belloni < [email protected]> wrote:
> On 09/11/2022 16:04:11-0500, Maxime Roussin-Bélanger wrote: > > Hi, (sorry for 2nd message Alex, forgot to cc the list) > > > > On Wed, Nov 9, 2022 at 3:48 PM Alexandre Belloni < > > [email protected]> wrote: > > > > > Hello, > > > > > > On 08/11/2022 22:04:44-0500, Maxime Roussin-Bélanger wrote: > > > > From: Maxime Roussin-Bélanger <[email protected]> > > > > > > > > llvm-config is copied from native to target sysroot, it shouldn't be > > > > allowed to use target shared libraries when it loads. > > > > > > > > Remove all runpath so it uses shared library from host system since > > > > native llvm-config is compiled with hosttools compiler. > > > > > > > > > > I believe this is the cause of: > > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/72/builds/6139/steps/32/logs/stdio > > > > > > The patch does fix that problem on my end. > > > > Well, it doesn't seem to be the cause but it doesn't fix it either... > I'm going to run it again using the same worker. > >From what I gathered when debugging this, llvm-config was loading shared libraries of the target sysroot because of runpath. When mesa is configuring with gallium it invokes llvm-config which can fail for illegal instructions because of shared libraries of the target sysroot. By removing runpath from the binary it should load libraries from thost where native llvm-config is built from. Max. > > > > > > > > > > > > I'm currently checking > > > > > > > Signed-off-by: Maxime Roussin-Bélanger < > [email protected] > > > > > > > > --- > > > > meta/recipes-graphics/mesa/mesa.inc | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git a/meta/recipes-graphics/mesa/mesa.inc > > > b/meta/recipes-graphics/mesa/mesa.inc > > > > index 67cfb4f6c1..abc2c3f4c4 100644 > > > > --- a/meta/recipes-graphics/mesa/mesa.inc > > > > +++ b/meta/recipes-graphics/mesa/mesa.inc > > > > @@ -61,6 +61,7 @@ do_configure:prepend () { > > > > if [ -e > ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} > > > ]; then > > > > cp > > > ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} > ${STAGING_BINDIR} > > > > cp ${STAGING_BINDIR_NATIVE}/llvm-config > ${STAGING_BINDIR} > > > > + chrpath -d ${STAGING_BINDIR}/llvm-config > > > > fi > > > > } > > > > > > > > -- > > > > 2.36.0 > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Alexandre Belloni, co-owner and COO, Bootlin > > > Embedded Linux and Kernel engineering > > > https://bootlin.com > > > > > > > > > > > > > -- > Alexandre Belloni, co-owner and COO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#173060): https://lists.openembedded.org/g/openembedded-core/message/173060 Mute This Topic: https://lists.openembedded.org/mt/94906155/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
