!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
127 Servers

Load older messages


SenderMessageTime
24 May 2025
@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.org@trofi:matrix.org left the room.13:48:53
1 Jun 2025
@htdar:matrix.orghtdar joined the room.11:02:21
@htdar:matrix.orghtdarRedacted or Malformed Event11:12:55
@htdar:matrix.orghtdarRedacted or Malformed Event11:13:16
@htdar:matrix.orghtdarRedacted or Malformed Event11:14:00
@seanthw:matrix.orgSean Thawe joined the room.23:37:43
2 Jun 2025
@skoove:catgirl.cloudskoove joined the room.21:17:15
4 Jun 2025
@stas:mainframe.lvStas joined the room.07:13:59
@deeok:matrix.org@deeok:matrix.org joined the room.15:05:06
5 Jun 2025
@skamdart:matrix.orgSkamDart joined the room.08:03:21
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all) I wanted to build https://github.com/NixOS/nixpkgs/pull/414169 on android cross because upstream did some android changes and figured i might as well try.
However: both elfutils and stdenv is completely broken and does not build
08:43:59
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all) (llvmPackages.compiler-rt is what is broken in the stdenv) 08:45:17
@alexfmpe:matrix.orgalexfmpe FWIW pkgsCross.aarch64-android-prebuilt is in much better shape 11:01:13
@rosscomputerguy:matrix.orgTristan RossDoes https://github.com/NixOS/nixpkgs/pull/409265 fix the issue?15:52:28
@rosscomputerguy:matrix.orgTristan RossOr is it this? https://github.com/NixOS/nixpkgs/issues/38060415:53:04
6 Jun 2025
@creepinson:matrix.org@creepinson:matrix.org left the room.00:18:39
@haskal:matrix.orgxenia joined the room.03:08:39
@haskal:matrix.orgxenia

is it possible to build a cross toolchain for rust and llvm for bare metal thumbv8m.main-none-eabihf (ie raspberry pi pico 2) within nixpkgs from source
i patched lib/systems/parse.nix to allow "thumbv8m.main" as a cpu and i'm trying

crossSystem = {
  config = "thumbv8m.main-none-eabihf";
  libc = "newlib";
  useLLVM = true;
  rust.rustcTarget = "thumbv8m.main-none-eabihf";
};

and then attempting to build buildPackages.rustc and i'm immediately running into errors building compiler-rt

i can post logs/a complete example but like my first question is whether this is a path worth following at all? has anyone ever done something like this?

03:15:45
@k900:0upti.meK900Doubt it, you'll need some weird stdenv06:30:40
@k900:0upti.meK900And newlib probably isn't it06:30:44

Show newer messages


Back to Room ListRoom Version: 6