You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using compiler .preprocess() and custom_target() results in ninja dependency error but not a meson error:
ninja: error: '/tmp/meson_preprocessor_bug/buildDir/preprocessor_0.p/lscript.pp.ld', needed by 'lscript.pp.strip.ld', missing and no known rule to make it
The Meson build system
Version: 1.6.0
Source dir: /tmp/meson_preprocessor_bug
Build dir: /tmp/meson_preprocessor_bug/buildDir
Build type: native build
Project name: my_project
Project version: undefined
C compiler for the host machine: ccache cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
meson.build:8: WARNING: Source item '/tmp/meson_preprocessor_bug/buildDir/preprocessor_0.p/lscript.pp.ld' cannot be converted to File object, because it is a generated file. This will become a hard error in meson 2.0.
Build targets in project: 3
Found ninja-1.10.1 at /usr/bin/ninja
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /tmp/meson_preprocessor_bug/buildDir -j 16 -v
ninja: Entering directory `/tmp/meson_preprocessor_bug/buildDir'
ninja: error: '/tmp/meson_preprocessor_bug/buildDir/preprocessor_0.p/lscript.pp.ld', needed by 'lscript.pp.strip.ld', missing and no known rule to make it
Describe the bug
Using compiler
.preprocess()
andcustom_target()
results inninja
dependency error but not a meson error:yet afaik the dependency chain should be:
To Reproduce
results in
(full repo: https://github.com/julianneswinoga/meson_preprocessor_bug)
Expected behavior
Dependency chain to be built correctly and build to start.
system parameters
python --version
:3.10.12
meson --version
:1.6.0
ninja --version
:1.10.1
The text was updated successfully, but these errors were encountered: