Sep 21, 2017, 11:42 am

News:

Ufasoft Coin 0.110 new features: SOCKS5, TOR,
bootstrap.dat DB format


Problem making coin-0.82 'PopCount is ambiguous'

Started by xbtminer, Apr 29, 2014, 02:56 pm

previous topic - next topic
Go Down

xbtminer

Hello, would greatly appreciate help on getting coin-0.82 to run. The config seems to process successfully but I am getting a fail when I attempt to make.

Cheers for your helps!

~/dev/ufasoft_coin-0.82 $ make
make  all-am
make[1]: Entering directory `/home/user/dev/ufasoft_coin-0.82'
  CXX      coin/miner/hasher/hasher-prime.o
In file included from ./el/libext/afterstl.h:12:0,
                 from ./el/libext/ext-cpp.h:811,
                 from ./el/libext.h:1509,
                 from el/ext.h:22:
./el/stl/dynamic_bitset: In instantiation of 'ExtSTL::dynamic_bitsetBase::size_type ExtSTL::dynamic_bitset<T>::count() const [with T = long unsigned int; ExtSTL::dynamic_bitsetBase::size_type = long unsigned int]':
coin/miner/hasher/hasher-prime.cpp:129:37:   required from here
./el/stl/dynamic_bitset:100:4: error: call of overloaded 'PopCount(ExtSTL::dynamic_bitset<long unsigned int>::block_type&)' is ambiguous
./el/stl/dynamic_bitset:100:4: note: candidates are:
In file included from ./el/libext/ext-cpp.h:1095:0,
                 from ./el/libext.h:1509,
                 from el/ext.h:22:
./el/libext/ext-core.h:609:13: note: int Ext::PopCount(unsigned int)
./el/libext/ext-core.h:610:13: note: int Ext::PopCount(long long unsigned int)
make[1]: *** [coin/miner/hasher/hasher-prime.o] Error 1
make[1]: Leaving directory `/home/user/dev/ufasoft_coin-0.82'
make: *** [all] Error 2

ufasoft

Replace line with
Code: [Select]
bitset<size_t> in the file coin/miner/hasher/hasher-prime.cpp
to foolowing lines:

Code: [Select]
#if UCFG_PLATFORM_X64
typedef dynamic_bitset<UInt64> Bitset;
#else
typedef dynamic_bitset<UInt32> Bitset;
#endif

xbtminer

Thanks for your reply. I tried your recommended solution but received the same error :/

What else might I do to correct the problem? Many thanks!

Here's what I got after making the changes you gave and then ran 'make clean' and 'make':

~/dev/ufasoft_coin-0.82 $ make
g++ -DHAVE_CONFIG_H -I.  -I coin/util -I coin/miner -I foreign -pthread -I/usr/include/libxml2    -Wno-invalid-offsetof  -g -O2 -std=c++0x -c el/ext.h
make  all-am
make[1]: Entering directory `/home/xander/dev/ufasoft_coin-0.82'
  CXX      el/crypto/sha256.o
  CXX      el/crypto/sha512.o
  CXX      el/crypto/sha-3.o
  CC       foreign/sphlib/keccak.o
  CXX      el/crypto/scrypt.o
  CXX      el/crypto/salsa20.o
  CXX      coin/util/util.o
  CXX      coin/util/base58.o
  CXX      coin/util/prime-util.o
  CXX      coin/util/momentum.o
  CC       coin/util/metis-imp.o
  CXX      coin/util/metis.o
  CC       foreign/sphlib/aes_helper.o
  CC       foreign/sphlib/shavite.o
  CXX      coin/miner/bitcoin-miner.o
  CXX      coin/miner/bitcoin-sha256.o
  CXX      coin/miner/miner.o
  CXX      coin/miner/stratum-client.o
  CXX      coin/miner/dynclock.o
  CXX      coin/miner/serial-device.o
  CXX      coin/miner/miner-bitforce.o
  CXX      coin/miner/miner-fpga-modminer.o
  CXX      coin/util/block-template.o
  CXX      coin/miner/hasher/hasher-sha256.o
  CXX      coin/miner/hasher/hasher-sha3.o
  CXX      coin/miner/hasher/hasher-metis.o
  CXX      coin/miner/hasher/hasher-prime.o
In file included from ./el/libext/afterstl.h:12:0,
                 from ./el/libext/ext-cpp.h:811,
                 from ./el/libext.h:1509,
                 from el/ext.h:22:
./el/stl/dynamic_bitset: In instantiation of 'ExtSTL::dynamic_bitsetBase::size_type ExtSTL::dynamic_bitset<T>::count() const [with T = long unsigned int; ExtSTL::dynamic_bitsetBase::size_type = long unsigned int]':
coin/miner/hasher/hasher-prime.cpp:133:37:   required from here
./el/stl/dynamic_bitset:100:4: error: call of overloaded 'PopCount(ExtSTL::dynamic_bitset<long unsigned int>::block_type&)' is ambiguous
./el/stl/dynamic_bitset:100:4: note: candidates are:
In file included from ./el/libext/ext-cpp.h:1095:0,
                 from ./el/libext.h:1509,
                 from el/ext.h:22:
./el/libext/ext-core.h:609:13: note: int Ext::PopCount(unsigned int)
./el/libext/ext-core.h:610:13: note: int Ext::PopCount(long long unsigned int)
make[1]: *** [coin/miner/hasher/hasher-prime.o] Error 1
make[1]: Leaving directory `/home/xander/dev/ufasoft_coin-0.82'
make: *** [all] Error 2

ufasoft

What is your platform, Linux version and GCC version?

Go Up