Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888605 - net-p2p/litecoind-0.18.1-r1 - net_processing.cpp: error: variable std::array<std::pair<long unsigned int, CNode >, 2> best has ini
Summary: net-p2p/litecoind-0.18.1-r1 - net_processing.cpp: error: variable std::array<...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-12-27 09:20 UTC by Toralf Förster
Modified: 2023-01-23 02:40 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.76 KB, text/plain)
2022-12-27 09:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,186.80 KB, text/plain)
2022-12-27 09:20 UTC, Toralf Förster
Details
environment (environment,102.06 KB, text/plain)
2022-12-27 09:20 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,575 bytes, application/x-bzip)
2022-12-27 09:20 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,30.98 KB, application/x-bzip)
2022-12-27 09:20 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,21.48 KB, application/x-bzip)
2022-12-27 09:20 UTC, Toralf Förster
Details
net-p2p:litecoind-0.18.1-r1:20221227-035916.log (net-p2p:litecoind-0.18.1-r1:20221227-035916.log,83.17 KB, text/plain)
2022-12-27 09:20 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,36.14 KB, application/x-bzip)
2022-12-27 09:20 UTC, Toralf Förster
Details
Patch for litecoind compiled with GCC 12 (litecoind-include-array.patch,629 bytes, patch)
2023-01-22 16:58 UTC, Brian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-27 09:20:25 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../src/config   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I. -I/usr/include/db4.8/ -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/usr/include    -I./secp256k1/include -I./univalue/include    -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACR
x86_64-pc-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../src/config   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I. -I/usr/include/db4.8/ -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/usr/include    -I./secp256k1/include -I./univalue/include    -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACR
x86_64-pc-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../src/config   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I. -I/usr/include/db4.8/ -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/usr/include    -I./secp256k1/include -I./univalue/include    -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACR
x86_64-pc-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../src/config   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I. -I/usr/include/db4.8/ -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/usr/include    -I./secp256k1/include -I./univalue/include    -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACR
x86_64-pc-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../src/config   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I. -I/usr/include/db4.8/ -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/usr/include    -I./secp256k1/include -I./univalue/include    -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACR
net_processing.cpp: In function 'void RelayAddress(const CAddress&, bool, CConnman*)':
net_processing.cpp:1097:47: error: variable 'std::array<std::pair<long unsigned int, CNode*>, 2> best' has initializer but incomplete type
 1097 |     std::array<std::pair<uint64_t, CNode*>,2> best{{{0, nullptr}, {0, nullptr}}};
      |                                               ^~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4-20221225-080004

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.6
Python 3.10.9
Available Rust versions:
  [1]   rust-bin-1.66.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
4)	Eclipse Temurin JRE 17.0.5_p8 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-17  system-vm
  [4]   openjdk-jre-bin-17 

php cli (if any):

  HEAD of ::gentoo
commit f550ebbb4586d136eb462810597a6a89bab2e42a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 27 03:18:09 2022 +0000

    2022-12-27 03:18:09 UTC

emerge -qpvO net-p2p/litecoind
[ebuild  N    ] net-p2p/litecoind-0.18.1-r1  USE="wallet -upnp" CPU_FLAGS_X86="sse2"
Comment 1 Toralf Förster gentoo-dev 2022-12-27 09:20:26 UTC
Created attachment 845145 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-27 09:20:27 UTC
Created attachment 845147 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-12-27 09:20:29 UTC
Created attachment 845149 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-12-27 09:20:29 UTC
Created attachment 845151 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-12-27 09:20:30 UTC
Created attachment 845153 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-27 09:20:32 UTC
Created attachment 845155 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-12-27 09:20:33 UTC
Created attachment 845157 [details]
net-p2p:litecoind-0.18.1-r1:20221227-035916.log
Comment 8 Toralf Förster gentoo-dev 2022-12-27 09:20:34 UTC
Created attachment 845159 [details]
temp.tar.bz2
Comment 9 Brian 2023-01-22 16:58:11 UTC
Created attachment 849037 [details, diff]
Patch for litecoind compiled with GCC 12

Working patch for those using GCC 12.  Missing "#include <array>" in two files; apparently GCC 12 no longer automatically includes it.

See https://www.gnu.org/software/gcc/gcc-12/porting_to.html
Comment 10 Larry the Git Cow gentoo-dev 2023-01-23 02:40:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a60d56a96360ed046267f3919467d0527ba9da99

commit a60d56a96360ed046267f3919467d0527ba9da99
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-23 02:24:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-23 02:32:56 +0000

    net-p2p/litecoind: fix build w/ gcc 12
    
    Closes: https://bugs.gentoo.org/888605
    Signed-off-by: Sam James <sam@gentoo.org>

 .../litecoind/files/litecoind-0.18.1-gcc12.patch   | 22 ++++++++++++++++++++++
 net-p2p/litecoind/litecoind-0.18.1-r1.ebuild       |  7 +++++--
 2 files changed, 27 insertions(+), 2 deletions(-)