!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

556 Members
119 Servers

Load older messages


SenderMessageTime
14 Sep 2025
@quadradical:federated.nexusQuadRadical (Ping) changed their profile picture.16:51:18
@quadradical:federated.nexusQuadRadical (Ping) changed their profile picture.20:37:00
15 Sep 2025
@quadradical:federated.nexusQuadRadical (Ping) changed their profile picture.14:23:59
@siraben:matrix.orgsirabencurious, did we ever get cosmopolitan libc off into some sort of cross?15:51:42
@siraben:matrix.orgsirabenthey are on version 4.0.2 now but we are on 2.215:53:06
@siraben:matrix.orgsirabenwill attempt an update and see how nontrivial it is15:53:57
@siraben:matrix.orgsirabenhttps://github.com/jart/cosmopolitan/releases/tag/4.0.215:54:35
@siraben:matrix.orgsirabentheir release notes say bash, emacs, vim, git, links, wget work15:54:47
@siraben:matrix.orgsirabenhttps://github.com/NixOS/nixpkgs/issues/381557 cosmoccStdenv proposal15:56:20
@emilazy:matrix.orgemilyAIUI it requires fairly substantial patching of software16:00:53
@emilazy:matrix.orgemilywhich isn't something we'd want to carry in-tree16:00:57
@siraben:matrix.orgsirabenah, if so, bummer16:09:26
@matthewcroughan:defenestrate.itmatthewcroughan joined the room.19:06:28
@matthewcroughan:defenestrate.itmatthewcroughan

I'm pretty close to producing an LLVM/Musl system, but I get

compat-netbsd-aarch64-unknown-linux-musl> --- md2.po ---
compat-netbsd-aarch64-unknown-linux-musl> aarch64-unknown-linux-musl-objcopy: error: 'md2.po': not stripping symbol '.L.str.1' because it is named in a relocation
19:06:48
@matthewcroughan:defenestrate.itmatthewcroughan nix build nixpkgs#pkgsLLVM.pkgsMusl.netbsd.compat -L works though 🤨 19:08:56
@rosscomputerguy:matrix.orgTristan Ross Do a nix-diff between the two drv files of pkgsLLVM.pkgsMusl.netbsd.compat as the base and what you're trying to build as the other. 19:24:18
@rosscomputerguy:matrix.orgTristan RossIf you've configured cross correctly, they'll be the same.19:24:32
@matthewcroughan:defenestrate.itmatthewcroughanIs there no easy way to configure cross identically to `pkgsMusl?19:25:39
@matthewcroughan:defenestrate.itmatthewcroughan * Is there no easy way to configure cross identically to pkgsMusl? 19:25:43
@rosscomputerguy:matrix.orgTristan RossThere is19:25:52
@rosscomputerguy:matrix.orgTristan Ross Your localSystem needs to be the standard GNU triple 19:26:13
@matthewcroughan:defenestrate.itmatthewcroughan LIke I can't do nixpkgs.hostPlatform = pkgsMusl.hostPlatform because that's infinite recursion 19:26:17
@matthewcroughan:defenestrate.itmatthewcroughanbut it's what I want to19:26:19
@rosscomputerguy:matrix.orgTristan Ross Take a look at pkgs/top-level/variants.nix or pkgs/top-level/stage.nix to see what pkgsMusl does 19:26:49
@matthewcroughan:defenestrate.itmatthewcroughan I don't want the GNU triple, I want the same evaluation and code as in pkgs/top-level/variants.nix 19:27:01
@matthewcroughan:defenestrate.itmatthewcroughansince it's always correctly configured there, it should be exposed19:27:12
@rosscomputerguy:matrix.orgTristan Ross You have to use the GNU triple for the buildPlatform 19:27:16
@rosscomputerguy:matrix.orgTristan Ross For hostPlatform, just use the musl one 19:27:28
@matthewcroughan:defenestrate.itmatthewcroughanso for pkgsMusl, the buildPlatform is gnu?19:27:58
@matthewcroughan:defenestrate.itmatthewcroughanand that's just some default of nixpkgs?19:28:02

Show newer messages


Back to Room ListRoom Version: 6