18 Jun 2024 |
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 |
| Zach joined the room. | 21:23:45 |
20 Jun 2024 |
| @yuka:yuka.dev left the room. | 13:45:23 |
John Ericson | rhelmot: https://github.com/NixOS/nixpkgs/pull/321301 new one good for review | 17:07:10 |
John Ericson | Also it would be nice if you could do the same thing for FreeBSD :) | 17:07:21 |
John Ericson | rhelmot: am I missing some thing about camel case for libcMinimal ? | 20:04:38 |
John Ericson | fair enough with systemdMinimal | 20:05:15 |
21 Jun 2024 |
| @samueldr:matrix.org left the room. | 06:07:26 |