Skip to content

FreeBSD -- ruby 4.0.0 build from source distribution and --enable-zjit fails #925

@stevewi-niteflyte

Description

@stevewi-niteflyte

When I try to build ruby 4.0.0 on FreeBSD with --enable-zjit, the build fails. The attached logs will tell the story.

This succeeds on macOS 26.2 (Tahoe). I noticed that two rust objects are built on macOS (zjit.rlib & yjit.rlib) that are NOT built on FreeBSD.

Here's the particulars:

  • FreeBSD bill.local 15.0-RELEASE-p1 FreeBSD 15.0-RELEASE-p1 hp800g3 amd64
  • make is the version that ships with FreeBSD 15.0-RELEASE-p1 (although it fails the same way using gmake too)
  • clang --version:
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
Target: x86_64-unknown-freebsd15.0
Thread model: posix
InstalledDir: /usr/bin
  • ld --version:
LLD 19.1.7 (FreeBSD llvmorg-19.1.7-0-gcd708029e0b2-1500001) (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2) (compatible with GNU linkers)
  • rustc --version:
rustc 1.92.0 (ded5c06cf 2025-12-08) (built from a source tarball)
  • configure --version:
configure
generated by GNU Autoconf 2.71

*copyright omitted*

I have ruby 4.0.0 installed on this machine but with yjit only. At this point all I'm trying to do is BUILD a version with zjit...I don't intend to use it at the moment.

config.log

make.log

config.macOS-26.log

make.macOS-26.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions