Skip to content

firefox: Doesn't build on aarch64-darwin #451884

@SuperKenVery

Description

@SuperKenVery

Nixpkgs version

  • Unstable (25.11)

Describe the bug

firefox, firefox-bin and thunderbird all fails to build on aarch64-darwin.

It's trying to build libcanberra which is a linux-only thing.

Steps to reproduce

nix shell nixpkgs#firefox on mac

Expected behaviour

It builds

Screenshots

No response

Relevant log output

error: Cannot build '/nix/store/jbqp2jr3xm7g98fgphnrqfbnaxams2hq-gtk+3-3.24.49.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/24sbzp7dq9cn4izayp4l32ksy9z8a6qa-gtk+3-3.24.49-devdoc
         /nix/store/36jzd2dzb5zm7pp8nzfj0najcfd90232-gtk+3-3.24.49-dev
         /nix/store/famsxlwakak8pnml5d4ws6szrnygm0nn-gtk+3-3.24.49
       Last 25 log lines:
       > [864/1158] Generating gtk/nb_gresource with a custom command
       > [865/1158] Generating gtk/nl_gresource with a custom command
       > [866/1158] Generating gtk/pl_gresource with a custom command
       > [867/1158] Generating gtk/pt_gresource with a custom command
       > [868/1158] Generating gtk/ru_gresource with a custom command
       > [869/1158] Generating gtk/sv_gresource with a custom command
       > [870/1158] Generating gtk/th_gresource with a custom command
       > [871/1158] Generating gtk/uk_gresource with a custom command
       > [872/1158] Generating gtk/zh_gresource with a custom command
       > [873/1158] Compiling C object docs/tools/doc-shooter.p/.._.._tests_gtkgears.c.o
       > FAILED: [code=1] docs/tools/doc-shooter.p/.._.._tests_gtkgears.c.o
       > clang -Idocs/tools/doc-shooter.p -Idocs/tools -I../docs/tools -I. -I.. -Igdk -I../gdk -Igtk -I../gtk -I../tests -Igdk/x11 -I../gdk/x11 -I/nix/store/v91r1bkx0ln0yp015m3ij6ab2fz9qslk-glib-2.84.4-dev/include -I/nix/store/v91r1bkx0ln0yp015m3ij6ab2fz9qslk-glib-2.84.4-dev/include/glib-2.0 -I/nix/store/yhl8qmck6nmll6kcl83xsmw01ymlhwpb-glib-2.84.4/lib/glib-2.0/include -I/nix/store/v91r1bkx0ln0yp015m3ij6ab2fz9qslk-glib-2.84.4-dev/include/gio-unix-2.0 -I/nix/store/2wsfr9fm6xzy0nrmisxdb01si4d1lyd4-cairo-1.18.4-dev/include/cairo -I/nix/store/khbn41nwaxvkgcjpjcqrpzlisyxzsbbl-freetype-2.13.3-dev/include/freetype2 -I/nix/store/khbn41nwaxvkgcjpjcqrpzlisyxzsbbl-freetype-2.13.3-dev/include -I/nix/store/ip3idsqcapp5yna11fm7ggvpvf8sw33n-pango-1.56.3-dev/include/pango-1.0 -I/nix/store/w8zf8vl7gbjgpjn8d30bv83ivdcpxm9m-harfbuzz-11.2.1-dev/include/harfbuzz -I/nix/store/jxw17p0zgbsl58qn711g6rsf8wgliclz-fontconfig-2.17.1-dev/include -I/nix/store/i9372zki5yqmsb16q1snlpi1sg064pm6-fribidi-1.0.16-dev/include/fribidi -I/nix/store/5r72p05mricmydc7n0srgkdj5z6lawxi-gdk-pixbuf-2.42.12-dev/include/gdk-pixbuf-2.0 -I/nix/store/pmly14n540g9jw8zsbp6j48wqvbdq226-at-spi2-core-2.56.2-dev/include/atk-1.0 -I/nix/store/xvpzmlsn83jw0wkj4wkh1ldxx64s7n0f-libepoxy-1.5.10-dev/include -I/nix/store/51wg1n8kdlpyfb934yg609793c4ilsva-xorgproto-2024.1/include -I/nix/store/vz2145aibxnz34p1rn0k5anf7ymh147h-libXi-1.8.2-dev/include -I/nix/store/4k0bizp942g6ki03xr01d9w0w5m04406-libx11-1.8.12-dev/include -I/nix/store/pmly14n540g9jw8zsbp6j48wqvbdq226-at-spi2-core-2.56.2-dev/include/at-spi2-atk/2.0 -I/nix/store/82i2190vkjz9h3gl9kdmsc2vcdv9i4qs-libxrender-0.9.12-dev/include -I/nix/store/dffggwafgqzz0nb72hs448p22rq1zbij-libxext-1.3.6-dev/include -I/nix/store/1qn0i7v6djkqj1pb0cwhg9qs7kbxhijn-libxcursor-1.2.3-dev/include -I/nix/store/73dbqj4mq5dgrf3lcfswv9xqvb2q6917-libxfixes-6.0.1-dev/include -I/nix/store/hsywr8bmyr0aj0i8npx215nv0wfhx2bx-libXdamage-1.1.6-dev/include -I/nix/store/3611ab5a4i6rzqkn2s4c2yk5lk9l5cpy-libXcomposite-0.4.6-dev/include -I/nix/store/2qllrazs8hgcz40ik33ah3gxpq3jkza7-libxrandr-1.5.4-dev/include -fdiagnostics-color=always -Wall -Winvalid-pch -DG_LOG_USE_STRUCTURED=1 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_58 '-DGTK_VERSION="3.24.49"' -D_GNU_SOURCE -MD -MQ docs/tools/doc-shooter.p/.._.._tests_gtkgears.c.o -MF docs/tools/doc-shooter.p/.._.._tests_gtkgears.c.o.d -o docs/tools/doc-shooter.p/.._.._tests_gtkgears.c.o -c ../tests/gtkgears.c
       > ../tests/gtkgears.c:309:5: error: call to undeclared library function 'sincos' with type 'void (double, double *, double *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       >   309 |     sincos(i * 2.0 * G_PI / teeth + da * 0, &s[0], &c[0]);
       >       |     ^
       > ../tests/gtkgears.c:309:5: note: include the header <math.h> or explicitly provide a declaration for 'sincos'
       > 1 error generated.
       > [874/1158] Linking target gtk/gtk-query-settings
       > [875/1158] Linking target gtk/gtk-builder-tool
       > [876/1158] Linking target gtk/gtk-update-icon-cache
       > [877/1158] Linking target gtk/gtk-encode-symbolic-svg
       > [878/1158] Linking target gtk/gtk-query-immodules-3.0
       > [879/1158] Linking target gtk/gtk-launch
       > [880/1158] Generating gtk/Gtk-3.0.typelib with a custom command
       > ninja: build stopped: subcommand failed.
       For full logs, run:
         nix log /nix/store/jbqp2jr3xm7g98fgphnrqfbnaxams2hq-gtk+3-3.24.49.drv
error: Cannot build '/nix/store/c37f0gkbxa7j2d7xwc2dzsp7b3c7ympa-libcanberra-0.30.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/bcg5phgdzrr6cpdgsdcx6wfs6kfvv5hs-libcanberra-0.30
         /nix/store/dch9agh94g4ykbxz7h80yz05l2dksn4m-libcanberra-0.30-dev
error: Cannot build '/nix/store/m0fhxcs3jnfj218kr19rih5l363lcqp9-firefox-bin-143.0.4.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/p1kacyldmch3qhz718mvza4m7hnpjma2-firefox-bin-143.0.4
error: Cannot build '/nix/store/cpmsd89qpaakyvkgm8bl65qz12gcn6yd-firefox-bin-143.0.4-fish-completions.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/pv6g5ma3xhhww115g98n9fgwsarcq1s8-firefox-bin-143.0.4-fish-completions

Additional context

I'm building it from home-manager config.

System metadata

nix-info -m

  • system: "aarch64-darwin"
  • host os: Darwin 25.0.0, macOS 26.0
  • multi-user?: no
  • sandbox: yes
  • version: nix-env (Determinate Nix 3.8.2) 2.30.1
  • nixpkgs: not found

(I am on a multi-user installation. I use flakes so it doesn't detect nixpkgs channels.)

Are you using nix-darwin?

No, I am not using nix-darwin.

Notify maintainers

@mweinelt


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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: darwinRunning or building packages on Darwin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions