!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

306 Members
92 Servers

Load older messages


SenderMessageTime
28 Nov 2025
@grimmauld:m.grimmauld.deGrimmauld (any/all) changed their display name from musl-official | Grimm | any/all to Grimmauld (any/all).11:36:00
29 Nov 2025
@amadaluzia:unredacted.orgamadaluzia changed their profile picture.11:41:34
@grimmauld:m.grimmauld.deGrimmauld (any/all) The solution seems simple enough.
https://github.com/NixOS/nixpkgs/blob/2fad6eac6077f03fe109c4d4eb171cf96791faa4/pkgs/development/compilers/llvm/common/llvm/default.nix#L29-L33
Just make this enablePFM ? false, it already only works on x86_64-linux.
22:47:10
@grimmauld:m.grimmauld.deGrimmauld (any/all)

anyways, i am building llvm native musl nixos rn (cc Tristan Ross , its mostly on top of your PR). Findings so far:

  • a bunch of things are pulling libgcc via non-strict deps and fail on llvm native
  • bison is bork
  • a couple tests are bork (mpfr, fmt)
  • pfm in llvm causes issues (either disable in llvm, or allow it if cc for stdenv is llvm)
  • python3 minimal fails (not allowed to refer to libunwind)

there is probably more

22:51:32
@grimmauld:m.grimmauld.deGrimmauld (any/all)musl uses netbsd getent in places, and https://github.com/NixOS/nixpkgs/blob/1706fddce8c13a9e08d838d17a629056b2e323d7/pkgs/os-specific/bsd/netbsd/pkgs/fts/package.nix#L8 requires ssp for some reason and thus fails on llvm native22:52:48
@rosscomputerguy:matrix.orgTristan RossI've observed a bunch of similar things22:59:18
@rosscomputerguy:matrix.orgTristan RossNotably bison is a big one22:59:33
@rosscomputerguy:matrix.orgTristan Ross pkgsLLVM.bison and bison (native LLVM) both fail 22:59:46
@grimmauld:m.grimmauld.deGrimmauld (any/all) the fun thing: gcc ng has ssp, but fails on musl because our gcc 15 patch at https://github.com/sywangyi/hf-nix/blob/351655d9f124805ed7c1193aa61550ce245f4570/pkgs/gcc/ng/15/gcc/fix-collect2-paths.diff#L158 calls basename without #include <libgen.h> 23:00:36
@grimmauld:m.grimmauld.deGrimmauld (any/all)so its undefined symbol on musl23:00:58
@rosscomputerguy:matrix.orgTristan RossThe way I fixed python btw is add libunwind as being allowed when LLVM is enabled23:01:53
@grimmauld:m.grimmauld.deGrimmauld (any/all)yeah thats fair23:02:00
@rosscomputerguy:matrix.orgTristan RossI actually found an infinite recursion bug that way and it prompted me to redoing things better23:02:13
@grimmauld:m.grimmauld.deGrimmauld (any/all) * the fun thing: gcc ng has ssp, but fails on musl because our gcc 15 patch at https://github.com/NixOS/nixpkgs/blob/d8cc7e69d5bcb3536cc27e5b783fe85730c468d2/pkgs/development/compilers/gcc/ng/15/gcc/fix-collect2-paths.diff calls basename without #include <libgen.h>
Edit: wrong link
23:04:43
1 Dec 2025
@matthewcroughan:defenestrate.itmatthewcroughan changed their profile picture.14:57:50
4 Dec 2025
@i-am-logger:matrix.orgIdo Samuelson joined the room.01:45:08
@onur-ozkan:matrix.orgonur-ozkan joined the room.04:20:25
5 Dec 2025
@hive:the-apothecary.club👉@crystallinefire:chat.solarpunk.moe changed their display name from EVA-01 to 👉@crystallinefire:chat.solarpunk.moe.17:18:12
8 Dec 2025
@gian-reto:matrix.orgGian joined the room.00:53:28
10 Dec 2025
@truelle_trash_queen:matrix.orgTheodora changed their display name from Theodora The Absurdist Schizotisticoball to Theodora.12:17:52
11 Dec 2025
@suua:matrix.orgsuua joined the room.16:09:30
13 Dec 2025
@mjolnir:nixos.orgNixOS Moderation Bot unbanned @joepie91:pixie.town@joepie91:pixie.town.05:59:05
16 Dec 2025
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC) https://github.com/asterinas/asterinas 16:58:43
17 Dec 2025
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)
[root@asterinas:~]# cat /proc/version
Linux version 5.13.0 (root@kiryca) (rustc 1.94.0-nightly) #1 Wed Dec 17 02:57:56 UTC 2025
03:35:54
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)2025-12-17-T11-50-44.png
Download 2025-12-17-T11-50-44.png
03:51:52
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)The ext2 filesystem driver is quite unstable and can crash at any time due to heavy writes03:58:33
22 Dec 2025
@amadaluzia:pub.solaramadaluzia[psolar] changed their display name from amadALTuzia (pub.solar) to amadaluzia[psolar].17:31:17
24 Dec 2025
@hacker1024:matrix.orghacker1024

Hi all,
I'm trying to write a derivation for an embedded C++ microcontroller application.
For this, I must use a copy of libstdc++ with something like --enable-cxx-flags='-fno-exceptions -fno-rtti' (docs here).
Is there a way to configure Nixpkgs to use these settings for libstdc++ for the host platform? Something to add to the following, for example?

import <nixpkgs> {
  crossSystem = {
    config = "arm-none-eabihf";
    libc = "newlib-nano";
    gcc = {
      cpu = "cortex-m7";
      fpu = "fpv5-d16";
      float-abi = "hard";
      thumb = true;
    };
    rust.rustcTarget = "thumbv7em-none-eabihf";
    isStatic = true;
  }
}
06:04:25
@hacker1024:matrix.orghacker1024

I'm looking at something like this patch to Nixpkgs at the moment, but hopefully there's an existing mechanism I'm yet to discover

--- a/pkgs/development/compilers/gcc/common/platform-flags.nix
+++ b/pkgs/development/compilers/gcc/common/platform-flags.nix
@@ -17,6 +17,7 @@ lib.concatLists [
   (lib.optional (p ? fpu) "--with-fpu=${p.fpu}")
   (lib.optional (p ? float) "--with-float=${p.float}")
   (lib.optional (p ? mode) "--with-mode=${p.mode}")
+  (lib.optional (p ? enableCxxFlags) "--enable-cxx-flags=${builtins.concatStringsSep ''\ '' p.enableCxxFlags}")
   (lib.optionals targetPlatform.isPower64
     # musl explicitly rejects 128-bit long double on
     # powerpc64; see musl/arch/powerpc64/bits/float.h
06:36:36
@amadaluzia:unredacted.orgamadaluzia changed their profile picture.16:53:16

There are no newer messages yet.


Back to Room ListRoom Version: 6