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
{{ message }}
Repository navigation
Bun 1.4 binary unable to running on FreeBSD #40530
Fixed by #40532: the FreeBSD build now links libutil statically (the binary only needs openpty from it), so the binary no longer depends on libutil.so.9 and runs on both 14.x and 15.x. The fix will be in the next canary and release builds.
Verified on a FreeBSD x64 binary built from main after #40532 merged (commit 65362b5, CI build from 2026-08-27).
readelf -d bun shows these NEEDED entries:
libc.so.7
libthr.so.3
libm.so.5
libc++.so.1
libcxxrt.so.1
There is no libutil.so.9 entry any more. For comparison, the 1.4.0 release binary has the extra libutil.so.9 entry and imports openpty from it. The new binary links openpty statically from libutil.a, so it has no import from libutil and does not depend on the libutil soname of the host.
The fix is on main (#40532). It will be in the next canary build that publishes and in the next release (1.4.1). The canary assets that are published right now still predate the merge.
If a newer build still fails on FreeBSD 15.1, please reopen this issue.
Activity
robobun commentedon Aug 26, 2026
Fixed by #40532: the FreeBSD build now links libutil statically (the binary only needs openpty from it), so the binary no longer depends on libutil.so.9 and runs on both 14.x and 15.x. The fix will be in the next canary and release builds.
build: link libutil statically on FreeBSD (#40532)
README: bun's libutil.so.9 problem is already fixed upstream
robobun commentedon Aug 27, 2026
Verified on a FreeBSD x64 binary built from main after #40532 merged (commit 65362b5, CI build from 2026-08-27).
readelf -d bunshows these NEEDED entries:There is no
libutil.so.9entry any more. For comparison, the 1.4.0 release binary has the extralibutil.so.9entry and importsopenptyfrom it. The new binary linksopenptystatically from libutil.a, so it has no import from libutil and does not depend on the libutil soname of the host.The fix is on main (#40532). It will be in the next canary build that publishes and in the next release (1.4.1). The canary assets that are published right now still predate the merge.
If a newer build still fails on FreeBSD 15.1, please reopen this issue.
Closing as fixed by #40532.