X86/64 build fail

make[3]: Leaving directory '/home/zetsu/openwrt/feeds/packages/lang/golang/golang'
time: package/feeds/packages/golang/host-compile#667.31#73.73#229.79
make[2]: Leaving directory '/home/zetsu/openwrt'
make[1]: *** [package/Makefile:122: /home/zetsu/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/zetsu/openwrt'
make: *** [/home/zetsu/openwrt/include/toplevel.mk:233: world] Error 2

Im getting this error can anyone help

Compile with -j1 V=sc, hopefully the issue will be clearer.

1 Like

Many times this can just be too many parallel processes running that causes a race condition.

I get this much more often building X86-64 using make -j $(($(nproc)+1)) than I do running a build on mvebu using essentially the same .config.

Quite often when it happens building X86-64 and I run it again using make j1 V=sc it will build to completion.

Either way make j1 V=sc will show an actual problem to be handled, or let the build run through.

will try later in the morning after I wake up. Thanks for the tips

touch /home/zetsu/openwrt/build_dir/target-x86_64_musl/host/rustc-1.76.0-src/.configured
CARGO_HOME=/home/zetsu/openwrt/dl/cargo TARGET_CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/home/zetsu/openwrt/build_dir/target-x86_64_musl/rust-1.76.0=rust-1.76.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" OPENWRT_RUSTC_BOOTSTRAP_CACHE=/home/zetsu/openwrt/dl/rustc python3 /home/zetsu/openwrt/build_dir/target-x86_64_musl/host/rustc-1.76.0-src/x.py --build-dir /home/zetsu/openwrt/build_dir/target-x86_64_musl/host/rustc-1.76.0-src/build --config /home/zetsu/openwrt/build_dir/target-x86_64_musl/host/rustc-1.76.0-src/config.toml dist build-manifest cargo llvm-tools rustc rust-std rust-src
downloading https://static.rust-lang.org/dist/2023-12-28/rust-std-1.75.0-x86_64-unknown-linux-gnu.tar.xz
ERROR: unable to run curl --version: [Errno 2] No such file or directory: 'curl'
Please make sure it's installed and in the path.
Build completed unsuccessfully in 0:00:00
make[3]: *** [Makefile:110: /home/zetsu/openwrt/build_dir/target-x86_64_musl/host/rustc-1.76.0-src/.built] Error 1
make[3]: Leaving directory '/home/zetsu/openwrt/feeds/packages/lang/rust'
time: package/feeds/packages/rust/host-compile#8.34#13.44#72.51
ERROR: package/feeds/packages/rust [host] failed to build.
make[2]: *** [package/Makefile:126: package/feeds/packages/rust/host/compile] Error 1
make[2]: Leaving directory '/home/zetsu/openwrt'
make[1]: *** [package/Makefile:122: /home/zetsu/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/zetsu/openwrt'
make: *** [/home/zetsu/openwrt/include/toplevel.mk:233: world] Error 2

Have you installed curl in your build machine?

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.