Now that Carls fix for binutils and compressed debug sections has been merged into Guix, point our time-machine to the latest commit on Guix master. The Windows builds don’t yet work with this change, but we are now at the point of compiling our own code..
There must be a difference in the Guix environment, compared to, for example, compiling using GCC 10.3 on Ubuntu Hirsute, which currently works.
Opening this PR for testing / discussion:
0Making all in src
1make[1]: Entering directory '/distsrc-base/distsrc-f6ff8d8604f6-x86_64-w64-mingw32/src'
2make[2]: Entering directory '/distsrc-base/distsrc-f6ff8d8604f6-x86_64-w64-mingw32/src'
3 CXX bitcoind-bitcoind.o
4 CXX libbitcoin_node_a-addrdb.o
5 CXX libbitcoin_node_a-addrman.o
6 CXX libbitcoin_node_a-banman.o
7 GEN bitcoind-res.o
8 CXX libbitcoin_node_a-blockencodings.o
9 CXX libbitcoin_node_a-blockfilter.o
10 CXX libbitcoin_node_a-chain.o
11 CXX libbitcoin_node_a-dbwrapper.o
12 CXX libbitcoin_node_a-deploymentstatus.o
13 CXX libbitcoin_node_a-flatfile.o
14 CXX libbitcoin_node_a-httprpc.o
15 CXX libbitcoin_node_a-httpserver.o
16 CXX libbitcoin_node_a-i2p.o
17 CXX libbitcoin_node_a-init.o
18 CXX libbitcoin_node_a-mapport.o
19 CXX libbitcoin_node_a-net.o
20 CXX libbitcoin_node_a-net_processing.o
21 CXX libbitcoin_node_a-noui.o
22 CXX libbitcoin_node_a-pow.o
23 CXX libbitcoin_node_a-rest.o
24 CXX libbitcoin_node_a-shutdown.o
25In file included from init.cpp:78:
26/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream: In instantiation of 'std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const _Path&, std::ios_base::openmode) [with _Path = fs::path; _Require = fs::path; _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::ios_base::openmode]':
27init.cpp:143:40: required from here
28/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:844:38: error: no matching function for call to 'std::basic_ofstream<char>::basic_ofstream(const value_type*, std::ios_base::openmode&)'
29 844 | : basic_ofstream(__s.c_str(), __mode)
30 | ^
31/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:850:7: note: candidate: 'std::basic_ofstream<_CharT, _Traits>::basic_ofstream(std::basic_ofstream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
32 850 | basic_ofstream(basic_ofstream&& __rhs)
33 | ^~~~~~~~~~~~~~
34/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:850:7: note: candidate expects 1 argument, 2 provided
35/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:842:2: note: candidate: 'template<class _Path, class _Require> std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const _Path&, std::ios_base::openmode) [with _Path = _Path; _Require = _Require; _CharT = char; _Traits = std::char_traits<char>]'
36 842 | basic_ofstream(const _Path& __s,
37 | ^~~~~~~~~~~~~~
38/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:842:2: note: template argument deduction/substitution failed:
39/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:841:32: error: request for member 'make_preferred' in 'std::declval<const wchar_t*&>()', which is of non-class type 'const wchar_t*'
40 841 | template<typename _Path, typename _Require = _If_fs_path<_Path>>
41 | ^~~~~~~~
42/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:825:7: note: candidate: 'std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const string&, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::string = std::__cxx11::basic_string<char>; std::ios_base::openmode = std::ios_base::openmode]'
43 825 | basic_ofstream(const std::string& __s,
44 | ^~~~~~~~~~~~~~
45/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:825:41: note: no known conversion for argument 1 from 'const value_type*' {aka 'const wchar_t*'} to 'const string&' {aka 'const std::__cxx11::basic_string<char>&'}
46 825 | basic_ofstream(const std::string& __s,
47 | ~~~~~~~~~~~~~~~~~~~^~~
48/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:790:7: note: candidate: 'std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::ios_base::openmode]'
49 790 | basic_ofstream(const char* __s,
50 | ^~~~~~~~~~~~~~
51/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:790:34: note: no known conversion for argument 1 from 'const value_type*' {aka 'const wchar_t*'} to 'const char*'
52 790 | basic_ofstream(const char* __s,
53 | ~~~~~~~~~~~~^~~
54/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:779:7: note: candidate: 'std::basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char; _Traits = std::char_traits<char>]'
55 779 | basic_ofstream(): __ostream_type(), _M_filebuf()
56 | ^~~~~~~~~~~~~~
57/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:779:7: note: candidate expects 0 arguments, 2 provided
58/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:844:38: error: no matching function for call to 'std::basic_ofstream<char>::basic_ofstream(const value_type*, std::ios_base::openmode&)'
59 844 | : basic_ofstream(__s.c_str(), __mode)
60 | ^
61/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:850:7: note: candidate: 'std::basic_ofstream<_CharT, _Traits>::basic_ofstream(std::basic_ofstream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
62 850 | basic_ofstream(basic_ofstream&& __rhs)
63 | ^~~~~~~~~~~~~~
64/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:850:7: note: candidate expects 1 argument, 2 provided
65/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:842:2: note: candidate: 'template<class _Path, class _Require> std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const _Path&, std::ios_base::openmode) [with _Path = _Path; _Require = _Require; _CharT = char; _Traits = std::char_traits<char>]'
66 842 | basic_ofstream(const _Path& __s,
67 | ^~~~~~~~~~~~~~
68/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:842:2: note: template argument deduction/substitution failed:
69/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:841:32: error: request for member 'make_preferred' in 'std::declval<const wchar_t*&>()', which is of non-class type 'const wchar_t*'
70 841 | template<typename _Path, typename _Require = _If_fs_path<_Path>>
71 | ^~~~~~~~
72/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:825:7: note: candidate: 'std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const string&, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::string = std::__cxx11::basic_string<char>; std::ios_base::openmode = std::ios_base::openmode]'
73 825 | basic_ofstream(const std::string& __s,
74 | ^~~~~~~~~~~~~~
75/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:825:41: note: no known conversion for argument 1 from 'const value_type*' {aka 'const wchar_t*'} to 'const string&' {aka 'const std::__cxx11::basic_string<char>&'}
76 825 | basic_ofstream(const std::string& __s,
77 | ~~~~~~~~~~~~~~~~~~~^~~
78/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:790:7: note: candidate: 'std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::ios_base::openmode]'
79 790 | basic_ofstream(const char* __s,
80 | ^~~~~~~~~~~~~~
81/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:790:34: note: no known conversion for argument 1 from 'const value_type*' {aka 'const wchar_t*'} to 'const char*'
82 790 | basic_ofstream(const char* __s,
83 | ~~~~~~~~~~~~^~~
84/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:779:7: note: candidate: 'std::basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char; _Traits = std::char_traits<char>]'
85 779 | basic_ofstream(): __ostream_type(), _M_filebuf()
86 | ^~~~~~~~~~~~~~
87/gnu/store/k3bs5211ca8hy7hzkj83caiakmj3sh36-gcc-cross-x86_64-w64-mingw32-10.3.0/include/c++/fstream:779:7: note: candidate expects 0 arguments, 2 provided
88 CXX libbitcoin_node_a-signet.o
89 CXX libbitcoin_node_a-timedata.o
90 CXX libbitcoin_node_a-torcontrol.o
91 CXX libbitcoin_node_a-txdb.o
92make[2]: *** [Makefile:9653: libbitcoin_node_a-init.o] Error 1
93make[2]: *** Waiting for unfinished jobs....
94make[2]: Leaving directory '/distsrc-base/distsrc-f6ff8d8604f6-x86_64-w64-mingw32/src'
95make[1]: *** [Makefile:17461: all-recursive] Error 1
96make[1]: Leaving directory '/distsrc-base/distsrc-f6ff8d8604f6-x86_64-w64-mingw32/src'
97make: *** [Makefile:816: all-recursive] Error 1
Related to #24055.