BTCPrivate / BitcoinPrivate-legacy

Bitcoin Private is a Bitcoin and Zclassic fork which uses ZK-SNARK technology for privacy and fungibility.
Other
283 stars 132 forks source link

Linux build fails with error error: "none" is not a known value of feature <optimization> #92

Closed VERTlG0 closed 6 years ago

VERTlG0 commented 6 years ago

Tried building first with GCC-7.3.0 and then GCC-6.4.0 which were both unsuccessful. Error occurs in the boost building stage.

projects/boost/files/boost/1.62.0/boost_1_62_0.tar.bz2" ) && echo "36c96b0f6155c98404091d8ceb48319a28279ca0333fba1ad8611eb90afb2ca0 /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/download/boost-1_62_0/boost_1_62_0.tar.bz2.temp" > /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/download/boost-1_62_0/.boost_1_62_0.tar.bz2.hash && sha256sum -c /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/download/boost-1_62_0/.boost_1_62_0.tar.bz2.hash && mv /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/download/boost-1_62_0/boost_1_62_0.tar.bz2.temp /root/cryptomining/coins/btcp/BitcoinPrivate/depends/sources/boost_1_62_0.tar.bz2 && rm -rf /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/download/boost-1_62_0 )) Fetching boost...
2018-02-25 08:34:52 URL:https://z.cash/depends-sources/boost_1_62_0.tar.bz2 [84513338/84513338] -> "/root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/download/boost-1_62_0/boost_1_62_0.tar.bz2.temp" [1] /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/download/boost-1_62_0/boost_1_62_0.tar.bz2.temp: OK
cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/sources; sha256sum boost_1_62_0.tar.bz2 >> /root/cryptomining/coins/btcp/BitcoinPrivate/depends/sources/download-stamps/.stamp_fetched-boost-boost_1_62_0.tar.bz2.hash; touch /root/cryptomining/coins/btcp/BitcoinPrivate/depends/sources/download-stamps/.stamp_fetched-boost-boost_1_62_0.tar.bz2.hash
echo Extracting boost...
Extracting boost...
mkdir -p /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6
cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6; mkdir -p /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6 && echo "36c96b0f6155c98404091d8ceb48319a28279ca0333fba1ad8611eb90afb2ca0 /root/cryptomining/coins/btcp/BitcoinPrivate/depends/sources/boost_1_62_0.tar.bz2" > /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.boost_1_62_0.tar.bz2.hash && sha256sum -c /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.boost_1_62_0.tar.bz2.hash && tar --strip-components=1 -xf /root/cryptomining/coins/btcp/BitcoinPrivate/depends/sources/boost_1_62_0.tar.bz2 /root/cryptomining/coins/btcp/BitcoinPrivate/depends/sources/boost_1_62_0.tar.bz2: OK
touch /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.stamp_extracted
echo Preprocessing boost...
Preprocessing boost...
mkdir -p /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6 /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.patches-936672d2af6 cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/patches/boost; cp deprecated_auto_ptr.patch /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.patches-936672d2af6 ; cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/patches/boost; cp include_poll.patch /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.patches-936672d2af6 ; cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6; echo "using gcc : : g++ -m64 : \"-fvisibility=hidden -fPIC -I/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/include \" \"-L/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/lib \" \"ar\" \"strip\" \"ranlib\" \"\" : ;" > user-config.jam && patch -p1 < /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.patches-936672d2af6/deprecated_auto_ptr.patch && patch -p1 < /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.patches-936672d2af6/include_poll.patch patching file boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp
patching file boost/asio/detail/socket_types.hpp
touch /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.stamp_preprocessed
echo Configuring boost...
Configuring boost...
rm -rf /root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu; mkdir -p /root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/lib; cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu; mkdir -p /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.
cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.; PKG_CONFIG_LIBDIR=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/lib/pkgconfig PKG_CONFIG_PATH=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/share/pkgconfig PATH=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/native/bin:/sbin:/bin:/usr/sbin:/usr/bin ./bootstrap.sh --without-icu --with-libraries=chrono,filesystem,program_options,system,thread,test Building Boost.Build engine with toolset gcc... tools/build/src/engine/bin.linuxx86_64/b2
Unicode/ICU support for Boost.Regex?... disabled.
Generating Boost.Build configuration in project-config.jam...

