too long lines were shrinked: | ^~~~~~~~~~ ./chainparamsbase.h:34:33: error: class CBaseChainParams does not have any field named m_onion_service_target_port 34 | : m_rpc_port(rpc_port), m_onion_service_target_port(onion_service_target_port), strDataDir(data_dir) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../src/config -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -DHAVE_BUILD_INFO -I. -I./minisketch/include -I./univalue/include -I/usr/include -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_NO_CXX98_FUNCTION_BASE -I./leveldb/include -I/usr/include httpserver.cpp: In function bool HTTPBindAddresses(evhttp*): httpserver.cpp:365:87: error: const class CBaseChainParams has no member named RPCPort 365 | tic_cast<uint16_t>(gArgs.GetIntArg("-rpcport", BaseParams().RPCPort()))}; | ^~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_plasma-20240806-191039 UNMASKED: Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense. <sys-devel/gcc-15.0.9999:15 Requested by sam ~dev-libs/icu-75.1 ~dev-libs/icu-layoutex-75.1 Requested by sam >=sys-libs/ncurses-6.5 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-15 * clang/llvm (if any): clang version 18.1.8 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/18/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/18 18.1.8 Python 3.12.4 Available Rust versions: [1] rust-bin-1.79.0 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21] Available Java Virtual Machines: [1] openjdk-bin-21 system-vm php cli (if any): go version go1.22.5 linux/amd64 HEAD of ::gentoo commit 71289924341fc554ca155525dd39e02d5e5656ca Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Aug 7 12:49:13 2024 +0000 2024-08-07 12:49:13 UTC emerge -qpvO net-p2p/bitcoin-core [ebuild N ] net-p2p/bitcoin-core-27.1 USE="asm berkdb cli daemon dbus external-signer gui kde man qrcode sqlite system-libsecp256k1 -examples -libs -nat-pmp -system-leveldb -systemtap -test -upnp -zeromq"
Created attachment 899446 [details] emerge-info.txt
Created attachment 899447 [details] emerge-history.txt
Created attachment 899448 [details] environment
Created attachment 899449 [details] etc.clang.tar.xz
Created attachment 899450 [details] etc.portage.tar.xz
Created attachment 899451 [details] logs.tar.xz
Created attachment 899452 [details] net-p2p:bitcoin-core-25.1-r2:20240807-145152.log
Created attachment 899453 [details] qlist-info.txt
Created attachment 899454 [details] temp.tar.xz
(In reply to Toralf Förster from comment #0) > emerge -qpvO net-p2p/bitcoin-core > [ebuild N ] net-p2p/bitcoin-core-27.1 This^ is the wrong version. If this bug report is generated by a script, then the script should be corrected so that it passes an exact package version to 'emerge -qpv0'. I am attempting to reproduce the build failure with 25.1-r2.
(In reply to Matt Whitlock from comment #10) > (In reply to Toralf Förster from comment #0) > > emerge -qpvO net-p2p/bitcoin-core > > [ebuild N ] net-p2p/bitcoin-core-27.1 > > This^ is the wrong version. Good catch - thx!
Reproduced using sys-devel/gcc-15.0.0_pre20240804. ncurses and icu are irrelevant to this bug.
All available versions of net-p2p/bitcoin-core fail to build with GCC 15, although 27.* fail in a different manner versus previous versions, so likely more than one fix will be necessary. I'll look for upstream fixes to backport.
I didn't find any upstream fixes. (Upstream HEAD still fails to build with GCC 15.) The fixes were trivial, though, so I just rolled my own patches.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=045c6968dbaa67827b95a371e125c78ceebd1b12 commit 045c6968dbaa67827b95a371e125c78ceebd1b12 Author: Matt Whitlock <gentoo@mattwhitlock.name> AuthorDate: 2024-08-08 08:06:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-08 11:07:52 +0000 net-p2p/bitcoin-core: patch for GCC 15 compatibility Closes: https://bugs.gentoo.org/937531 Signed-off-by: Matt Whitlock <gentoo@mattwhitlock.name> Closes: https://github.com/gentoo/gentoo/pull/38015 Signed-off-by: Sam James <sam@gentoo.org> net-p2p/bitcoin-core/bitcoin-core-25.1-r2.ebuild | 1 + net-p2p/bitcoin-core/bitcoin-core-25.2.ebuild | 1 + net-p2p/bitcoin-core/bitcoin-core-26.0-r1.ebuild | 1 + net-p2p/bitcoin-core/bitcoin-core-26.1.ebuild | 1 + net-p2p/bitcoin-core/bitcoin-core-26.2.ebuild | 1 + net-p2p/bitcoin-core/bitcoin-core-27.0.ebuild | 2 + net-p2p/bitcoin-core/bitcoin-core-27.1.ebuild | 2 + net-p2p/bitcoin-core/files/25.0-gcc15.patch | 37 ++++++++++++++ net-p2p/bitcoin-core/files/27.0-gcc15.patch | 61 ++++++++++++++++++++++++ 9 files changed, 107 insertions(+)