!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

334 Members
104 Servers

Load older messages


SenderMessageTime
16 Aug 2023
@rhelmot:matrix.orgrhelmotHi! 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
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moeoooh i want to help with that05:55:59
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moethis seems like the right place to me05:56:07
@rhelmot:matrix.orgrhelmotnice! Okay, I'll make what I have presentable and I can show it to you.05:56:31
@rhelmot:matrix.orgrhelmothttps://github.com/rhelmot/nixpkgs/compare/freebsd%7E%7E...rhelmot:nixpkgs:freebsd06:11:11
@rhelmot:matrix.orgrhelmotThe 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 bootstrap06:11:27
@rhelmot:matrix.orgrhelmotif you're trying to run this yourself you'll need my patches for nix itself06:12:05
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moeby the native compiler, do you mean like, compiling things natively in bsd, as in, not using the linux emulation layer ?06:12:08
@rhelmot:matrix.orgrhelmotI have never installed the linux emulation layer06:12:25
@rhelmot:matrix.orgrhelmotby native I mean "links against the system libraries"06:12:34
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moei thought it was part of freebsd by default06:12:38
@rhelmot:matrix.orgrhelmot * by native I mean "links against the system libc"06:12:38
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moe * i thought it was part of freebsd by default, whoops06:13:01
@rhelmot:matrix.orgrhelmotit might be! but I'm doing freebsd mostly as a hobby so I might as well commit to the ecosystem06:14:06
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moeah ok 06:14:11
@rhelmot:matrix.orgrhelmotit'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 nonsense06:16:53
@rhelmot:matrix.orgrhelmotwhen 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 last06:17:34
@rhelmot:matrix.orgrhelmot(I am on FreeBSD-14-CURRENT)06:17:40
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moeso 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
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moeaiui06:19:06
@rhelmot:matrix.orgrhelmotoh! those are here: https://github.com/rhelmot/nix06:19:40
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moeoh excellent06:19:52
@7c6f434c:nitro.chat7c6f434cStupid 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:matrix.orgrhelmotThat sounds super cool13:06:12
@rhelmot:matrix.orgrhelmotI will look into doing that. I should disclose: I have literally never used nix for anything before this13:06:38
@rhelmot:matrix.orgrhelmotSo I don’t have a great grasp of norms!13:06:52
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moewoah nice13:14:46
@hive:the-apothecary.clubπŸ‘‰@crystallinefire:chat.solarpunk.moegood job coming this far13:14:55
@rhelmot:matrix.orgrhelmot 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:tunstall.xyzAlex
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

Show newer messages


Back to Room ListRoom Version: 6