Bootstrapping is done. To build, run:

./b2

To adjust configuration, edit 'project-config.jam'. Further information:

touch /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/./.stamp_configured
echo Building boost...
Building boost...
mkdir -p /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.
cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.; PATH=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/native/bin:/sbin:/bin:/usr/sbin:/usr/bin ./b2 -d2 -j2 -d1 --prefix=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/staging/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu --layout=tagged --build-type=complete --user-config=user-config.jam threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1 variant=release threadapi=pthread runtime-link=shared stage /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build/feature.jam:494: in feature.validate-value-string from module feature error: "none" is not a known value of feature error: legal values: "off" "speed" "space" /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build/property.jam:276: in validate1 from module property /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build/property.jam:302: in property.validate from module property /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/tools/builtin.jam:381: in variant from module builtin /usr/share/boost-build/site-config.jam:9: in modules.load from module site-config /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build-system.jam:249: in load-config from module build-system /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build-system.jam:351: in load-configuration-files from module build-system /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build-system.jam:524: in load from module build-system /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/kernel/modules.jam:295: in import from module modules /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/boost-build.jam:17: in module scope from module

make: *** [funcs.mk:244: /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/./.stamp_built] Error 1
make: Leaving directory '/root/cryptomining/coins/btcp/BitcoinPrivate/depends'
z170x ~/cryptomining/coins/btcp/BitcoinPrivate # gcc-config l

z170x ~/cryptomining/coins/btcp/BitcoinPrivate # env-update && source /etc/profile

Regenerating /etc/ld.so.cache...
z170x ~/cryptomining/coins/btcp/BitcoinPrivate # ./btcputil/build.sh -j9
+++ readlink -f ./btcputil/build.sh
++ dirname /root/cryptomining/coins/btcp/BitcoinPrivate/btcputil/build.sh

  • cd /root/cryptomining/coins/btcp/BitcoinPrivate/btcputil/..
  • LCOV_ARG=
  • HARDENING_ARG=--enable-hardening
  • TEST_ARG=
  • '[' x-j9 = x--enable-lcov ']'
  • '[' x-j9 = x--disable-tests ']'
  • MINING_ARG=
  • '[' x-j9 = x--disable-mining ']'
  • RUST_ARG=
  • '[' x-j9 = x--disable-rust ']'
  • PROTON_ARG=--enable-proton=no
  • '[' x-j9 = x--enable-proton ']'
  • LIBS_ARG=
  • '[' x-j9 = x--disable-libs ']'
    ++ pwd
  • PREFIX=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/
  • eval make --version
    ++ make --version GNU Make 4.2.1
    Built for x86_64-pc-linux-gnu
    Copyright (C) 1988-2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
  • eval gcc --version
    ++ gcc --version
    gcc (Gentoo 6.4.0-r1 p1.3) 6.4.0
    Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make: *** [funcs.mk:244: /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/./.stamp_built] Error 1
make: Leaving directory '/root/cryptomining/coins/btcp/BitcoinPrivate/depends'
z170x ~/cryptomining/coins/btcp/BitcoinPrivate # cd ..
z170x ~/cryptomining/coins/btcp # rm -r BitcoinPrivate/
z170x ~/cryptomining/coins/btcp # git clone --recursive https://github.com/BTCPrivate/BitcoinPrivate.git
Cloning into 'BitcoinPrivate'...
remote: Counting objects: 62953, done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 62953 (delta 35), reused 55 (delta 33), pack-reused 62863
Receiving objects: 100% (62953/62953), 46.58 MiB | 7.94 MiB/s, done.
Resolving deltas: 100% (47691/47691), done.
z170x ~/cryptomining/coins/btcp # cd BitcoinPrivate/
z170x ~/cryptomining/coins/btcp/BitcoinPrivate # ./btcputil/build.sh -j9
+++ readlink -f ./btcputil/build.sh
++ dirname /root/cryptomining/coins/btcp/BitcoinPrivate/btcputil/build.sh

