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
[0/2] Building src/*.zig for x86_64-linux-gnu/home/minsoochoo/bun/vendor/zig/lib/std/mem.zig:1059:8: error: dependency on libc must be explicitly specified in the build commandextern "c" fn strlen(s: [*:0]const u8) usize; ^~~referenced by: indexOfSentinel__anon_56466: /home/minsoochoo/bun/vendor/zig/lib/std/mem.zig:1066:16 lenSliceTo__anon_57904: /home/minsoochoo/bun/vendor/zig/lib/std/mem.zig:964:43 18 reference(s) hidden; use '-freference-trace=20' to see all references
probably build.zig issue?
What is the expected behavior?
build success
What do you see instead?
CMake Build $ cmake --build /home/minsoochoo/bun/build/debug[0/2] Re-checking globbed directories...[0/2] Building src/*.zig for x86_64-linux-gnu/home/minsoochoo/bun/vendor/zig/lib/std/mem.zig:1059:8: error: dependency on libc must be explicitly specified in the build commandextern "c" fn strlen(s: [*:0]const u8) usize; ^~~referenced by: indexOfSentinel__anon_56466: /home/minsoochoo/bun/vendor/zig/lib/std/mem.zig:1066:16 lenSliceTo__anon_57904: /home/minsoochoo/bun/vendor/zig/lib/std/mem.zig:964:43 18 reference(s) hidden; use '-freference-trace=20' to see all referencesFAILED: bun-zig.o /home/minsoochoo/bun/build/debug/bun-zig.ocd /home/minsoochoo/bun && /home/minsoochoo/bun/vendor/zig/zig build obj --cache-dir /home/minsoochoo/bun/build/debug/cache/zig/local --global-cache-dir /home/minsoochoo/bun/build/debug/cache/zig/global --zig-lib-dir /home/minsoochoo/bun/vendor/zig/lib --prefix /home/minsoochoo/bun/build/debug -Dobj_format=obj -Dtarget=x86_64-linux-gnu -Doptimize=Debug -Dcpu=haswell -Denable_logs=true -Dversion=1.2.2 -Dreported_nodejs_version=22.6.0 -Dcanary=1 -Dcodegen_path=/home/minsoochoo/bun/build/debug/codegen -Dcodegen_embed=false --prominent-compile-errors -Dsha=87281b6d48f8015c8d779a28d47bbc6a670aee58ninja: build stopped: subcommand failed. cmake took 3.06 seconds Command exited: code 1error: script "build:debug" exited with code 1error: script "build" exited with code 1
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.2.2+c1708ea6a
What platform is your computer?
Linux 6.12.8-WSL2-LTS+ x86_64 x86_64
What steps can reproduce the bug?
Edit
vendor/zig/lib/std/mem.zig
soextern "C"
becomesextern "c"
I'm using Ubuntu 24.04 LTS with 6.12 LTS kernel
oven-sh/zig#4 (comment)
@Jarred-Sumner says bun is linked to libc, but what I see is:
probably
build.zig
issue?What is the expected behavior?
build success
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: