!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

571 Members
124 Servers

Load older messages


SenderMessageTime
12 Sep 2025
@rosssmyth:matrix.orgrosssmythI would like to fix rust cross compiling for mingwW64, as it has been broken for a while, but I would also like to add a test so it doesn't break in the future is my motivation 01:48:00
13 Sep 2025
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.09:45:58
@corridor4572:matrix.orgRichInOverdraft removed their profile picture.16:44:29
@niklas.foerster:scs.ems.hostNiklas Förster changed their display name from Niklas Förster to Niklas Förster (vacation until 29.09.).19:01:50
14 Sep 2025
@emma:rory.gayEmma [it/its] joined the room.08:40:01
@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

Show newer messages


Back to Room ListRoom Version: 6