Skip to contentSkip to conversation

nativesdk-mesa do_configure fails with PACKAGECONFIG:append=" gallium gallium-llvm"

DISCUSSION [email protected] 3 participants 6 messages Apr 3, 2025 – Apr 11, 2025

lore
Share & tools
lore
#0 lore raw

Hi,

We're trying to enable gallium-llvm for mesa 22.2.3 build in our langdale based project.
(We're using Petalinux tooling but I don't think that's making a difference here - meta-xilinx does have a mesa_%.bbappend but it seems only concerned with mali/libmali)

The target build works fine, but if we try to run the nativesdk-mali build (as part of bitbake petalinux-image-minimal -c do_populate_sdk run by the petalinux tools) then it fails on the do_configure step with the following meson error:

| WARNING: Ignoring LLVM CMake dependency because dynamic was requested
| llvm-config found: YES (/home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/recipe-sysroot-native/usr/bin/llvm-config14.0.6) 14.0.6
| Run-time dependency LLVM (modules: bitwriter, core, engine, executionengine, instcombine, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines) found: NO (tried cmake and config-tool)
| Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)
| Building fallback subproject with default_library=shared
|
| ../mesa-22.2.3/meson.build:1782:2: ERROR: Neither a subproject directory nor a llvm.wrap file was found.
|
| A full log can be found at /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/build/meson-logs/meson-log.txt
| ERROR: meson failed
| WARNING: /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/temp/run.do_configure.3927848:173 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
|       #1: bbfatal_log, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/temp/run.do_configure.3927848, line 173
|       #2: meson_do_configure, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/temp/run.do_configure.3927848, line 162
|       #3: do_configure, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/temp/run.do_configure.3927848, line 148
|       #4: main, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/temp/run.do_configure.3927848, line 186

