Description
Compiling bitcoind (cf0c67b62c2037dc9e70ea84ffee3b205a9b1bef, master branch) fails with:
0/usr/include/c++/4.8.2/bits/stl_list.h:1149:9: note: template argument deduction/substitution failed:
1rpc/server.cpp:54:122: note: cannot convert ‘g_rpc_server_info.RPCServerInfo::active_commands.std::list<_Tp, _Alloc>::cend<RPCCommandExecutionInfo, std::allocator<RPCCommandExecutionInfo> >()’ (type ‘std::list<RPCCommandExecutionInfo>::const_iterator {aka std::_List_const_iterator<RPCCommandExecutionInfo>}’) to type ‘std::list<RPCCommandExecutionInfo>::iterator {aka std::_List_iterator<RPCCommandExecutionInfo>}’
2 it = g_rpc_server_info.active_commands.insert(g_rpc_server_info.active_commands.cend(), {method, GetTimeMicros()});
Steps to replicate
Replicable on two different VM’s:
(- git checkout master)
- git pull
- make clean && ./autogen.sh && ./configure –disable-wallet –without-gui –with-zmq –enable-zmq && make
Expected behavior
Compilation should be successful.
Current behavior
Compilation was not successful.
Bitcoin Core Version
0[user@localhost bitcoin]$ git branch
1* master
2[user@localhost bitcoin]$ git log
3commit cf0c67b62c2037dc9e70ea84ffee3b205a9b1bef
Environment Info
0[user@localhost bitcoin]$ cat /etc/centos-release
1CentOS Linux release 7.5.1804 (Core)
0[user@localhost bitcoin]$ cat /proc/cpuinfo
1processor : 0
2vendor_id : GenuineIntel
3cpu family : 6
4model : 42
5model name : Intel Xeon E312xx (Sandy Bridge)
6stepping : 1
7microcode : 0x1
8cpu MHz : 3092.972
9cache size : 16384 KB
10physical id : 0
11siblings : 1
12core id : 0
13cpu cores : 1
14apicid : 0
15initial apicid : 0
16fpu : yes
17fpu_exception : yes
18cpuid level : 13
19wp : yes
20flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt arat
21bogomips : 6185.94
22clflush size : 64
23cache_alignment : 64
24address sizes : 40 bits physical, 48 bits virtual
25power management:
0[user@localhost bitcoin]$ gcc -v
1Using built-in specs.
2COLLECT_GCC=gcc
3COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
4Target: x86_64-redhat-linux
5Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
6Thread model: posix
7gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)