!PbcQeaWcgMyjVfeGQN:nixos.org

Nix Mozilla 🦊🐦🐒

175 Members
A room about a number of weird animals (also known as Mozilla products): Firefox, Thunderbird, Spidermonkey, NSS, cacert. Also a little bit of fun times, small amounts of extreme, when building weird animals. But for bugs please file GitHub issues. | Release Schedule: https://whattrainisitnow.com | Crash-Stats: https://crash-stats.mozilla.org/search/?distribution_id=%3Dnixos&product=Firefox&product=Thunderbird51 Servers

Load older messages


SenderMessageTime
24 Nov 2023
@hexa:lossy.networkhexaok, so firefox 120.0 isn't crashing for me exactly14:34:44
@hexa:lossy.networkhexabut webgl support is failing with14:34:52
@hexa:lossy.networkhexa

Status: WebGL creation failed: * WebglAllowWindowsNativeGl:false restricts context creation on this system. () * Exhausted GL driver options. (FEATURE_FAILURE_WEBGL_EXHAUSTED_DRIVERS)

14:34:56
@hexa:lossy.networkhexaso I'm having a hard time to reproduce14:35:12
@nbp:mozilla.orgnbpI was able to reproduce the issue earlier. I can try patches if needed.14:35:37
@yannis:mozilla.org@yannis:mozilla.org Also nm -D can be used first to distinguish good builds from bad builds if you can't reproduce. 14:37:53
@hexa:lossy.networkhexa
$ nm -D result/bin/.firefox-wrapped| grep _S_initialize
00000000000c55c0 T _ZNSt6locale13_S_initializeEv
00000000000c5560 T _ZNSt6locale18_S_initialize_onceEv
00000000000c2860 T _ZNSt6locale5facet18_S_initialize_onceEv
14:44:09
@hexa:lossy.networkhexa ok, the T here is bad 14:44:16
@hexa:lossy.networkhexa
diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix
index aadbb32d6e02..7a00670ebc44 100644
--- a/pkgs/applications/networking/browsers/firefox/common.nix
+++ b/pkgs/applications/networking/browsers/firefox/common.nix
@@ -497,6 +497,8 @@ buildStdenv.mkDerivation ({
 
   preBuild = ''
     cd mozobj
+  '' + lib.optionalString (stdenv.cc.isGNU) ''
+    export NIX_LDFLAGS="-L${stdenv.cc.cc.lib}/lib"
   '' + lib.optionalString (lib.versionAtLeast version "120") ''
     # https://bugzilla.mozilla.org/show_bug.cgi?id=1864083
     export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config dbus-1 --cflags)"
14:44:38
@hexa:lossy.networkhexa *
diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix
index aadbb32d6e02..7a00670ebc44 100644
--- a/pkgs/applications/networking/browsers/firefox/common.nix
+++ b/pkgs/applications/networking/browsers/firefox/common.nix
@@ -497,6 +497,8 @@ buildStdenv.mkDerivation ({
 
   preBuild = ''
     cd mozobj
+  '' + lib.optionalString stdenv.cc.isGNU ''
+    export NIX_LDFLAGS="-L${stdenv.cc.cc.lib}/lib"
   '' + lib.optionalString (lib.versionAtLeast version "120") ''
     # https://bugzilla.mozilla.org/show_bug.cgi?id=1864083
     export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config dbus-1 --cflags)"
14:44:52
@hexa:lossy.networkhexathis is the patch I'm trying14:44:58
@hexa:lossy.networkhexa

ld.lld: error: unable to find library -lz

15:31:48
@hexa:lossy.networkhexalooks like that breaks things15:31:56
@nbp:mozilla.orgnbpprobably because it replaces the one which are set by having buildInputs.15:32:37
@hexa:lossy.networkhexathe only ldflags hackery on firefox is for musl15:32:39
@hexa:lossy.networkhexaoh possibly15:32:51
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/267737 was just merged fwiw15:35:21
@nbp:mozilla.orgnbpI fetching staging-23.05 and I will soon start to rebuild the world.15:47:08
@nbp:mozilla.orgnbp * I fetched staging-23.05 and I will soon start to rebuild the world.15:47:15
@hexa:lossy.networkhexaoh no 😄 good luck15:47:32
@hexa:lossy.networkhexastill testing the more localized approach15:47:42
@nbp:mozilla.orgnbp I saw all the tarball being downloaded, so I read the man page to learn about the --builders "ssh://beefy-machine x86_64-linux" trick 15:48:40
@hexa:lossy.networkhexait was highly effective?15:49:00
@hexa:lossy.networkhexa there is also the -j0 trick, so that you can keep doing on your local machine whatever it was you were doing 🙂 15:49:15
@nbp:mozilla.orgnbpI have not yet finished downloading everything … 🙄15:49:34
@hexa:lossy.networkhexa also nix.settings.builders-use-substitutes = true 15:50:07
@nbp:mozilla.orgnbpwell it is not always on15:50:19
@hexa:lossy.networkhexayeah, but you don't want to download everything to your local machine, just to then push it to your builder15:50:51
@hexa:lossy.networkhexawell at least for things that can be substituted, which is probably not much on a linux stdenv rebuild15:51:08
@hexa:lossy.networkhexaso nvm15:51:13

Show newer messages


Back to Room ListRoom Version: 9