15 Apr 2025 |
Tristan Ross | But is there a libc which supports it? | 04:40:00 |
dramforever | but i don't know how to add it | 04:40:04 |
Tristan Ross | Oh | 04:40:08 |
Tristan Ross | That's easy | 04:40:12 |
Tristan Ross | You set localSystem.system to your host | 04:40:42 |
Tristan Ross | crossSystem.config is that triple. | 04:40:59 |
Tristan Ross | And that's what you pass to the attribute set when importing nixpkgs | 04:41:18 |
dramforever | error: Unknown ABI: gnux32 | 04:42:12 |
Tristan Ross | Ah yeah, we don't support that ABI | 04:42:31 |
dramforever | i know this is possible | 04:42:34 |
dramforever | because we already have mips64el-unknown-linux-gnuabin32 | 04:42:44 |
dramforever | so there should be some way of getting that but x86_64 | 04:42:53 |
dramforever | but i don't know what i need to do | 04:43:16 |
Tristan Ross | https://github.com/NixOS/nixpkgs/blob/master/lib/systems/parse.nix#L652 these are the abis we support | 04:43:22 |
Tristan Ross | We'd have to explicitly add it in. | 04:43:55 |
dramforever | the great formatting kinda ruined this file 😥 | 04:44:28 |
Tristan Ross | https://github.com/NixOS/nixpkgs/blob/master/lib/systems/examples.nix may not be a bad idea to add the target here for easy support in pkgsCross | 04:44:40 |
Tristan Ross | In reply to @dramforever:matrix.org the great formatting kinda ruined this file 😥 Lol yeah, I was planning on making improvements there but haven't had time to do it. | 04:45:19 |
Tristan Ross | https://github.com/NixOS/nixpkgs/pull/391695 would mess with the formatting and make things easier to extend and not always need to upstream. | 04:46:15 |
dramforever | actually gnux32 might be a debian thing | 04:47:01 |
Tristan Ross | Oh | 04:47:05 |
Tristan Ross | What is it the ABI called in GCC or glibc? | 04:47:34 |
dramforever | ... gnux32 | 04:47:49 |
Tristan Ross | I can find out what we call it in LLVM | 04:47:53 |
dramforever | i see it in gcc | 04:48:22 |
Tristan Ross | Oh we have GNUILP32 and GNUX32 in LLVM | 04:49:05 |
dramforever | it should be x86_64-unknown-linux-gnux32 in llvm as well | 04:50:00 |
Tristan Ross | Yeah, I was looking at the enum | 04:52:08 |
Tristan Ross | Idk if the LLVM docs do reference it | 04:52:20 |
Tristan Ross | But this means we do have two different abis | 04:52:38 |