!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

255 Members
86 Servers

Load older messages


SenderMessageTime
18 Jun 2024
@rhelmot:matrix.orgrhelmotsure lol18:23:48
@rhelmot:matrix.orgrhelmotI'm trying to do freebsd cross without nix in order to make the perl guy happy18:24:59
@rhelmot:matrix.orgrhelmotsurprisingly clang + sshfs makes it trivial18:25:10
@Ericson2314:matrix.orgJohn Ericson
In reply to @rhelmot:matrix.org
surprisingly clang + sshfs makes it trivial
oh how so?
18:27:32
@Ericson2314:matrix.orgJohn Ericsonget the deps from native via sshfs?18:27:38
@rhelmot:matrix.orgrhelmotyeah just pass the sysroot flag18:27:48
@Ericson2314:matrix.orgJohn Ericsonnice18:27:54
@Ericson2314:matrix.orgJohn Ericson
In reply to @Ericson2314:matrix.org
https://github.com/NixOS/nixpkgs/pull/320840 a few BSD cleanups in here
After this one is merged, I have one doing your noLibc trick for all the bsds, and then I can delete a lot of *Cross bullshit attributes
18:28:17
@paparodeo:matrix.orgreno joined the room.18:44:50
@Ericson2314:matrix.orgJohn Ericson rhelmot: is __FreeBSD__ defined to any particular value? 20:31:05
@rhelmot:matrix.orgrhelmotyes I believe it's the userland version?20:31:23
@Ericson2314:matrix.orgJohn Ericson rhelmot: I wasn't getting a value with a echo __FreeBSD__ | $CC -x c - -E check 20:32:30
@Ericson2314:matrix.orgJohn Ericsonthe hidapi build seems broken20:32:38
@Ericson2314:matrix.orgJohn Ericsonoh wait now I am20:32:54
@Ericson2314:matrix.orgJohn Ericsonit is 8 huh20:32:58
@rhelmot:matrix.orgrhelmot?20:33:03
@rhelmot:matrix.orgrhelmotodd20:33:04
@rhelmot:matrix.orgrhelmotit's 14 on my machine20:33:36
@rhelmot:matrix.orgrhelmotdo you have.. FreeBSD 8 somehow?20:33:48
@Ericson2314:matrix.orgJohn Ericson rhelmot: in the cross environment 20:36:22
@Ericson2314:matrix.orgJohn Ericsonhttps://github.com/libusb/hidapi/commit/0cbc3a409bcb45cefb3edbf144d64ddd4e0821ce20:36:24
@Ericson2314:matrix.orgJohn EricsonI noticed cause this20:36:30
@rhelmot:matrix.orgrhelmotwell that's. concerning20:36:56
@trofi:matrix.orgtrofi At least gcc defiles in as FBSD_MAJOR : https://github.com/gcc-mirror/gcc/blob/master/gcc/config/freebsd-spec.h#L39 which is extracted from --target= definition: https://github.com/gcc-mirror/gcc/blob/master/gcc/config.gcc#L851 20:38:59
@rhelmot:matrix.orgrhelmotin the cases we are using gcc we are passing the userland version (14 usually) to gcc20:39:34
@rhelmot:matrix.orgrhelmotwhat's up with clang20:39:39
@trofi:matrix.orgtrofi Should be the same: clang/lib/Basic/Targets/OSTargets.h: Builder.defineMacro("__FreeBSD__", Twine(Release)); 20:40:54
@rhelmot:matrix.orgrhelmothmmm.... I guess we can try hacking the triple we pass to clang as x86_64-unknown-freebsd${libc.version}?20:41:40
@trofi:matrix.orgtrofi https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/OSTargets.h#L190 is the bit of context. Should use unsigned Release = Triple.getOSMajorVersion();. 20:43:35
19 Jun 2024
@flameopathic:matrix.orgflameopathic joined the room.18:01:29

Show newer messages


Back to Room ListRoom Version: 6