Skip to content

Bun 1.4 binary unable to running on FreeBSD #40530

Closed

Description

@xpader

What version of Bun is running?

1.4

What platform is your computer?

FreeBSD 15.1-RELEASE-p1 amd64

What steps can reproduce the bug?

Download binary from https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-freebsd-x64.zip, unzip and run ./bun-freebsd-x64/bun -v.

What is the expected behavior?

Normal output version.

What do you see instead?

Error: ld-elf.so.1: Shared object "libutil.so.9" not found, required by "bun"

Additional information

No response

Activity

  1. robobun commented on Aug 26, 2026

    @robobun
    Collaborator

    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.

  2. robobun commented on Aug 27, 2026

    @robobun
    Collaborator

    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.

    Closing as fixed by #40532.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions