!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

534 Members
109 Servers

Load older messages


SenderMessageTime
23 Oct 2025
@electro__:matrix.orgElectro *

Trying to cross compile the linux kernel with clang, finding that for some reason pkgsCross.aarch64-multiplatform.buildPackages.clang does not have arm_neon.h. Looks like for some reason it's set up to just use --gcc-toolchain= pointing to the aarch64 gcc toolchain, which in my experience always runs into these incompatible header issues. The build finds this one, but it seems some of the types are messed up when it's used for clang. I've always been baffled by clang's intent to be a cross-compiler, but always being so difficult :(

Would appreciate if anyone has any suggestions on how to approach these kinds of problems.

00:22:40
@electro__:matrix.orgElectro Interestingly the pkgsCross.aarch64-multiplatform.clang package does have its own arm_neon.h that presumably works, though of course I want to cross compile... 00:25:56
@matthewcroughan:defenestrate.itmatthewcroughan Grimmauld (any/all): ping 12:24:39
@matthewcroughan:defenestrate.itmatthewcroughanwhat romo is this?12:24:41
@matthewcroughan:defenestrate.itmatthewcroughan* what room is this?12:24:44
@matthewcroughan:defenestrate.itmatthewcroughanimage.png
Download image.png
12:24:50
@matthewcroughan:defenestrate.itmatthewcroughanmatrix :(12:24:55
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)cross-compiling12:24:57
@matthewcroughan:defenestrate.itmatthewcroughanthis is where I was in, not exotic targets 12:25:05
@matthewcroughan:defenestrate.itmatthewcroughanHow do you fix Matrix amnesia?12:50:33
@mrargoz:matrix.orgMr Argoz joined the room.20:53:40
24 Oct 2025
@matthewcroughan:defenestrate.itmatthewcroughan Alyssa Ross: can https://github.com/NixOS/nixpkgs/pull/452642 be merged or do we wait for Perl itself to be fixed? 00:15:35
@matthewcroughan:defenestrate.itmatthewcroughanAlso what about https://github.com/NixOS/nixpkgs/pull/445833 ?00:58:19
@qyliss:fairydust.spaceAlyssa RossThat same fix would have to be made for every other package using that perl header, and everywhere we apply that hack, we'd have to undo it when perl is fixed properly.08:23:33
@qyliss:fairydust.spaceAlyssa RossI'm still waiting for a response on that one. https://github.com/NixOS/nixpkgs/pull/445833#discussion_r238408858408:23:42
@matthewcroughan:defenestrate.itmatthewcroughanI'm not sure on it, so I'll just keep applying it locally08:42:16
@matthewcroughan:defenestrate.itmatthewcroughanYeah better to wait then08:42:35
@neobrain:matrix.org@neobrain:matrix.org left the room.10:30:47
@emilazy:matrix.orgemily FWIW pkgsCross.aarch64-multiplatform.bintoolsNoLibc does not evaluate on x86_64-linux right now. it works on 25.05. 20:54:51
@emilazy:matrix.orgemily broken by 5c1955ff1404eddf3c0379a0573aabe83ac5bca3 20:59:35
25 Oct 2025
@emilazy:matrix.orgemilyhttps://github.com/NixOS/nixpkgs/pull/197674/files this PR confuses me deeply01:04:30
@emilazy:matrix.orgemilywe don't support Canadian cross, right? we never have all of build, host, and target distinct?01:04:43
@emilazy:matrix.orgemilybut this NOP apparently fixed things at some point?01:05:13
@emilazy:matrix.orgemilyI must be too tired to think properly :)01:05:29
@emilazy:matrix.orgemilyok, no, it's not a nop, the derivations before and after differ, I'm just confused01:10:07
@emilazy:matrix.orgemily oh 01:11:38
@emilazy:matrix.orgemily
  libraries = lib.makeExtensible (libraries: let
    callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version monorepoSrc; });
  in {
01:11:45
@emilazy:matrix.orgemilyyeah that. would explain it.01:11:47
@matthewcroughan:defenestrate.itmatthewcroughanWhat is Canadian cross, and where can I learn more about the origins of this terM/14:22:39
@matthewcroughan:defenestrate.itmatthewcroughan* What is Canadian cross, and where can I learn more about the origins of this term?14:22:40

Show newer messages


Back to Room ListRoom Version: 6