!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

572 Members
125 Servers

Load older messages


SenderMessageTime
29 Jun 2025
@emilazy:matrix.orgemilyit is possible to fix this and eliminate our wrappers entirely for LLVM but takes a lot of work17:11:02
@emilazy:matrix.orgemily (I outlined a plan for it in #stdenv:nixos.org yesterday) 17:11:10
@emilazy:matrix.orgemily you can use clang-unwrapped if you don't need Nixpkgs dependencies, otherwise you need a proper cross package set 17:11:26
@rosscomputerguy:matrix.orgTristan RossYeah, it's something I would like to see but just isn't there yet.17:11:36
@electro__:matrix.orgElectroSounds good, that's all really helpful to know, thanks!17:13:55
@jonhermansen:matrix.orgjonhermansen joined the room.22:08:55
30 Jun 2025
@alexfmpe:matrix.orgalexfmpe

trying to run a dynamicly linked pkgsCross.aarch-android executable on qemu-aarch, but it wants /system/bin/linker64
now, I see this path is present on my actual phone, and seems to be working in adb shell so it sounds like it's correct for the actual platform

rather than patchelf, I was thinking of doing qemu-aarch <the-linker> <the-executable> but don't know what to build to get an actual aarch64 linker

I do have /lib64/ld-linux-x86-64.so.2 on my x86 nixos but not /lib/ld-linux-aarch64.so.1, which I expect would be present on aarch nixos so it must be available somewhere?

11:54:50
@artturin:matrix.orgArtturin
In reply to @alexfmpe:matrix.org

trying to run a dynamicly linked pkgsCross.aarch-android executable on qemu-aarch, but it wants /system/bin/linker64
now, I see this path is present on my actual phone, and seems to be working in adb shell so it sounds like it's correct for the actual platform

rather than patchelf, I was thinking of doing qemu-aarch <the-linker> <the-executable> but don't know what to build to get an actual aarch64 linker

I do have /lib64/ld-linux-x86-64.so.2 on my x86 nixos but not /lib/ld-linux-aarch64.so.1, which I expect would be present on aarch nixos so it must be available somewhere?

/lib/ld... is a stub and not functional
https://search.nixos.org/options?channel=25.05&show=environment.stub-ld.enable

https://github.com/NixOS/nixpkgs/blob/nixos-25.05/nixos/modules/config/ldso.nix

11:59:25
@alexfmpe:matrix.orgalexfmpeah fair, still, the linker must be somewhere?12:00:16
@alexfmpe:matrix.orgalexfmpedo...do we not have arm nixos?12:01:19
@k900:0upti.meK900The Android dynamic loader isn't compatible12:01:41
@k900:0upti.meK900It's an entirely different ABI12:01:46
@alexfmpe:matrix.orgalexfmpeah sadness12:06:13
3 Jul 2025
@thewholeworldisburning123:rougebordeaux.xyzmissbehaves joined the room.19:19:10
@thewholeworldisburning123:rougebordeaux.xyzmissbehaves set a profile picture.19:21:05
4 Jul 2025
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:33:25
@dramforever:matrix.orgdramforevercan you paste the full log02:35:21
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:40:52
@dramforever:matrix.orgdramforeverthis is a problem with mimalloc, fixed here https://github.com/microsoft/mimalloc/commit/951538d469f72532e43a2437d556a73518f5dde402:50:51
@dramforever:matrix.orgdramforeveroh wait02:51:10
@dramforever:matrix.orgdramforeveri'm not so sure now, let me check02:51:16
@dramforever:matrix.orgdramforeverbut it should be a mimalloc problem nonetheless02:51:47
@dramforever:matrix.orgdramforeversorry that was an old one02:52:21
@dramforever:matrix.orgdramforeveranyway updating mimalloc should fix it02:53:54
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:54:11
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:54:29
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:55:00
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:55:03
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:55:54
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:55:56

Show newer messages


Back to Room ListRoom Version: 6