• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

build error

gheros

New member
git branch v0.12.3

cd depends
make HOST=x86_64-w64-mingw32
cd ..
./autogen.sh
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
make j4



error

.libs/libdashconsensus_la-utilstrencodings.o:(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
collect2: error: ld returned 1 exit status
Makefile:4103: recipe for target 'libdashconsensus.la' failed
make[2]: *** [libdashconsensus.la] Error 1
make[2]: *** 正在等待未完成的任务....
make[2]: Leaving directory '/home/data/dash/dash/src'
Makefile:10560: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/data/dash/dash/src'
Makefile:688: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 
git branch v0.12.3

cd depends
make HOST=x86_64-w64-mingw32
cd ..
./autogen.sh
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
make j4



error

.libs/libdashconsensus_la-utilstrencodings.o:(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
collect2: error: ld returned 1 exit status
Makefile:4103: recipe for target 'libdashconsensus.la' failed
make[2]: *** [libdashconsensus.la] Error 1
make[2]: *** 正在等待未完成的任务....
make[2]: Leaving directory '/home/data/dash/dash/src'
Makefile:10560: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/data/dash/dash/src'
Makefile:688: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

try 14.0.2
 
branch v0.14.0.2

cd depends
make HOST=x86_64-w64-mingw32
cd ..
./autogen.sh
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
make j4


error


In file included from bls/bls.cpp:5:0:
bls/bls.h:14:27: fatal error: chiabls/bls.hpp: 没有那个文件或目录
compilation terminated.
Makefile:9594: recipe for target 'bls/libdashconsensus_la-bls.lo' failed
make[2]: *** [bls/libdashconsensus_la-bls.lo] Error 1
make[2]: Leaving directory '/home/moac-sh2/data/dash/dash/src'
Makefile:11266: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/moac-sh2/data/dash/dash/src'
Makefile:686: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 
try 14.0.2
branch v0.14.0.2

cd depends
make HOST=x86_64-w64-mingw32
cd ..
./autogen.sh
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
make j4


error


In file included from bls/bls.cpp:5:0:
bls/bls.h:14:27: fatal error: chiabls/bls.hpp: 没有那个文件或目录
compilation terminated.
Makefile:9594: recipe for target 'bls/libdashconsensus_la-bls.lo' failed
make[2]: *** [bls/libdashconsensus_la-bls.lo] Error 1
make[2]: Leaving directory '/home/moac-sh2/data/dash/dash/src'
Makefile:11266: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/moac-sh2/data/dash/dash/src'
Makefile:686: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 
It looks like you are trying to cross-compile for Windows. Did you install the dependencies?

$ sudo apt-get install nsis wine-stable wine64 bc
$ sudo apt-get install g++-mingw-w64-x86-64
$ # Required to enable C++ threading libraries (e.g. std::thread)
$ sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
$ sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix

Documentation: https://github.com/dashpay/dash/blob/master/doc/build-cross.md#windows-64bit32bit-cross-compilation
 
Back
Top