Bootstrapping is done. To build, run:

./b2

To adjust configuration, edit 'project-config.jam'. Further information:

touch /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/./.stamp_configured
echo Building boost...
Building boost...
mkdir -p /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.
cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.; PATH=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/native/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/6.4.0:/usr/x86_64-pc-linux-gnu/armv6j-hardfloat-linux-gnueabi/gcc-bin/6.4.0:/usr/x86_64-pc-linux-gnu/avr/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/opt/cuda/bin ./b2 -d2 -j2 -d1 --prefix=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/staging/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu --layout=tagged --build-type=complete --user-config=user-config.jam threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1 variant=release threadapi=pthread runtime-link=shared stage

from module property /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build/property.jam:302: in property.validate from module property /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/tools/builtin.jam:381: in variant from module builtin /usr/share/boost-build/site-config.jam:9: in modules.load from module site-config z170x ~/cryptomining/coins/btcp # git clone --recursive https://github.com/BTCPrivate/BitcoinPrivate.git Cloning into 'BitcoinPrivate'... remote: Counting objects: 62953, done. remote: Compressing objects: 100% (56/56), done. remote: Total 62953 (delta 35), reused 55 (delta 33), pack-reused 62863 Receiving objects: 100% (62953/62953), 46.58 MiB | 9.17 MiB/s, done. Resolving deltas: 100% (47691/47691), done. z170x ~/cryptomining/coins/btcp # cd BitcoinPrivate/ z170x ~/cryptomining/coins/btcp/BitcoinPrivate # ./btcputil/build.sh -j9 +++ readlink -f ./btcputil/build.sh ++ dirname /root/cryptomining/coins/btcp/BitcoinPrivate/btcputil/build.sh

Bootstrapping is done. To build, run:

./b2

To adjust configuration, edit 'project-config.jam'. Further information:

touch /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/./.stamp_configured
echo Building boost...
Building boost...
mkdir -p /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.
cd /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/.; PATH=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu/native/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/6.4.0:/usr/x86_64-pc-linux-gnu/armv6j-hardfloat-linux-gnueabi/gcc-bin/6.4.0:/usr/x86_64-pc-linux-gnu/avr/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/opt/cuda/bin ./b2 -d2 -j2 -d1 --prefix=/root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/staging/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/root/cryptomining/coins/btcp/BitcoinPrivate/depends/x86_64-unknown-linux-gnu --layout=tagged --build-type=complete --user-config=user-config.jam threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1 variant=release threadapi=pthread runtime-link=shared stage /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build/feature.jam:494: in feature.validate-value-string from module feature error: "none" is not a known value of feature error: legal values: "off" "speed" "space" /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build/property.jam:276: in validate1 from module property /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build/property.jam:302: in property.validate from module property /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/tools/builtin.jam:381: in variant from module builtin /usr/share/boost-build/site-config.jam:9: in modules.load from module site-config /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build-system.jam:249: in load-config from module build-system /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build-system.jam:351: in load-configuration-files from module build-system /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/build-system.jam:524: in load from module build-system /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/kernel/modules.jam:295: in import from module modules /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/boost-build.jam:17: in module scope from module

make: *** [funcs.mk:244: /root/cryptomining/coins/btcp/BitcoinPrivate/depends/work/build/x86_64-unknown-linux-gnu/boost/1_62_0-936672d2af6/./.stamp_built] Error 1
make: Leaving directory '/root/cryptomining/coins/btcp/BitcoinPrivate/depends'

VERTlG0 commented 6 years ago

turns out it was a local variable issue on my distro... had to edit depends/packages.boost.mk and add "--ignore-site-config" to the b2 command. I'm closing this issue.