!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

260 Members
80 Servers

Load older messages


SenderMessageTime
24 Nov 2023
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/issues/26953901:41:21
@hexa:lossy.networkhexafirefox on release-23.05 crashes due to the way how libstdc++ gets linked into firefox and I'm completely out of my depth13:02:04
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/issues/269571#issuecomment-182562119813:02:05
@hexa:lossy.networkhexaonly affects 23.05, both 23.11 and unstable seem fine13:02:52
@nbp:mozilla.orgnbp joined the room.13:43:03
@yannis:mozilla.orgyannis joined the room.13:44:11
@trofi:matrix.orgtrofi If firefox is linked by clang I wonder if cc-wrapper was supplying only libstdc++.a library in it's library search paths. Something like https://github.com/NixOS/nixpkgs/commit/2946b819c209f4a1a9e87a725fc9e5ed2452c178 might nave been a fix. You should be able to add needed library search path with explicit -L to firefox. 14:16:01
@nbp:mozilla.orgnbpThis sounds like it is build using clang, to make use of LTO: https://github.com/NixOS/nixpkgs/blob/8f1180704ac35baded1a74164365ac7cdfba6f38/pkgs/applications/networking/browsers/firefox/common.nix#L171-L17414:21:33
@trofi:matrix.orgtrofi

Yeah, clang++ uses static libstdc++ in nixos-23.05 branch:

$ nix develop -f. firefox-unwrapped
$ dev>printf "#include <iostream>\nint main() { std::cout << 'x'; }" | clang++ -x c++ - -o a -Wl,-t |& fgrep stdc |& head -n3
/nix/store/jma71mvzwdrcm6qc5izvskvzfsii5mk7-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0/../../../../lib64/libstdc++.a(globals_io.o)
/nix/store/jma71mvzwdrcm6qc5izvskvzfsii5mk7-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0/../../../../lib64/libstdc++.a(ios_init.o)
/nix/store/jma71mvzwdrcm6qc5izvskvzfsii5mk7-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0/../../../../lib64/libstdc++.a(eh_personality.o)
14:24:44
@trofi:matrix.orgtrofi

staging-next for comparison uses shared one:

$ nix develop -f. firefox-unwrapped
$ dev>printf "#include <iostream>\nint main() { std::cout << 'x'; }" | clang++ -x c++ - -o a -Wl,-t |& fgrep stdc |& head -n3
/nix/store/myw67gkgayf3s2mniij7zwd79lxy8v0k-gcc-12.3.0-lib/lib/libstdc++.so
14:25:48
@nbp:mozilla.orgnbpWould cherry-picking the change fix the issue?14:26:38
@nbp:mozilla.orgnbpOr should we look at something specific for Firefox?14:26:52
@nbp:mozilla.orgnbp * Or should we should look at something specific for Firefox?14:26:59
@trofi:matrix.orgtrofi I think cherry-pick will be a world rebuild. I would suggest exploring local to firefox fix like adding an equivalent of NIX_LDFLAGS = "-L${stdenv.cc.cc.lib}/lib" under stdenv.isGNU. 14:28:41
@nbp:mozilla.orgnbp hexa: Does that sounds good? ^ 14:29:43
@hexa:lossy.networkhexasure, we can try that14:31:58
@hexa:lossy.networkhexathanks trofi!14:32:36
@hexa:lossy.networkhexa Artturin: what is your intention with the staging-23.05 backport here? https://github.com/NixOS/nixpkgs/pull/192459#event-10971886154 15:28:48
@hexa:lossy.networkhexa * Artturin: what is your plan with the staging-23.05 backport here? https://github.com/NixOS/nixpkgs/pull/192459#event-10971886154 15:28:52
@artturin:matrix.orgArtturin
In reply to @hexa:lossy.network
Artturin: what is your plan with the staging-23.05 backport here? https://github.com/NixOS/nixpkgs/pull/192459#event-10971886154
merged
15:31:03
28 Nov 2023
@a-n-n-a-l-e-e:matrix.orga-n-n-a-l-e-e joined the room.03:19:26
4 Dec 2023
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.20:56:40
5 Dec 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.00:38:34
@raitobezarius:matrix.orgraitobezariusdoes the stdenv people knows why checkMeta might have missed those: https://github.com/NixOS/nixpkgs/pull/272199 ?14:50:43
@raitobezarius:matrix.orgraitobezariusI also realized we have stdenv.meta = null derivations for some bootstrap stuff BTW14:50:57
@artturin:matrix.orgArtturin
In reply to @raitobezarius:matrix.org
does the stdenv people knows why checkMeta might have missed those: https://github.com/NixOS/nixpkgs/pull/272199 ?
https://github.com/NixOS/nixpkgs/blob/70475eb9dd8e0a3b7138cf829f96cb404fa1d94b/pkgs/stdenv/generic/check-meta.nix#L310
15:47:26
@raitobezarius:matrix.orgraitobezariusI see15:50:23
@raitobezarius:matrix.orgraitobezariusThank you!15:50:25
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/issues/27229015:52:55
@artturin:matrix.orgArtturincreated an issue15:53:04

Show newer messages


Back to Room ListRoom Version: 9