!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

573 Members
125 Servers

Load older messages


SenderMessageTime
14 Jul 2025
@emilazy:matrix.orgemilysince it is likely you will need to patch the package still14:59:18
@emilazy:matrix.orgemily(once rebased, of course)14:59:28
@quadradical:federated.nexusQuadRadical (Ping)sure yeah, ill try building as is once its rebased but if not ill pull it locally14:59:36
@Ericson2314:matrix.orgJohn Ericson Toma: feel free to try removing those exceptions 20:31:35
@Ericson2314:matrix.orgJohn Ericsonhooks should be nativeBuildInputs most of the time, which can make splicing tricky20:32:01
@Ericson2314:matrix.orgJohn EricsonI would expect it to be hard to remove them20:32:29
@sananatheskenana:matrix.orglzcuntHey there, I'm trying to build for freestanding loongarch64, however it seems like we default on "newlib" as the libc for both "-none" and "-elf" but newlib doesn't support loongarch64.20:54:04
@artturin:matrix.orgArtturin Tried specifying libc = "something";? 20:55:31
@artturin:matrix.orgArtturin * Tried specifying libc = "something"; in the platform config? 20:55:43
@sananatheskenana:matrix.orglzcuntyea ofc that works but it's awkward that -none means newlib especially for architectures that newlib doesn't support20:56:05
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/0455292066a49d3670dd7709ee82deb5531aa3c4/lib/systems/default.nix#L15220:56:28
@sananatheskenana:matrix.orglzcuntshould nixpkgs maybe not default to newlib for those architectures?20:57:59
@sananatheskenana:matrix.orglzcuntok so this doesn't work21:06:43
@artturin:matrix.orgArtturinIn what way?21:07:32
@artturin:matrix.orgArtturinIn the way that it doesn't override the libc selection in systems/default.nix?21:07:47
@artturin:matrix.orgArtturinOr just a build issue 21:07:53
@sananatheskenana:matrix.orglzcuntI'm trying to get a blame 1 minute21:13:12
@sananatheskenana:matrix.orglzcunthttps://github.com/NixOS/nixpkgs/blob/0455292066a49d3670dd7709ee82deb5531aa3c4/pkgs/top-level/all-packages.nix#L8188 this wasn't updated in 5c1955ff1404eddf3c0379a0573aabe83ac5bca3 (libcCross: Remove!)21:21:31
@sananatheskenana:matrix.orglzcuntbut even if it was, setting anything other than null would throw21:21:51
@sananatheskenana:matrix.orglzcunt and gcc can't target something with libc = null; because it uses the libc name in the include dir path 21:24:20
@sananatheskenana:matrix.orglzcuntbasically in several places nixpkgs pretty much requires newlib for freestanding targets21:25:17
@sananatheskenana:matrix.orglzcunt* basically in several places nixpkgs pretty much requires newlib (or another libc) for freestanding targets21:25:24
@sananatheskenana:matrix.orglzcunti guess i should make gcc deal with libc = null;21:26:44
@sananatheskenana:matrix.orglzcuntcuz that's the best way to encode "no libc not even newlib"21:26:57
@rosscomputerguy:matrix.orgTristan RossThat's the preferred way21:28:31
@rosscomputerguy:matrix.orgTristan RossNull means not specificed or unsupported21:28:48
@sananatheskenana:matrix.orglzcuntexpect a fix tomorrow then21:29:25
@sananatheskenana:matrix.orglzcuntfor this too21:29:34
15 Jul 2025
@sananatheskenana:matrix.orglzcunthttps://github.com/NixOS/nixpkgs/pull/425376 is ready and fixes my issues11:29:03
16 Jul 2025
@quadradical:federated.nexusQuadRadical (Ping) btw @Alyssa Ross, are you planning on rebasing https://github.com/NixOS/nixpkgs/pull/196333? 01:46:04

Show newer messages


Back to Room ListRoom Version: 6