Skip to content

nixos/discourse: discourse-assets-2026.1.4 build fails with "mini_racer_extension.so: undefined symbol: _ZN6icu_788ByteSink15GetAppendBufferEiiPciPi" #538128

Closed

Description

@svniemeijer

Nixpkgs version

  • Stable (26.05)

Describe the bug

Building the discourse service fails with:

discourse-assets> Bundler::GemRequireError: There was an error while trying to load the gem 'mini_racer'. (Bundler::GemRequireError)
discourse-assets> Gem Load Error is: /nix/store/3sv7vxglmc6zwg68ycl9xpny87mm6fp7-discourse-ruby-env-2026.1.4/lib/ruby/gems/3.3.0/extensions/x86_64-linux/3.3.0/mini_racer-0.19.1/mini_racer_extension.so: undefined symbol: _ZN6icu_788ByteSink15GetAppendBufferEiiPciPi

This was working with rev a037402, but is broken when using 95ca1e2. So there was a change in between that introduced the problem.
Building the discourse package itself goes fine (nix build nixpkgs#discourse).

Steps to reproduce

Set services.discourse.enable to true and build the system configuration using latest NixOS 26.05.

Expected behaviour

Build should succeed.

Screenshots

No response

Relevant log output

discourse-assets> Waiting for Redis and PostgreSQL to be ready..
discourse-assets> psql: error: connection to server on socket "/build/.s.PGSQL.5432" failed: No such file or directory
discourse-assets>       Is the server running locally and accepting connections on that socket?
discourse-assets> 2026-07-03 14:04:12.270 UTC [5488] LOG:  starting PostgreSQL 17.10 on x86_64-pc-linux-gnu, compiled by clang version 21.1.8, 64-bit
discourse-assets> 2026-07-03 14:04:12.271 UTC [5488] LOG:  listening on IPv4 address "127.0.0.1", port 5432
discourse-assets> 2026-07-03 14:04:12.280 UTC [5488] LOG:  listening on Unix socket "/build/.s.PGSQL.5432"
discourse-assets> 2026-07-03 14:04:12.292 UTC [5494] LOG:  database system was shut down at 2026-07-03 14:04:11 UTC
discourse-assets> 2026-07-03 14:04:12.300 UTC [5488] LOG:  database system is ready to accept connections
discourse-assets> CREATE ROLE
discourse-assets> CREATE DATABASE
discourse-assets> CREATE EXTENSION
discourse-assets> CREATE EXTENSION
discourse-assets> CREATE EXTENSION
discourse-assets> rake aborted!
discourse-assets> Bundler::GemRequireError: There was an error while trying to load the gem 'mini_racer'. (Bundler::GemRequireError)
discourse-assets> Gem Load Error is: /nix/store/3sv7vxglmc6zwg68ycl9xpny87mm6fp7-discourse-ruby-env-2026.1.4/lib/ruby/gems/3.3.0/extensions/x86_64-linux/3.3.0/mini_racer-0.19.1/mini_racer_extension.so: undefined symbol: _ZN6icu_788ByteSink15GetAppendBufferEiiPciPi
discourse-assets> Backtrace for gem load error is:
discourse-assets> /nix/store/ailrj32pgq5n5kbzvlzrya01b5cw7yjp-ruby3.3-mini_racer-0.19.1/lib/ruby/gems/3.3.0/gems/mini_racer-0.19.1/lib/mini_racer.rb:22:in `load'
discourse-assets> /nix/store/ailrj32pgq5n5kbzvlzrya01b5cw7yjp-ruby3.3-mini_racer-0.19.1/lib/ruby/gems/3.3.0/gems/mini_racer-0.19.1/lib/mini_racer.rb:22:in `<main>'
discourse-assets> <internal:/nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
discourse-assets> <internal:/nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
discourse-assets> /nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/bundled_gems.rb:69:in `block (2 levels) in replace_require'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:63:in `block (2 levels) in require'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:58:in `each'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:58:in `block in require'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:52:in `each'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:52:in `require'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler.rb:214:in `require'
discourse-assets> /build/source/config/application.rb:55:in `<top (required)>'
discourse-assets> /nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/bundled_gems.rb:69:in `require'
discourse-assets> /nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/bundled_gems.rb:69:in `block (2 levels) in replace_require'
discourse-assets> /build/source/Rakefile:7:in `<top (required)>'

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.69, NixOS, 26.05 (Yarara), 26.05.20260531.b51242d
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.34.7
  • nixpkgs: /nix/store/i936ws2xplkqgbzkxkacqqq2dpag3ndf-source

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    6.topic: nixos
    on Jul 3, 2026
  2. 0xB10C commented on Jul 10, 2026

    @0xB10C
    Contributor

    git bisect leads to 4b965d7 being the/a problematic commit

  3. lluchs commented on Jul 12, 2026

    @lluchs
    Contributor

    I opened a PR with a fix, please have a look.

    Building the discourse package itself goes fine (nix build nixpkgs#discourse).

    You're probably building a version that doesn't include the commit mentioned above. nix build github:nixos/nixpkgs/nixos-26.05#discourse.assets does fail.

  4. added a commit that references this issue on Jul 16, 2026
    8bbc131
  5. svniemeijer commented on Jul 17, 2026

    @svniemeijer
    ContributorAuthor

    I was able to now build the component when using release-26.05, so I think this resolves the issue.
    I assume that the next step is to bring this to the nixos-26.05 branch?

  6. lluchs commented on Jul 17, 2026

    @lluchs
    Contributor
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

    0.kind: bug6.topic: nixos

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions