!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

582 Members
129 Servers

Load older messages


SenderMessageTime
16 Apr 2025
@rosscomputerguy:matrix.orgTristan RossYeah if you find a case where things just completely do not match then report it to the stdenv team.02:18:58
@rosssmyth:matrix.org@rosssmyth:matrix.orgAnd then Zig, at least last I checked, the triples were different from GCC and Clang. 02:19:11
@rosscomputerguy:matrix.orgTristan RossSort of02:19:50
@rosscomputerguy:matrix.orgTristan RossMost things should work.02:19:58
@rosssmyth:matrix.org@rosssmyth:matrix.orgI don't particularly care about most things though02:20:08
@rosscomputerguy:matrix.orgTristan RossBut if you find an issue with Zig, lmk since I maintain it.02:20:13
@rosssmyth:matrix.org@rosssmyth:matrix.orgI've not tried using Zig as a C compiler in about two years because of the mess I had triying to use it before,02:20:39
@rosscomputerguy:matrix.orgTristan RossYeah, though it's hard to know what the cases are without knowing what the cases are. So for now, we've stuck with a best effort thing.02:20:43
@rosssmyth:matrix.org@rosssmyth:matrix.orghttps://github.com/NixOS/nixpkgs/issues/39534902:20:58
@rosscomputerguy:matrix.orgTristan RossOk, you could try it now lol. A lot has changed in two years.02:21:05
@rosssmyth:matrix.org@rosssmyth:matrix.orgThis is the arm-none-eabi02:21:08
@rosscomputerguy:matrix.orgTristan RossYeah, I'll have to look into this when I have time.02:21:34
@rosscomputerguy:matrix.orgTristan Ross Also, LLVM doesn't really use arch-os-abi. That actually might cause problems. 02:22:03
@rosscomputerguy:matrix.orgTristan Ross arch-vendor-os-abi is a better way of doing it. 02:22:13
@rosssmyth:matrix.org@rosssmyth:matrix.orgyes02:22:19
@rosssmyth:matrix.org@rosssmyth:matrix.orgI am glad LLVM tries to be mostly sane02:22:29
@rosssmyth:matrix.org@rosssmyth:matrix.orgLooks like Zig forwards the triples to the Clang backend now days. Which is great. I remember the blog post Andrew Kelly wrote about it being a drop-in replacement for Clang for cross-compilation and it just wasn't true at all when the blog post was written because the triples were so different02:23:44
@rosscomputerguy:matrix.orgTristan RossTbf, there's always going to be edge cases that aren't always going to be checked.02:24:34
@rosssmyth:matrix.org@rosssmyth:matrix.orgThe edge case was...all of windows02:24:45
@rosscomputerguy:matrix.orgTristan RossOh02:27:33
@augyg:matrix.orglazyLambda set a profile picture.03:24:14
@alexandrutocar:matrix.org- joined the room.11:46:48
17 Apr 2025
@axelparolta:matrix.orgaxel joined the room.18:02:30
@fliegendewurst:matrix.orgFliegendeWurstAre there really platforms where the byte order is different for floats and integers?19:09:55
@fliegendewurst:matrix.orgFliegendeWurst* Are there really platforms where the byte order is different for floats and integers? I'm wondering, because I found this check: https://github.com/john30/ebusd/blob/25.1/CMakeLists.txt#L139-L165 But could not find any platform on godbolt that would trigger the other case.19:15:46
@rosssmyth:matrix.org@rosssmyth:matrix.orgFor IEEE floats, no. 19:38:59
@rosssmyth:matrix.org@rosssmyth:matrix.orgI think PDP had a funny thing where this was not true, but that was also before IEEE floats19:39:34
@rosssmyth:matrix.org@rosssmyth:matrix.org* I think PDP had a funny thing where this was not always true, but that was also before IEEE floats19:39:50
@rosssmyth:matrix.org@rosssmyth:matrix.orgLLVM makes a lot of assumptions about the fp environment, so I would be surprised if llvm even supported such a thing.19:41:27
@rosssmyth:matrix.org@rosssmyth:matrix.org* LLVM makes a lot of implicit assumptions about the fp environment, so I would be surprised if llvm even supported such a thing.19:43:28

Show newer messages


Back to Room ListRoom Version: 6