diff mbox series

[meta-oe] wrk: fix parallel build failure due to missing obj directory

Message ID 20261029070720.2882299-1-vaibjind@qti.qualcomm.com
State New
Headers show
Series [meta-oe] wrk: fix parallel build failure due to missing obj directory | expand

Commit Message

Vaibhav Jindal Oct. 29, 2026, 7:07 a.m. UTC
The obj/bytecode.c rule in the wrk Makefile has no dependency on the
obj/ directory, so with parallel make luajit can run before obj/ has
been created and fails:

  LUAJIT src/wrk.lua
  luajit: .../obj/bytecode.c: No such file or directory
  make: *** [Makefile:64: obj/bytecode.c] Error 1

Create ${S}/obj up front in do_compile.

Signed-off-by: Vaibhav Jindal <vaibjind@qti.qualcomm.com>
---
 meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb | 3 +++
 1 file changed, 3 insertions(+)

Comments

Khem Raj Oct. 29, 2026, 1:48 p.m. UTC | #1
On Thu, Oct 29, 2026 at 12:07 AM Vaibhav Jindal via lists.openembedded.org
<vaibjind=qti.qualcomm.com@lists.openembedded.org> wrote:

> The obj/bytecode.c rule in the wrk Makefile has no dependency on the
> obj/ directory, so with parallel make luajit can run before obj/ has
> been created and fails:
>
>   LUAJIT src/wrk.lua
>   luajit: .../obj/bytecode.c: No such file or directory
>   make: *** [Makefile:64: obj/bytecode.c] Error 1
>
> Create ${S}/obj up front in do_compile.
>
> Signed-off-by: Vaibhav Jindal <vaibjind@qti.qualcomm.com>
> ---
>  meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb
> b/meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb
> index 47ca9ada01..d06d86825b 100644
> --- a/meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb
> +++ b/meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb
> @@ -25,6 +25,9 @@ EXTRA_OEMAKE = "\
>
>  do_compile() {
>      export
> LUA_PATH="${RECIPE_SYSROOT_NATIVE}/usr/share/luajit-2.1/?.lua;;"
> +    # The obj/bytecode.c rule has no dependency on obj/, so with parallel
> make
> +    # luajit can run before the directory exists. Create it up front.
> +    mkdir -p ${S}/obj
>

I wonder why its looking for a obj dir inside source dir. Usually we build
outside sourcedir. Please look into it secondly,
use do_compile[dirs] = "${S}/obj" if its needed


>      oe_runmake
>  }
>
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#131641):
> https://lists.openembedded.org/g/openembedded-devel/message/131641
> Mute This Topic: https://lists.openembedded.org/mt/121990495/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb b/meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb
index 47ca9ada01..d06d86825b 100644
--- a/meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb
+++ b/meta-oe/recipes-benchmark/wrk/wrk_4.2.0.bb
@@ -25,6 +25,9 @@  EXTRA_OEMAKE = "\
 
 do_compile() {
     export LUA_PATH="${RECIPE_SYSROOT_NATIVE}/usr/share/luajit-2.1/?.lua;;"
+    # The obj/bytecode.c rule has no dependency on obj/, so with parallel make
+    # luajit can run before the directory exists. Create it up front.
+    mkdir -p ${S}/obj
     oe_runmake
 }