guix: Re-evaluate fdebug-prefix-map #34414

issue maflcko openend this issue on January 26, 2026
  1. maflcko commented at 4:21 pm on January 26, 2026: member

    It could make sense to double check an re-evaluate if this is all right. Original comment follows:

    However, some source files are generated and reside in the build tree. So the mapping should be:

    0-HOST_CFLAGS+=" -fdebug-prefix-map=${DISTSRC}/src=."
    1+HOST_CFLAGS+=" -fdebug-prefix-map=${DISTSRC}=."
    

    Otherwise, paths become inconsistent and problematic for configuring source remapping in the debugger:

    0$ gdb ./bitcoin-fa37928536e0/libexec/bitcoin-node
    1(gdb) break IsRoutable
    2Breakpoint 1 at 0xb2aa40: file ./netaddress.cpp, line 463.
    3(gdb) break mp::ProxyClient<ipc::capnp::messages::Init>::construct
    4Breakpoint 2 at 0x5d82e0: file /distsrc-base/distsrc-fa37928536e0-x86_64-linux-gnu/build/src/ipc/capnp/init.capnp.proxy-client.c++, line 18.
    

    Originally posted by @hebasto in #34281 (review)

  2. maflcko added the label Build system on Jan 26, 2026
  3. maflcko commented at 4:23 pm on January 26, 2026: member

    I haven’t tested this, but I think the issue exists since the cmake migration.

    Given that no one reported it, it seems low priority to fix, but it could still make sense to address, because the proposed fix looks simple enough.


maflcko

Labels
Build system


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-01-27 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me