ERROR: Task (virtual:nativesdk:/home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/components/yocto/layers/poky/meta/recipes-graphics/mesa/mesa_22.2.3.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6558 tasks of which 6549 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
virtual:nativesdk:/home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/components/yocto/layers/poky/meta/recipes-graphics/mesa/mesa_22.2.3.bb:do_configure
Summary: There were 2 ERROR messages, returning a non-zero exit code.
ERROR: Failed to build project. Check the /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/build.log file for more details...

(It looks like someone had a similar error for target mesa build in a Mar 26 message but they haven't posted details to get any assistance yet).

As far as I can tell nativesdk-llvm14.0.6 and nativesdk-llvm are in the nativesdk-mesa recipe-sysroot providers and llvm-native and llvm14.0.6-native are in the nativesdk-mesa receipe-sysroot-native providers. I get a bit mixed up when dealing with native/nativesdk builds and the vairous sysroots and I have no idea how meson detects llvm and why it's failing here. The meson-log.txt doesn't seem provide any illumination (at least to my untrained eye).

Do you have any idea how I can get this build working? Are there any more debug options I can enable to work out what meson is looking for exactly and why it can't find it?

Best Regards,
Phil Dawson

#1 lore raw

I managed to reproduce this. I see the problem itself, but without looking much deeper don't know what is causing it, or why it is happening unfortunately...

There are people more familiar and experienced with deep llvm things, so I'm sharing this for them.

I used an empty build folder, with only checking out poky repo, langsdale branch (I imagine kirkstone would be the same, after the previous report, though I haven't tried this now explicitly) I only added gallium-llvm to the PACKAGECONFIG of mesa.
I ran the following command: "MACHINE=qemuarm64 bitbake nativesdk-mesa"

After the error:
1. llvm-config is present. Meson is trying to execute "llvm-config --shared-mode" - but it errors out. It throws a lot of errors about missing files:

llvm-config: error: missing:
/home/meeee/stuff/yocto/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-mesa/2_22.2.3-r0/recipe-sysroot-native/usr/lib/libLLVMDemangle.a

Note that it is looking for it in $RECIPE_SYSROOT_NATIVE

2. When I look in the WORKDIR, I can find the missing files, in $RECIPE_SYSROOT. This doesn't look correct at the first sight... Out of curiousity I checked the type of this file - it's for x86-64.

3. When I look in the sysroots-components folder, I found it in x86 sysroots-components/x86_64-nativesdk/nativesdk-llvm/ folder, which looks about right, thought it's not more than a guess.

Is it possible that somehow these files get staged in the wrong sysroot?

Quoted 89 lines · philip.dawson via lists.yoctoproject.org

Hi,

We're trying to enable gallium-llvm for mesa 22.2.3 build in our langdale based project.
(We're using Petalinux tooling but I don't think that's making a difference here - meta-xilinx does have a mesa_%.bbappend but it seems only concerned with mali/libmali)

The target build works fine, but if we try to run the nativesdk-mali build (as part of bitbake petalinux-image-minimal -c do_populate_sdk run by the petalinux tools) then it fails on the do_configure step with the following meson error:

| WARNING: Ignoring LLVM CMake dependency because dynamic was requested | llvm-config found: YES (/home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3- r0/recipe-sysroot-native/usr/bin/llvm-config14.0.6) 14.0.6
| Run-time dependency LLVM (modules: bitwriter, core, engine, executionengine, instcombine, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines) found: NO (tried cmake and config-tool) | Looking for a fallback subproject for the dependency llvm (modules:
bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)

| Building fallback subproject with default_library=shared
|
| ../mesa-22.2.3/meson.build:1782:2: ERROR: Neither a subproject

directory nor a llvm.wrap file was found.
|
| A full log can be found at /home/phil-wsl2-u2204/build/dgc219_nsg/ dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk- mesa/2_22.2.3-r0/build/meson-logs/meson-log.txt
| ERROR: meson failed
| WARNING: /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/ x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/temp/ run.do_configure.3927848:173 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
|       #1: bbfatal_log, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3- r0/temp/run.do_configure.3927848, line 173
|       #2: meson_do_configure, /home/phil-wsl2-u2204/build/dgc219_nsg/ dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk- mesa/2_22.2.3-r0/temp/run.do_configure.3927848, line 162
|       #3: do_configure, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3- r0/temp/run.do_configure.3927848, line 148
|       #4: main, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/ tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/ temp/run.do_configure.3927848, line 186
ERROR: Task (virtual:nativesdk:/home/phil-wsl2-u2204/build/dgc219_nsg/ dgc219/components/yocto/layers/poky/meta/recipes-graphics/mesa/ mesa_22.2.3.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6558 tasks of which 6549 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
  virtual:nativesdk:/home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ components/yocto/layers/poky/meta/recipes-graphics/mesa/ mesa_22.2.3.bb:do_configure
Summary: There were 2 ERROR messages, returning a non-zero exit code.
ERROR: Failed to build project. Check the /home/phil-wsl2-u2204/build/ dgc219_nsg/dgc219/build/build.log file for more details...


(It looks like someone had a similar error for target mesa build in a Mar 26 message but they haven't posted details to get any assistance yet).
As far as I can tell nativesdk-llvm14.0.6 and nativesdk-llvm are in the nativesdk-mesa recipe-sysroot providers and llvm-native and llvm14.0.6- native are in the nativesdk-mesa receipe-sysroot-native providers. I get a bit mixed up when dealing with native/nativesdk builds and the vairous sysroots and I have no idea how meson detects llvm and why it's failing here. The meson-log.txt doesn't seem provide any illumination (at least to my untrained eye).

Do you have any idea how I can get this build working? Are there any more debug options I can enable to work out what meson is looking for exactly and why it can't find it?

Best Regards,
Phil Dawson

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65087): https://lists.yoctoproject.org/g/yocto/message/65087
Mute This Topic: https://lists.yoctoproject.org/mt/112067781/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 27 lines · Gyorgy Sarvari via lists.yoctoproject.org

I managed to reproduce this. I see the problem itself, but without looking much deeper don't know what is causing it, or why it is happening unfortunately...

There are people more familiar and experienced with deep llvm things, so I'm sharing this for them.

I used an empty build folder, with only checking out poky repo, langsdale branch (I imagine kirkstone would be the same, after the previous report, though I haven't tried this now explicitly) I only added gallium-llvm to the PACKAGECONFIG of mesa.
I ran the following command: "MACHINE=qemuarm64 bitbake nativesdk-mesa"

After the error:
1. llvm-config is present. Meson is trying to execute "llvm-config --shared-mode" - but it errors out. It throws a lot of errors about missing files:

llvm-config: error: missing:
/home/meeee/stuff/yocto/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-mesa/2_22.2.3-r0/recipe-sysroot-native/usr/lib/libLLVMDemangle.a

Note that it is looking for it in $RECIPE_SYSROOT_NATIVE

2. When I look in the WORKDIR, I can find the missing files, in $RECIPE_SYSROOT. This doesn't look correct at the first sight... Out of curiousity I checked the type of this file - it's for x86-64.

Quoted 6 lines

3. When I look in the sysroots-components folder, I found it in x86 sysroots-components/x86_64-nativesdk/nativesdk-llvm/ folder, which looks about right, thought it's not more than a guess.

Is it possible that somehow these files get staged in the wrong sysroot?

I think nativesdk sysroot is where it should have looked into. My guess is either mesa's llvm detection logic needs to be looked into or perhaps llvm-config is not working correctly in nativesdk case.

Quoted 96 lines · philip.dawson via lists.yoctoproject.org
Quoted 73 lines

Hi,

We're trying to enable gallium-llvm for mesa 22.2.3 build in our langdale based project.
(We're using Petalinux tooling but I don't think that's making a difference here - meta-xilinx does have a mesa_%.bbappend but it seems only concerned with mali/libmali)

The target build works fine, but if we try to run the nativesdk-mali build (as part of bitbake petalinux-image-minimal -c do_populate_sdk run by the petalinux tools) then it fails on the do_configure step with the following meson error:

| WARNING: Ignoring LLVM CMake dependency because dynamic was requested | llvm-config found: YES (/home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3- r0/recipe-sysroot-native/usr/bin/llvm-config14.0.6) 14.0.6
| Run-time dependency LLVM (modules: bitwriter, core, engine, executionengine, instcombine, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines) found: NO (tried cmake and config-tool) | Looking for a fallback subproject for the dependency llvm (modules:
bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)

| Building fallback subproject with default_library=shared
|
| ../mesa-22.2.3/meson.build:1782:2: ERROR: Neither a subproject

directory nor a llvm.wrap file was found.
|
| A full log can be found at /home/phil-wsl2-u2204/build/dgc219_nsg/ dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk- mesa/2_22.2.3-r0/build/meson-logs/meson-log.txt
| ERROR: meson failed
| WARNING: /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/ x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/temp/ run.do_configure.3927848:173 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
|       #1: bbfatal_log, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3- r0/temp/run.do_configure.3927848, line 173
|       #2: meson_do_configure, /home/phil-wsl2-u2204/build/dgc219_nsg/ dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk- mesa/2_22.2.3-r0/temp/run.do_configure.3927848, line 162
|       #3: do_configure, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3- r0/temp/run.do_configure.3927848, line 148
|       #4: main, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/ tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/ temp/run.do_configure.3927848, line 186
ERROR: Task (virtual:nativesdk:/home/phil-wsl2-u2204/build/dgc219_nsg/ dgc219/components/yocto/layers/poky/meta/recipes-graphics/mesa/ mesa_22.2.3.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6558 tasks of which 6549 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
  virtual:nativesdk:/home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/
components/yocto/layers/poky/meta/recipes-graphics/mesa/ mesa_22.2.3.bb:do_configure
Summary: There were 2 ERROR messages, returning a non-zero exit code.
ERROR: Failed to build project. Check the /home/phil-wsl2-u2204/build/ dgc219_nsg/dgc219/build/build.log file for more details...

(It looks like someone had a similar error for target mesa build in a Mar 26 message but they haven't posted details to get any assistance yet).

As far as I can tell nativesdk-llvm14.0.6 and nativesdk-llvm are in the nativesdk-mesa recipe-sysroot providers and llvm-native and llvm14.0.6- native are in the nativesdk-mesa receipe-sysroot-native providers. I get a bit mixed up when dealing with native/nativesdk builds and the vairous sysroots and I have no idea how meson detects llvm and why it's failing here. The meson-log.txt doesn't seem provide any illumination (at least to my untrained eye).

Quoted 10 lines

Do you have any idea how I can get this build working? Are there any more debug options I can enable to work out what meson is looking for exactly and why it can't find it?

Best Regards,
Phil Dawson

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#65091): https://lists.yoctoproject.org/g/yocto/message/65091
Mute This Topic: https://lists.yoctoproject.org/mt/112067781/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Thank you both for your quick replies,

Somewhat glad it's not just a problem I've caused.

As I said, I'm new to llvm-config etc but if there's anything I can do to help investigate please let me know.
I've not built yocto without going through another layer of tooling before, but I can try and recreate in Kirkstone and Scarthgap once I've worked out how to get building. If I manage to get this going and find anything out I'll reply again.

Best Regards,
Phil Dawson

#4 lore raw
In reply to Khem Raj
Quoted 32 lines · Khem Raj
Quoted 31 lines · Gyorgy Sarvari via lists.yoctoproject.org

I managed to reproduce this. I see the problem itself, but without looking much deeper don't know what is causing it, or why it is happening unfortunately...

There are people more familiar and experienced with deep llvm things, so I'm sharing this for them.

I used an empty build folder, with only checking out poky repo, langsdale branch (I imagine kirkstone would be the same, after the previous report, though I haven't tried this now explicitly) I only added gallium-llvm to the PACKAGECONFIG of mesa.
I ran the following command: "MACHINE=qemuarm64 bitbake nativesdk-mesa"

After the error:
1. llvm-config is present. Meson is trying to execute "llvm-config --shared-mode" - but it errors out. It throws a lot of errors about missing files:

llvm-config: error: missing:
/home/meeee/stuff/yocto/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-mesa/2_22.2.3-r0/recipe-sysroot-native/usr/lib/libLLVMDemangle.a

Note that it is looking for it in $RECIPE_SYSROOT_NATIVE

2. When I look in the WORKDIR, I can find the missing files, in $RECIPE_SYSROOT. This doesn't look correct at the first sight... Out of curiousity I checked the type of this file - it's for x86-64.

3. When I look in the sysroots-components folder, I found it in x86 sysroots-components/x86_64-nativesdk/nativesdk-llvm/ folder, which looks about right, thought it's not more than a guess.

Quoted 5 lines
Quoted 2 lines

Is it possible that somehow these files get staged in the wrong sysroot?

I think nativesdk sysroot is where it should have looked into. My guess is either mesa's llvm detection logic needs to be looked into or perhaps llvm-config is not working correctly in nativesdk case.

You are onto something.

Checking a bit the history, this is not the first cross-compiling issue with llvm-config[1], Alex Kanavin was investigating related things in the past.

Looking a the recipe, it does vendor a custom llvm-config script, which is used for class-native[2]. If I duplicate this as "||

|do_install:append:class-nativesdk()" in the llvm recipe, then nativesdk-mesa compiles also. But I must admit that this copy-paste-idea lacks any rational background, it just looked like a good idea to try. But not sure if it causes more damage somewhere else.|

[1]:
https://web.git.yoctoproject.org/poky/commit/meta/recipes-devtools/llvm/llvm/llvm-config?h=langdale&id=8f41af0ee94e87b673aa75ee2ecb7cf5a43b0d3d

[2]:
https://web.git.yoctoproject.org/poky/tree/meta/recipes-devtools/llvm/llvm_git.bb?h=langdale#n124

Quoted 96 lines
Quoted 96 lines · philip.dawson via lists.yoctoproject.org
Quoted 73 lines

Hi,

We're trying to enable gallium-llvm for mesa 22.2.3 build in our langdale based project.
(We're using Petalinux tooling but I don't think that's making a difference here - meta-xilinx does have a mesa_%.bbappend but it seems only concerned with mali/libmali)

The target build works fine, but if we try to run the nativesdk-mali build (as part of bitbake petalinux-image-minimal -c do_populate_sdk run by the petalinux tools) then it fails on the do_configure step with the following meson error:

| WARNING: Ignoring LLVM CMake dependency because dynamic was requested | llvm-config found: YES (/home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3- r0/recipe-sysroot-native/usr/bin/llvm-config14.0.6) 14.0.6
| Run-time dependency LLVM (modules: bitwriter, core, engine, executionengine, instcombine, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines) found: NO (tried cmake and config-tool) | Looking for a fallback subproject for the dependency llvm (modules:
bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)

| Building fallback subproject with default_library=shared
|
| ../mesa-22.2.3/meson.build:1782:2: ERROR: Neither a subproject

directory nor a llvm.wrap file was found.
|
| A full log can be found at /home/phil-wsl2-u2204/build/dgc219_nsg/ dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk- mesa/2_22.2.3-r0/build/meson-logs/meson-log.txt
| ERROR: meson failed
| WARNING: /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/tmp/work/ x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/temp/ run.do_configure.3927848:173 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
|       #1: bbfatal_log, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3- r0/temp/run.do_configure.3927848, line 173
|       #2: meson_do_configure, /home/phil-wsl2-u2204/build/dgc219_nsg/ dgc219/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk- mesa/2_22.2.3-r0/temp/run.do_configure.3927848, line 162
|       #3: do_configure, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/ build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3- r0/temp/run.do_configure.3927848, line 148
|       #4: main, /home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/build/ tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-mesa/2_22.2.3-r0/ temp/run.do_configure.3927848, line 186
ERROR: Task (virtual:nativesdk:/home/phil-wsl2-u2204/build/dgc219_nsg/ dgc219/components/yocto/layers/poky/meta/recipes-graphics/mesa/ mesa_22.2.3.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6558 tasks of which 6549 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
  virtual:nativesdk:/home/phil-wsl2-u2204/build/dgc219_nsg/dgc219/
components/yocto/layers/poky/meta/recipes-graphics/mesa/ mesa_22.2.3.bb:do_configure
Summary: There were 2 ERROR messages, returning a non-zero exit code.
ERROR: Failed to build project. Check the /home/phil-wsl2-u2204/build/ dgc219_nsg/dgc219/build/build.log file for more details...

(It looks like someone had a similar error for target mesa build in a Mar 26 message but they haven't posted details to get any assistance yet).

As far as I can tell nativesdk-llvm14.0.6 and nativesdk-llvm are in the nativesdk-mesa recipe-sysroot providers and llvm-native and llvm14.0.6- native are in the nativesdk-mesa receipe-sysroot-native providers. I get a bit mixed up when dealing with native/nativesdk builds and the vairous sysroots and I have no idea how meson detects llvm and why it's failing here. The meson-log.txt doesn't seem provide any illumination (at least to my untrained eye).

Quoted 10 lines

Do you have any idea how I can get this build working? Are there any more debug options I can enable to work out what meson is looking for exactly and why it can't find it?

Best Regards,
Phil Dawson

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#65091): https://lists.yoctoproject.org/g/yocto/message/65091
Mute This Topic: https://lists.yoctoproject.org/mt/112067781/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

As an update to this in case anyone comes looking here later,

I tested across branches kirkstone, langdale, mickledore, nanbield, scarthgap and only got the failing build in langdale.
I couldn't get it to build by copying the do_install:class-native ( https://web.git.yoctoproject.org/poky/tree/meta/recipes-devtools/llvm/llvm_git.bb?id=8f41af0ee94e87b673aa75ee2ecb7cf5a43b0d3d&h=langdale#n124 ) as class-nativesdk but this pointed me to a patch in mickledore: https://web.git.yoctoproject.org/poky/commit/meta/recipes-devtools/llvm/llvm_git.bb?h=mickledore&id=8cf1c4cd42cd632b68ab4195471d23d9188f2bcd this changes the do_install:class-native to a do install:append:class-native so the library installation in do_install is also done for the native build so the libraries end up in recipe-sysroot-native for llvm-config to find.

I'm still not confident enough to say this is 100% the right answer but it seems to work so will do for me for now!

Thank you once again for your help.

Best Regards,
Phil