!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

858 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.184 Servers

Load older messages


SenderMessageTime
5 Nov 2025
@fzakaria:one.ems.hostfzakaria(just want to make sure I understand the change to be done)22:36:03
@tomberek:matrix.orgtomberekThe desired outcome is that the default devShell does not require the JDK.23:13:07
6 Nov 2025
@roberthensing:matrix.orgRobert Hensing (roberth)Ok to migrate most error trace tests to functional characterization tests? https://github.com/NixOS/nix/issues/1450023:46:36
7 Nov 2025
@joshuachp:matrix.org@joshuachp:matrix.org left the room.08:35:23
@niksnut:matrix.orgEelco

Hm, what happened with debug info in the Nix dev shell?

$ gdb --args nix
(gdb) b main
Breakpoint 1 at 0x380090
(gdb) r
(gdb) bt
#0  0x0000000000380090 in main ()

whereas on 2.32 we get:

(gdb) b main
Breakpoint 1 at 0x385040: file ../src/nix/main.cc, line 572.
(gdb) r
(gdb) bt
#0  main (argc=1, argv=0x7fffffff2598) at ../src/nix/main.cc:572
14:28:33
@kdeuser:matrix.org@kdeuser:matrix.org left the room.17:47:06
@awwpotato:envs.net@awwpotato:envs.net changed their display name from awwpotato (she/her) to -> @da157:catgirl.cloud.18:30:45
@awwpotato:envs.net@awwpotato:envs.net left the room.18:40:21
@joerg:thalheim.ioMic92Seems to be in gcc only? nix-util-env % file src/libutil/libnixutil.so.2.33.0.p/hash.cc.o src/libutil/libnixutil.so.2.33.0.p/hash.cc.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped using nix develop .#native-clangStdenv18:58:58
@joerg:thalheim.ioMic92seems fine but with gcc stdenv it's no debug symbols18:59:14
@joerg:thalheim.ioMic92use flake .#native-stdenv also seems to be fine19:00:28
@joerg:thalheim.ioMic92mhm. normal stdenv is also fine19:01:48
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) separateDebugInfo is on regardless 19:04:24
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)For packaging builds19:05:01
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Philip Taron (UTC-8): going to do a 2.32.3 bump 19:06:49
@joerg:thalheim.ioMic92

Sergei Zimmerman (xokdvium): I also found out why our gcc devshell throws some linker error in the devshell:

nix-util-env % echo '#include <execution>' | g++ -E -x c++ - 2>&1 | grep -i tbb | head -5
struct __tbb_backend_tag
using __par_backend_tag = __tbb_backend_tag;

1 "/nix/store/8adzgnxs3s0pbj22qhk9zjxi1fqmz3xv-gcc-14.3.0/include/c++/14.3.0/pstl/parallel_backend_tbb.h" 1 3

24 "/nix/store/8adzgnxs3s0pbj22qhk9zjxi1fqmz3xv-gcc-14.3.0/include/c++/14.3.0/pstl/parallel_backend_tbb.h" 3

1 "/nix/store/2clcgn9d7rlyhdkpc1gx9frg14vm2k07-tbb-2021.11.0-dev/include/tbb/blocked_range.h" 1 3 4

19:13:56
@joerg:thalheim.ioMic92 *

Sergei Zimmerman (xokdvium): I also found out why our gcc devshell throws some linker error in the devshell:

nix-util-env % echo '#include <execution>' | g++ -E -x c++ - 2>&1 | grep -i tbb | head -5
struct __tbb_backend_tag
using __par_backend_tag = __tbb_backend_tag;
# 1 "/nix/store/8adzgnxs3s0pbj22qhk9zjxi1fqmz3xv-gcc-14.3.0/include/c++/14.3.0/pstl/parallel_backend_tbb.h" 1 3
# 24 "/nix/store/8adzgnxs3s0pbj22qhk9zjxi1fqmz3xv-gcc-14.3.0/include/c++/14.3.0/pstl/parallel_backend_tbb.h" 3
# 1 "/nix/store/2clcgn9d7rlyhdkpc1gx9frg14vm2k07-tbb-2021.11.0-dev/include/tbb/blocked_range.h" 1 3 4
19:14:11
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)tbb uses a reserved identifier?19:14:30
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Oh so stdlib has a std::execution backend for tbb? How does that lead to linker errors?19:18:04
@joerg:thalheim.ioMic92 Sergei Zimmerman (xokdvium): https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/pstl/parallel_backend_tbb.h 19:18:09
@joerg:thalheim.ioMic92yeah19:18:14
@joerg:thalheim.ioMic92 Sergei Zimmerman (xokdvium): https://github.com/gcc-mirror/gcc/blob/d14d24b26126ec9c6c8ba5b2e573ed8e26347e6b/libstdc%2B%2B-v3/include/bits/c%2B%2Bconfig#L943 19:20:41
@joerg:thalheim.ioMic92we can either turn it off or we should make an explicit dependency 19:20:56
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I guess we should just undef it yeah. We are not using parallel algorithms anywhere19:21:37
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)‘nix-meson-build-support/common` for this type of thing should suffice?19:22:37
@joerg:thalheim.ioMic92yeah that's what I am looking at19:25:01
@joerg:thalheim.ioMic92 Still compiling but I think you were also stumbling over this? Eelco https://github.com/NixOS/nix/pull/14509 19:28:40
@joerg:thalheim.ioMic92Feels like worth a backport as well19:29:00
@joerg:thalheim.ioMic92

Eelco: I wasn't able to reproduce your issue:

~/git/nix/build no-tbb
nix-util-env % gdb ./src/nix/nix
Reading symbols from ./src/nix/nix...
(gdb) bt
No stack.
(gdb) b main
rBreakpoint 1 at 0x965866: file ../src/nix/main.cc, line 563.
(gdb) r
Starting program: /home/joerg/git/nix/build/src/nix/nix
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/g8zyryr9cr6540xsyg4avqkwgxpnwj2a-glibc-2.40-66/lib/libthread_db.so.1".

Breakpoint 1, main (argc=1, argv=0x7ffffffe9a98) at ../src/nix/main.cc:563
563 {
(gdb)

19:31:40
@joerg:thalheim.ioMic92 *

Eelco: I wasn't able to reproduce your issue:

~/git/nix/build no-tbb
nix-util-env % gdb ./src/nix/nix
Reading symbols from ./src/nix/nix...
(gdb) bt
No stack.
(gdb) b main
rBreakpoint 1 at 0x965866: file ../src/nix/main.cc, line 563.
(gdb) r
Starting program: /home/joerg/git/nix/build/src/nix/nix
\[Thread debugging using libthread\_db enabled\]
Using host libthread\_db library "/nix/store/g8zyryr9cr6540xsyg4avqkwgxpnwj2a-glibc-2.40-66/lib/libthread\_db.so.1".

Breakpoint 1, main (argc=1, argv=0x7ffffffe9a98) at ../src/nix/main.cc:563
563     {
(gdb)

19:31:50

Show newer messages


Back to Room ListRoom Version: 6