| 16 Aug 2023 |
rhelmot | Hi! I'm trying to revive the FreeBSD nix/nixpkgs support. I've gotten as far as being able to compile moderately interesting packages with the bootstrap compiler (FreeBSD-native clang), but when I try to build gcc everything falls apart and I think it's me doing something wrong with the stdenv. Is this the right place to ask for help with that? | 05:55:34 |
π@crystallinefire:chat.solarpunk.moe | oooh i want to help with that | 05:55:59 |
π@crystallinefire:chat.solarpunk.moe | this seems like the right place to me | 05:56:07 |
rhelmot | nice! Okay, I'll make what I have presentable and I can show it to you. | 05:56:31 |
rhelmot | https://github.com/rhelmot/nixpkgs/compare/freebsd%7E%7E...rhelmot:nixpkgs:freebsd | 06:11:11 |
rhelmot | The first commit is where I got as far as I could with the native compiler. the second commit is where I attempted to do the full bootstrap | 06:11:27 |
rhelmot | if you're trying to run this yourself you'll need my patches for nix itself | 06:12:05 |
π@crystallinefire:chat.solarpunk.moe | by the native compiler, do you mean like, compiling things natively in bsd, as in, not using the linux emulation layer ? | 06:12:08 |
rhelmot | I have never installed the linux emulation layer | 06:12:25 |
rhelmot | by native I mean "links against the system libraries" | 06:12:34 |
π@crystallinefire:chat.solarpunk.moe | i thought it was part of freebsd by default | 06:12:38 |
rhelmot | * by native I mean "links against the system libc" | 06:12:38 |
π@crystallinefire:chat.solarpunk.moe | * i thought it was part of freebsd by default, whoops | 06:13:01 |
rhelmot | it might be! but I'm doing freebsd mostly as a hobby so I might as well commit to the ecosystem | 06:14:06 |
π@crystallinefire:chat.solarpunk.moe | ah ok | 06:14:11 |
rhelmot | it's been a few months since I touched this so I will need to do a fat rebase. I had been debugging one-on-one with a friend who is a nixos contributor but I think she deserves better than to be the sole recipient of my nonsense | 06:16:53 |
rhelmot | when compiling this on either of those commits I am getting a weird error with coreutils that I don't remember getting before so I think something changed in freebsd's version of llvm since I tried last | 06:17:34 |
rhelmot | (I am on FreeBSD-14-CURRENT) | 06:17:40 |
π@crystallinefire:chat.solarpunk.moe | so anyways, as it stands now, there's no way i can test this until you've rebased and published the patches for nix ? | 06:18:59 |
π@crystallinefire:chat.solarpunk.moe | aiui | 06:19:06 |
rhelmot | oh! those are here: https://github.com/rhelmot/nix | 06:19:40 |
π@crystallinefire:chat.solarpunk.moe | oh excellent | 06:19:52 |
7c6f434c | Stupid question: if FreeBSD ships clang and you are interested in following the ecosystem, maybe you can start with bootstrapped clang built against rebuilt FreeBSD libc (somewhat like darwin platform but with an actual free platform you can build and even patch)? | 08:15:27 |
rhelmot | That sounds super cool | 13:06:12 |
rhelmot | I will look into doing that. I should disclose: I have literally never used nix for anything before this | 13:06:38 |
rhelmot | So I donβt have a great grasp of norms! | 13:06:52 |
π@crystallinefire:chat.solarpunk.moe | woah nice | 13:14:46 |
π@crystallinefire:chat.solarpunk.moe | good job coming this far | 13:14:55 |
rhelmot | The main problem is that I think that FreeBSD ships its libc with its kernel both so far as source and binary go. Is it kosher to just build one piece of a thing if Iβm downloading a much bigger thing? | 13:16:37 |
Alex | In reply to @rhelmot:matrix.org The main problem is that I think that FreeBSD ships its libc with its kernel both so far as source and binary go. Is it kosher to just build one piece of a thing if Iβm downloading a much bigger thing? I think there's already precedent for doing so when building some of the stuff in linuxPackages, e.g. perf | 14:19:33 |