| 6 Jan 2025 |
lzcunt | I should probably read config.log | 18:01:46 |
Artturin | What's your target and what attr are you building? | 18:10:10 |
lzcunt | The target is the mlibc target that I'm working on | 18:10:42 |
lzcunt | mlibc does support static on linux, but i can't get it to build. right now only nonstatic builds | 18:13:00 |
lzcunt | The attr is stdenvNoLibc.stdenv.cc.cc | 18:13:01 |
lzcunt | sorry had a short connection loss | 18:13:12 |
lzcunt | * mlibc does support static on linux, but i can't get it to build. right now only nonstatic builds. and this shouldn't really be related to mlibc because it's built without headers and is the nolibc compiler | 18:19:33 |
| 7 Jan 2025 |
DavHau | Can we revert this PR? https://github.com/NixOS/nixpkgs/pull/169475
It generally seems to break cross compilation due to running OOM. What ever it fixes can't seem to be more important that being able to cross compile at all | 06:58:29 |
| sss | 09:05:12 |
| sss changed their profile picture. | 09:06:25 |
otanaut | Hey, is there a way to build AND evaluate on a remote builder? | 22:54:45 |
Tristan Ross | You could ssh in and run an eval. I think there's a way to copy a dev file and its dependencies to a remote? | 23:07:06 |
otanaut | At the end, I am trying to contribute a package definition and test whether I can get the build right. Since I am on a Mac, I am using remote builders. coping around files, sshing and evaling doesnt sound continent for the development. | 23:24:16 |
otanaut | * At the end, I am trying to contribute a package definition and test whether I can get the build right. Since I am on a Mac, I am using remote builders. copying around files, sshing and evaling doesnt sound convenient for development. | 23:25:58 |
| 8 Jan 2025 |
DavHau | otanaut: try nix run nixpgks#nix-fast-build -- -f your_flake#full.attr.path --remote root@example.com This will copy your flake to the remote and eval it there. | 04:22:17 |
| Morgan (@numinit) joined the room. | 08:32:51 |
| 9 Jan 2025 |
lzcunt | I've been debugging for a long time | 16:43:03 |
lzcunt | it seems libstdc++'s link test for binutilsNoLibc's ld fails because the link test expects a libc so it can't find crt1.o and other files | 16:45:11 |
lzcunt | So libstdc++ incorrectly believes binutilsNoLibc when built for a static target does not support -static | 16:45:45 |
lzcunt | do yall have any idea how this could be fixed? I couldn't find how musl handles this | 16:47:45 |
lzcunt | oh musl probably doesn't need libstdc++ right? | 16:49:49 |
lzcunt | could someone test https://github.com/NixOS/nixpkgs/pull/370683 with musl to see if it hits the same issue in pkgsStatic.stdenvNoLibc.cc.cc? | 16:51:46 |
lzcunt | * could someone test https://github.com/NixOS/nixpkgs/pull/370683 with musl to see if it hits the same issue in pkgsStatic.stdenvNoLibc.cc.cc? My poor laptop takes a bazillion years to compile gcc | 16:52:16 |
lzcunt | Yep I was right. Time to comment on the PR so it isn't accidentally merged until I figure out how this can be fixed | 17:06:28 |
lzcunt | * Yep I was right, it breaks musl too. Time to comment on the PR so it isn't accidentally merged until I figure out how this can be fixed | 17:08:47 |
emily | can mark as draft fwiw :) | 17:34:00 |
emily | I guess you could probably just override the detection for -static support, but I imagine not having a libc will probably break libstdc++ in general. | 17:34:29 |
lzcunt | i'm trying to understand how the managarm people fixed this so I can do the same but got a little busy, will look further into it this weekend | 17:49:54 |
lzcunt | I couldn't find how to mark a PR that's not a draft as a draft lol | 17:50:25 |
Alyssa Ross | It's under the reviewers | 17:51:13 |