!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
127 Servers

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


SenderMessageTime
21 May 2025
@weethet:catgirl.cloudWeetHet changed their profile picture.10:59:09
22 May 2025
@rhelmot:matrix.orgrhelmotperl modules cross is an irredeemable nightmare22:29:14
@rhelmot:matrix.orgrhelmotI cannot figure out how to get it to build extension modules that do not link the build platform's libc...22:30:16
@rhelmot:matrix.orgrhelmotnew problem - https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/misc/gdb/default.nix#L40 I don't think this is correct, since when I build gdb with buildPlatform = linux and hostPlatform = freebsd, this ends up being a linux path pulling glibc into the closure, which is completely useless.22:56:58
@rhelmot:matrix.orgrhelmotdoes anyone know how to test whatever that line is supposed to support?22:57:41
@rhelmot:matrix.orgrhelmothttps://github.com/NixOS/nixpkgs/pull/73574 concerning...23:03:10
23 May 2025
@trofi:matrix.orgtrofiI thin it should auto-load .py gdb script for target libstdc++ when yoiu load c++ based programs to debug14:53:59
@trofi:matrix.orgtrofi /nix/store/7c0v0kbrrdc2cqgisi78jdqxn73n3401-gcc-14.2.1.20250322-lib/lib/libstdc++.so.6.0.33-gdb.py 14:55:05
@trofi:matrix.orgtrofi And given that it does not work on gdb gdb I think it is missing /lib subdir. 14:59:06
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
@neobrain:matrix.orgneobrain Looks like libgcc.out is the one 18:37:28
@neobrain:matrix.orgneobrain * Looks like libgcc.out is the one, or rather pkgs.pkgsCross.gnu64.gcc-unwrapped for the cross-compiler 18:45:41
27 May 2025
@c2vi:matrix.orgc2vi set a profile picture.11:17:35
29 May 2025
@emily:woof.ripemily 🐾 changed their profile picture.22:22:54
23 Sep 2025
@rick:matrix.ciphernetics.nlRick (Mindavi) left the room.07:35:15
29 May 2025
@emily:woof.ripemily 🐾 changed their profile picture.22:33:47
@emily:woof.ripemily 🐾 changed their profile picture.22:34:14
31 May 2025
@trofi:matrix.orgtrofi left the room.13:48:53

Show newer messages


Back to Room ListRoom Version: 6