!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

574 Members
127 Servers

Load older messages


SenderMessageTime
9 Jan 2025
@sananatheskenana:matrix.orglzcuntit 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 files16:45:11
@sananatheskenana:matrix.orglzcuntSo libstdc++ incorrectly believes binutilsNoLibc when built for a static target does not support -static16:45:45
@sananatheskenana:matrix.orglzcuntdo yall have any idea how this could be fixed? I couldn't find how musl handles this16:47:45
@sananatheskenana:matrix.orglzcuntoh musl probably doesn't need libstdc++ right?16:49:49
@sananatheskenana:matrix.orglzcunt 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
@sananatheskenana:matrix.orglzcunt * 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
@sananatheskenana:matrix.orglzcuntYep I was right. Time to comment on the PR so it isn't accidentally merged until I figure out how this can be fixed17:06:28
@sananatheskenana:matrix.orglzcunt* 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 fixed17:08:47
@emilazy:matrix.orgemilycan mark as draft fwiw :)17:34:00
@emilazy:matrix.orgemily 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
@sananatheskenana:matrix.orglzcunti'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 weekend17:49:54
@sananatheskenana:matrix.orglzcuntI couldn't find how to mark a PR that's not a draft as a draft lol17:50:25
@qyliss:fairydust.spaceAlyssa RossIt's under the reviewers17:51:13
@qyliss:fairydust.spaceAlyssa RossI just did it17:51:20
@emilazy:matrix.orgemilyit's in exactly the place marking it as ready for review isn't17:57:57
@emilazy:matrix.orgemilyto keep you on your toes17:58:00
@sananatheskenana:matrix.orglzcuntI think gcc needs --disable-hosted-libstdcxx when building for nolibc which should make libstdcxx freestanding and hopefully make everything happy18:28:54
@greg:thehellings.comGreg Hellings

Looks like pkgsCross.mingwW64.icu is broken currently. I'm getting a handful of errors that look similar to this one:

/nix/store/zc3w94hsr3y61af27x3110xhqabxfpcv-x86_64-w64-mingw32-gcc-14-20241116/include/c++/14-20241116/limits:2100:30: error: exponent has no digits
 2100 |         return __extension__ 0x1.0p-16382Q;
      |                              ^~~~~~
/nix/store/zc3w94hsr3y61af27x3110xhqabxfpcv-x86_64-w64-mingw32-gcc-14-20241116/include/c++/14-20241116/limits:2114:30: error: exponent has no digits
 2114 |         return __extension__ 0x1.ffffffffffffffffffffffffffffp+16383Q;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21:44:48
@greg:thehellings.comGreg HellingsBased on where the error is coming from, other packages might be affected, as it appears to be coming from the bundled C++ headers21:45:42
@greg:thehellings.comGreg HellingsSeems like this is the same error: https://github.com/NixOS/nixpkgs/pull/261341 - gonna see if I can get a similar fix in for ICU21:48:02
@greg:thehellings.comGreg HellingsOK, so the error is already fixed in ICU 76. But the default ICU across nixpkgs is still ICU 74. Would it be better to try and develop a patch for ICU74 to address this? The change is relatively simple. Or to change the default to ICU 76 for MinGW builds?22:42:02
@k900:0upti.meK900Didn't we bump ICU this staging cycle?22:45:53
@k900:0upti.meK900 @emily 22:45:55
@greg:thehellings.comGreg Hellings 🤷 Looking at master right now it says icu = icu74; 22:46:19
@k900:0upti.meK900Look at staging22:46:27
@k900:0upti.meK900* Look at staging-next22:46:30
@greg:thehellings.comGreg Hellings
  icuReal = icu74;
  icu = if stdenv.hostPlatform.isDarwin then darwin.ICU else icuReal;
22:48:00
@greg:thehellings.comGreg Hellings That's different from master where it is just icu = icu74;, but still not revving it to 76 22:48:22
@k900:0upti.meK900Oh OK22:49:02
@k900:0upti.meK900Then I guess we'll have to update it eventually22:49:15

Show newer messages


Back to Room ListRoom Version: 6