!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

577 Members
127 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
24 May 2025
@fromtheeast:matrix.orgfromtheeast710 joined the room.05:09:22
@neobrain:matrix.orgneobrain joined the room.14:01:33
@neobrain:matrix.orgneobrain Hi! Having a bit of trouble getting off the ground with cross-compiling in a nix-shell. I'm working on a mixed-architecture project (main component runs on ARM64, but additionally some x86-64 executables must be built) and I can't use binfmt_misc/qemu.
Do nix/nixpkgs still provide a simple way to install a cross-compiler (built for ARM64 and targeting x86-64) that I can manually invoke in a CMakeToolchain?
14:46:06
@neobrain:matrix.orgneobrain ... of course as usual, after an hour of looking the answer presents itself right after asking: x86Pkgs.buildPackages.gcc seems to be what I'm looking for (instead of x86Pkgs.gcc) 14:48:31
@neobrain:matrix.orgneobrain * ... of course as usual, after an hour of looking the answer presents itself right after asking: pkgsCross.gnu64.buildPackages.gcc seems to be what I'm looking for (instead of pkgsCross.gnu64.gcc) 14:48:58
@neobrain:matrix.orgneobrainAny idea how I can build a sysroot with libc/libstdc++ headers? I know I need to use pkgs.buildEnv, but I'm struggling to find the right packages that contain the headers18:15:44

Show newer messages


Back to Room ListRoom Version: 6