/usr/bin/x86_64-linux-gnu-ld: gen_context.o: 未知类型 [0x20] 部分“”

/usr/bin/x86_64-linux-gnu-ld: gen_context.o: 未知类型 [0x20] 部分“”

make有谁知道我在 Ubuntu 16.04 上通过命令编译 Dash 时遇到的错误吗?

Making all in src

make[1]: Entering directory '/root/dash/src'

make[2]: Entering directory '/root/dash/src'

make[3]: Entering directory '/root/dash/src/secp256k1'


gcc gen_context.o -o gen_context
/usr/bin/x86_64-linux-gnu-ld: gen_context.o: unknown type [0x20] section `'
/usr/bin/x86_64-linux-gnu-ld: gen_context.o: unknown type [0x20] section `'
gen_context.o: file not recognized: Bad value
collect2: error: ld returned 1 exit status
Makefile:1528: recipe for target 'gen_context' failed
make[3]: *** [gen_context] Error 1
make[3]: Leaving directory '/root/dash/src/secp256k1'
Makefile:9962: recipe for target 'secp256k1/libsecp256k1.la' failed
make[2]: *** [secp256k1/libsecp256k1.la] Error 2
make[2]: Leaving directory '/root/dash/src'
Makefile:9456: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/dash/src'
Makefile:657: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

答案1

在我干净的 Ubuntu 16.04.4 LTS 上我没有遇到任何问题。

首先你需要安装构建依赖项

sudo apt-get install git autoconf libtool-bin libdb++-dev qt5-default \
qt4-linguist-tools libboost-program-options-dev libboost-thread-dev \
libboost-test-dev  libevent-dev qttools5-dev-tools protobuf-compiler

然后克隆存储库,运行 configure 并 make:

cd ~/Downloads
git clone https://github.com/dashpay/dash.git
cd dash
./autogen.sh
./configure --with-incompatible-bdb
make -j4

然后测试它(可选):

src/test/test_dash
src/qt/test/test_dash-qt

并安装到系统:

sudo make install

相关内容