I haven't been able to figure out why yet, but it seems gcc/clang/g++/clang++ -E no longer does the same thing as cpp
BITCOIN_SUBDIR_TO_INCLUDE no longer works #20118
issue luke-jr opened this issue on October 10, 2020-
luke-jr commented at 6:14 PM on October 10, 2020: member
- luke-jr added the label Bug on Oct 10, 2020
-
luke-jr commented at 9:15 PM on October 10, 2020: member
0.20 seems unaffected, so something else is apparently going on.
- fanquake added the label Build system on Oct 11, 2020
-
luke-jr commented at 1:56 AM on October 11, 2020: member
Investigating further, it looks like 0.20 is indeed also broken, and only Knots 0.20 is fine... and it's because I already fixed this years ago in #5872 which nobody cared to review. Sigh.
(Apparently
g++ -Eonly works with filename inputs, whereascppaccepts stdin, butBITCOIN_SUBDIR_TO_INCLUDEuses aconftest.cppfile, so that turned out to be a non-issue) -
hebasto commented at 2:13 AM on October 11, 2020: member
-
fanquake commented at 9:23 AM on August 12, 2022: member
I'm going to close this as wont-fix.
BITCOIN_SUBDIR_TO_INCLUDEis only used for BDB detection, and only in certain cases. Given that using BDB is (being) deprecated, there is somewhat less reason to fix this. This is compunded by the fact that if this has indeed been broken for 2 years, and not a single other person has realised / opened an issue, clearlyBITCOIN_SUBDIR_TO_INCLUDEis not getting much actual use, and isn't regularly breaking anyones ability to build (with BDB).Maybe consider https://github.com/theuni/bitcoin/commit/2ef8a6fc3b1de989702adb04ebb066bd101350f0 ?
Could be a (much simpler to review and grok) option, but so could just removing this code entirely, if it is completely broken, given the point above.
- fanquake closed this on Aug 12, 2022
- bitcoin locked this on Aug 12, 2023