Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937531 - net-p2p/bitcoin-core-25.1-r2 - [ncurses-6.5] [icu-75.1] [gcc-15] httpserver.cpp: error: const class CBaseChainParams has no member named RPCPort
Summary: net-p2p/bitcoin-core-25.1-r2 - [ncurses-6.5] [icu-75.1] [gcc-15] httpserver.c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Whitlock
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-07 17:34 UTC by Toralf Förster
Modified: 2024-08-08 11:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.03 KB, text/plain)
2024-08-07 17:34 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,33.08 KB, text/plain)
2024-08-07 17:34 UTC, Toralf Förster
Details
environment (environment,155.06 KB, text/plain)
2024-08-07 17:34 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-08-07 17:34 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,33.77 KB, application/x-xz)
2024-08-07 17:34 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,17.82 KB, application/x-xz)
2024-08-07 17:34 UTC, Toralf Förster
Details
net-p2p:bitcoin-core-25.1-r2:20240807-145152.log (net-p2p:bitcoin-core-25.1-r2:20240807-145152.log,32.64 KB, text/plain)
2024-08-07 17:34 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,79.00 KB, text/plain)
2024-08-07 17:34 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,36.03 KB, application/x-xz)
2024-08-07 17:34 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-08-07 17:34:03 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2024-08-07 17:34:03 UTC
Created attachment 899446 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-07 17:34:05 UTC
Created attachment 899447 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-08-07 17:34:06 UTC
Created attachment 899448 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-08-07 17:34:07 UTC
Created attachment 899449 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-08-07 17:34:08 UTC
Created attachment 899450 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-07 17:34:09 UTC
Created attachment 899451 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-07 17:34:10 UTC
Created attachment 899452 [details]
net-p2p:bitcoin-core-25.1-r2:20240807-145152.log
Comment 8 Toralf Förster gentoo-dev 2024-08-07 17:34:11 UTC
Created attachment 899453 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-08-07 17:34:12 UTC
Created attachment 899454 [details]
temp.tar.xz
Comment 10 Matt Whitlock 2024-08-07 18:55:22 UTC
(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.
Comment 11 Toralf Förster gentoo-dev 2024-08-07 19:02:09 UTC
(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!
Comment 12 Matt Whitlock 2024-08-07 20:10:32 UTC
Reproduced using sys-devel/gcc-15.0.0_pre20240804.

ncurses and icu are irrelevant to this bug.
Comment 13 Matt Whitlock 2024-08-07 20:54:24 UTC
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.
Comment 14 Matt Whitlock 2024-08-08 08:20:54 UTC
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.
Comment 15 Larry the Git Cow gentoo-dev 2024-08-08 11:08:25 UTC
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(+)