diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-08-28 12:37:50 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-01 23:07:06 +0100 |
commit | b0fa96930e3c8021553d8794a713a380b1854eaa (patch) | |
tree | 2c98398b04c28ac32779e50d7747df15b19814f2 /scripts/lib/build_perf/report.py | |
parent | 9995dbc38a3f3fafe9cee6ede761a940be62d9d9 (diff) | |
download | poky-b0fa96930e3c8021553d8794a713a380b1854eaa.tar.gz |
babeltrace2: Disable ccache explicitly and inherit setuptools3-base
ccache does not work with this package
python plugins use setuptools/distutils to build and it tries to compute
LDCXXSHARED as described in [1] in /src/bindings/python/bt2/setup.py.in
It gets confused and ends up specifying compiler twice and the result is
that linker fails with cryptic errors e.g.
| /mnt/b/yoe/master/sources/poky/build/tmp/work/x86-64-v3-poky-linux-musl/babeltrace2/2.1.1/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/15.2.0/ld: cannot find x86_64-poky-linux-musl-g++: No such file or directory
| collect2: error: ld returned 1 exit status
| error: command '/mnt/b/yoe/master/sources/poky/build/tmp/hosttools/ccache' failed with exit code 1
| make[3]: *** [Makefile:741: build-python-bindings.stamp] Error 1
| make[3]: Leaving directory '/mnt/b/yoe/master/sources/poky/build/tmp/work/x86-64-v3-poky-linux-musl/babeltrace2/2.1.1/build/src/bindings/python/bt2'
This is because first occurance of linker is encountering second linker on its
cmdline and tries to treat it as an input object to linker
It seems LDCXXSHARED computation gets confused when CXX contains ccache
[1] https://github.com/pypa/setuptools/commit/2c937116cc0dcd9b26b6070e89a3dc5dcbedc2ae
(From OE-Core rev: 7a7eeca4b951e58242b77e410eb10577ea615066)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/build_perf/report.py')
0 files changed, 0 insertions, 0 deletions