18 Jun 2024 |
rhelmot | sure lol | 18:23:48 |
rhelmot | I'm trying to do freebsd cross without nix in order to make the perl guy happy | 18:24:59 |
rhelmot | surprisingly clang + sshfs makes it trivial | 18:25:10 |
John Ericson | In reply to @rhelmot:matrix.org surprisingly clang + sshfs makes it trivial oh how so? | 18:27:32 |
John Ericson | get the deps from native via sshfs? | 18:27:38 |
rhelmot | yeah just pass the sysroot flag | 18:27:48 |
John Ericson | nice | 18:27:54 |
John 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 |
| reno joined the room. | 18:44:50 |
John Ericson | rhelmot: is __FreeBSD__ defined to any particular value? | 20:31:05 |
rhelmot | yes I believe it's the userland version? | 20:31:23 |
John Ericson | rhelmot: I wasn't getting a value with a echo __FreeBSD__ | $CC -x c - -E check | 20:32:30 |
John Ericson | the hidapi build seems broken | 20:32:38 |
John Ericson | oh wait now I am | 20:32:54 |
John Ericson | it is 8 huh | 20:32:58 |
rhelmot | ? | 20:33:03 |
rhelmot | odd | 20:33:04 |
rhelmot | it's 14 on my machine | 20:33:36 |
rhelmot | do you have.. FreeBSD 8 somehow? | 20:33:48 |
John Ericson | rhelmot: in the cross environment | 20:36:22 |
John Ericson | https://github.com/libusb/hidapi/commit/0cbc3a409bcb45cefb3edbf144d64ddd4e0821ce | 20:36:24 |
John Ericson | I noticed cause this | 20:36:30 |
rhelmot | well that's. concerning | 20:36:56 |
trofi | 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 | in the cases we are using gcc we are passing the userland version (14 usually) to gcc | 20:39:34 |
rhelmot | what's up with clang | 20:39:39 |
trofi | Should be the same: clang/lib/Basic/Targets/OSTargets.h: Builder.defineMacro("__FreeBSD__", Twine(Release)); | 20:40:54 |
rhelmot | hmmm.... I guess we can try hacking the triple we pass to clang as x86_64-unknown-freebsd${libc.version}? | 20:41:40 |
trofi | 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 joined the room. | 18:01:29 |