cryptozeny / sugarchain-v0.16.3

OUTDATED! This repo is moved to:
https://github.com/sugarchain-project/sugarchain
MIT License
0 stars 1 forks source link

TRAVIS Linux #45

Closed cryptozeny closed 5 years ago

cryptozeny commented 5 years ago
0.00s$ cd sugarchain-v0.16.3-$HOST
/home/travis/.travis/functions: line 104: cd: sugarchain-v0.16.3-x86_64-unknown-linux-gnu: No such file or directory
The command "cd sugarchain-v0.16.3-$HOST" exited with 1.
libtool: compile:  /home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/share/../native/bin/ccache gcc -m64 -DHAVE_CONFIG_H -I. -I../src/config -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I./obj -I./secp256k1/include -DBUILD_BITCOIN_INTERNAL -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -I/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/share/../include/ -DDEBUG_LOCKORDER -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -pipe -O1 -c crypto/yespower-1.0.0/sha256.c  -fPIC -DPIC -o crypto/yespower-1.0.0/.libs/libbitcoinconsensus_la-sha256.o
crypto/yespower-1.0.0/sha256.c:32:30: fatal error: insecure_memzero.h: No such file or directory
 #include "insecure_memzero.h"
                              ^
compilation terminated.
make[2]: *** [crypto/yespower-1.0.0/libbitcoinconsensus_la-sha256.lo] Error 1
crypto/yespower-1.0.0/yespower-opt.c:57:2: warning: #warning "Note: AVX and XOP are not enabled.  That's OK." [-Wcpp]
 #warning "Note: AVX and XOP are not enabled.  That's OK."
  ^
crypto/yespower-1.0.0/sha256.c:32:30: fatal error: insecure_memzero.h: No such file or directory
 #include "insecure_memzero.h"
                              ^
compilation terminated.
crypto/yespower-1.0.0/yespower-opt.c:97:30: fatal error: insecure_memzero.h: No such file or directory
 #include "insecure_memzero.h"
                              ^
compilation terminated.
  CXX      consensus/libbitcoinconsensus_la-merkle.lo
make[2]: *** [crypto/yespower-1.0.0/libbitcoinconsensus_la-sha256.lo] Error 1
FileNotFoundError: [Errno 2] No such file or directory: '/home/travis/build/cryptozeny/sugarchain-v0.16.3/build/sugarchain-x86_64-unknown-linux-gnu/src/bitcoind'
2019-02-22 22:56:03.447000 TestFramework (INFO): Stopping nodes
2019-02-22 22:56:03.447000 TestFramework (WARNING): Not cleaning up dir /tmp/bitcoin_test_runner_20190222_225603/cache
2019-02-22 22:56:03.447000 TestFramework (ERROR): Test failed. Test logging available at /tmp/bitcoin_test_runner_20190222_225603/cache/test_framework.log
cryptozeny commented 5 years ago

no sugarchain dir

$ cd sugarchain-$HOST
/home/travis/.travis/functions: line 104: cd: sugarchain-x86_64-unknown-linux-gnu: No such file or directory
The command "cd sugarchain-$HOST" exited with 1.
cryptozeny commented 5 years ago
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) 
configure:3841: $? = 0
configure:3830: g++ -m64 -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
cryptozeny commented 5 years ago
conftest.cpp:68:37: fatal error: libdb4.8/db_cxx.h: No such file or directory
         #include <libdb4.8/db_cxx.h>
                                     ^
compilation terminated.
cryptozeny commented 5 years ago
configure: exit 0
The command "./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)" exited with 1.
cryptozeny commented 5 years ago
cd bitcoin-$HOST
/home/travis/.travis/functions: line 104: cd: bitcoin-x86_64-unknown-linux-gnu: No such file or directory
The command "cd bitcoin-$HOST" exited with 1.

cd $HOST

cryptozeny commented 5 years ago
libtool: compile:  /home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/share/../native/bin/ccache gcc -m64 -DHAVE_CONFIG_H -I. -I../src/config -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I./obj -I./secp256k1/include -DBUILD_BITCOIN_INTERNAL -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -I/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/share/../include/ -DDEBUG_LOCKORDER -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -pipe -O1 -c crypto/yespower-1.0.0/sha256.c  -fPIC -DPIC -o crypto/yespower-1.0.0/.libs/libbitcoinconsensus_la-sha256.o
crypto/yespower-1.0.0/sha256.c:32:30: fatal error: insecure_memzero.h: No such file or directory
 #include "insecure_memzero.h"
                              ^
compilation terminated.
cryptozeny commented 5 years ago
CXXLD    qt/test/test_sugarchain-qt
/usr/bin/ld: cannot find -lproxy
collect2: error: ld returned 1 exit status
Makefile:3744: recipe for target 'qt/sugarchain-qt' failed
make[2]: *** [qt/sugarchain-qt] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/ld: cannot find -lproxy
collect2: error: ld returned 1 exit status

libproxy

cryptozeny commented 5 years ago

libtool: link: g++ -m64 -std=c++11 -pthread -Wl,-z -Wl,relro -Wl,-z -Wl,now -pie -o qt/sugarchain-qt qt/qt_sugarchain_qt-bitcoin.o -pthread -pthread -pthread -L/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/share/../lib qt/libbitcoinqt.a libbitcoin_server.a libbitcoin_wallet.a libbitcoin_zmq.a -L/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/lib /home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/lib/libzmq.a libbitcoin_cli.a libbitcoin_common.a libbitcoin_util.a libbitcoin_consensus.a crypto/libbitcoin_crypto.a univalue/.libs/libunivalue.a leveldb/libleveldb.a leveldb/libleveldb_sse42.a leveldb/libmemenv.a -lboost_system-mt-d -lboost_filesystem-mt-d -lboost_program_options-mt-d -lboost_thread-mt-d -lboost_chrono-mt-d -L/usr/X11R6/lib64 -lQt5Network -lproxy -lQt5Widgets -lgobject-2.0 -lXext -lX11 -lQt5Gui -lpng -lharfbuzz -lGL -lQt5DBus -ldbus-1 -lQt5Core -licui18n -licuuc -licudata -lpcre16 -lm -lgthread-2.0 -lglib-2.0 -lprotobuf -lpthread -lz -ldb_cxx-4.8 -lssl -lcrypto -ldl secp256k1/.libs/libsecp256k1.a /home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/lib/libevent_pthreads.a /home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/lib/libevent.a -lrt -pthread /usr/bin/ld: cannot find -lproxy collect2: error: ld returned 1 exit status Makefile:3744: recipe for target 'qt/sugarchain-qt' failed

cryptozeny commented 5 years ago

configure:28987: g++ -m64 -std=c++11 -o conftest -pipe -O1 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -I/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/share/../include/ -DDEBUG_LOCKORDER -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/share/../include -L/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/share/../lib conftest.cpp -L/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-unknown-linux-gnu/share/../lib -lboost_system-mt-d -lboost_filesystem-mt-d -lboost_program_options-mt-d -lboost_thread-mt-d -lboost_chrono-mt-d -lrt >&5 conftest.cpp: In function 'int main()': conftest.cpp:92:5: error: 'choke' was not declared in this scope choke; ^ configure:28987: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "Sugarchain Yumekawa"

cryptozeny commented 5 years ago

In file included from conftest.cpp:71:0: /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)." error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\ ^ conftest.cpp: In function 'int main()': conftest.cpp:79:9: error: 'choke' was not declared in this scope choke ^

cryptozeny commented 5 years ago

/usr/bin/ld: cannot find -lproxy collect2: error: ld returned 1 exit status Makefile:3744: recipe for target 'qt/sugarchain-qt' failed

cryptozeny commented 5 years ago
--------------------------------- .travis.yml ---------------------------------
index 9fd163f..7995826 100644
@@ -1,5 +1,5 @@
 sudo: required
-dist: trusty
+dist: xenial
 os: linux
 language: minimal
 cache:
@@ -20,27 +20,29 @@ env:
     - CCACHE_COMPRESS=1
     - BASE_OUTDIR=$TRAVIS_BUILD_DIR/out
     - SDK_URL=https://bitcoincore.org/depends-sources/sdks
+    - YESPOWER_PATH=$TRAVIS_BUILD_DIR/src/crypto/yespower-1.0.0
     - WINEDEBUG=fixme-all
   matrix:
 # ARM
-    - HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf python3-pip" DEP_OPTS="NO_QT=1" CHECK_DOC=1 GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
+    # - HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf python3-pip" DEP_OPTS="NO_QT=1" CHECK_DOC=1 GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
 # Win32
-    - HOST=i686-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 nsis g++-mingw-w64-i686 wine1.6" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports"
+    # - HOST=i686-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 nsis g++-mingw-w64-i686 wine1.6" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports"
 # Qt4 & system libs
-    - HOST=x86_64-unknown-linux-gnu PACKAGES="python3-zmq qt4-dev-tools libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.1++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev xvfb" NO_DEPENDS=1 NEED_XVFB=1 RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=qt4 CPPFLAGS=-DDEBUG_LOCKORDER"
+    # - HOST=x86_64-unknown-linux-gnu PACKAGES="python3-zmq qt4-dev-tools libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.1++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev xvfb" NO_DEPENDS=1 NEED_XVFB=1 RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=qt4 CPPFLAGS=-DDEBUG_LOCKORDER"
 # 32-bit + dash
-    - HOST=i686-pc-linux-gnu PACKAGES="g++-multilib python3-zmq" DEP_OPTS="NO_QT=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash"
+    # - HOST=i686-pc-linux-gnu PACKAGES="g++-multilib python3-zmq" DEP_OPTS="NO_QT=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash"
 # Win64
-    - HOST=x86_64-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine1.6" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports"
+    # - HOST=x86_64-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine1.6" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-reduce-exports"
 # x86_64 Linux (uses qt5 dev package instead of depends Qt to speed up build and avoid timeout)
-    - HOST=x86_64-unknown-linux-gnu PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools protobuf-compiler libdbus-1-dev libharfbuzz-dev" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER"
+    - HOST=x86_64-unknown-linux-gnu PACKAGES="libproxy* python3-zmq qtbase5-dev qttools5-dev-tools protobuf-compiler libdbus-1-dev libharfbuzz-dev" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1" RUN_TESTS=false RUN_TESTS_PYTHON=false GOAL="install" BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER"
 # x86_64 Linux, No wallet
-    - HOST=x86_64-unknown-linux-gnu PACKAGES="python3" DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
+    # - HOST=x86_64-unknown-linux-gnu PACKAGES="python3" DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
 # Cross-Mac
-    - HOST=x86_64-apple-darwin11 PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror" OSX_SDK=10.11 GOAL="deploy"
+    # - HOST=x86_64-apple-darwin11 PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev" BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror" OSX_SDK=10.11 GOAL="deploy"

 before_install:
     - export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
+    - export C_INCLUDE_PATH=-I$YESPOWER_PATH
 install:
     - if [ -n "$DPKG_ADD_ARCH" ]; then sudo dpkg --add-architecture "$DPKG_ADD_ARCH" ; fi
     - if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get update; fi
@@ -74,13 +76,13 @@ script:
     - mkdir build && cd build
     - ../configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
     - make distdir VERSION=$HOST
-    - cd bitcoin-$HOST
+    - cd sugarchain-$HOST
     - ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
     - make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false )
     - export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib
     - if [ "$RUN_TESTS" = "true" ]; then travis_wait 30 make $MAKEJOBS check VERBOSE=1; fi
     - if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then extended="--extended --exclude feature_pruning,feature_dbcrash"; fi
-    - if [ "$RUN_TESTS" = "true" ]; then test/functional/test_runner.py --combinedlogslen=4000 --coverage --quiet ${extended}; fi
+    - if [ "$RUN_TESTS_PYTHON" = "true" ]; then test/functional/test_runner.py --combinedlogslen=4000 --coverage --quiet ${extended}; fi
 after_script:
     - echo $TRAVIS_COMMIT_RANGE
     - echo $TRAVIS_COMMIT_LOG
cryptozeny commented 5 years ago

macOS error

clang++ -c -pipe -pipe -O2 -I/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-apple-darwin11/include -stdlib=libc++ -pipe -pipe -O2 -I/home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/x86_64-apple-darwin11/include -target x86_64-apple-darwin11 -isysroot /home/travis/build/cryptozeny/sugarchain-v0.16.3/depends/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -mavx512pf -g -Wall -W -fPIC -DAVX512WANT=PF -I. -I../../../mkspecs/macx-clang-linux -o avx512.o avx512.cpp avx512.cpp:75:5: error: use of undeclared identifier '_mm512_mask_prefetch_i64scatter_pd' _mm512_mask_prefetch_i64scatter_pd(argv, 0xf, i, 2, 2); ^ 1 error generated. Makefile:215: recipe for target 'avx512.o' failed make[1]: *** [avx512.o] Error 1

cryptozeny commented 5 years ago

macOS

include "insecure_memzero.h"

 ^ 1 error generated. Makefile:4385: recipe for target 'crypto/yespower-1.0.0/crypto_libbitcoin_crypto_a-sha256.o' failed make[1]: *** [crypto/yespower-1.0.0/crypto_libbitcoin_crypto_a-sha256.o] Error 1 make[1]: Leaving directory '/home/travis/build/cryptozeny/sugarchain-v0.16.3/build/sugarchain-x86_64-apple-darwin11/src' Makefile:1251: recipe for target 'src/qt/sugarchain-qt' failed

cryptozeny commented 5 years ago

Win64 recursive_mutex

libtool: warning: undefined symbols not allowed in x86_64-w64-mingw32 shared libraries; building static only /usr/bin/x86_64-w64-mingw32-ar: u' modifier ignored sinceD' is the default (see `U') make[3]: Leaving directory '/home/travis/build/cryptozeny/sugarchain-v0.16.3/build/sugarchain-x86_64-w64-mingw32/src/secp256k1' CXX libbitcoin_server_a-addrman.o In file included from ./util.h:19:0, from bitcoind.cpp:17: ./sync.h:94:48: error: ‘recursive_mutex’ is not a member of ‘std’ class CCriticalSection : public AnnotatedMixin ^

cryptozeny commented 5 years ago

macOS

echo '{ CFBundleDisplayName = "Sugarchain Yumekawa"; CFBundleName = "Sugarchain Yumekawa"; }' > Sugarchain-Qt.app/Contents/Resources/Base.lproj/InfoPlist.strings ld: entry point (_main) undefined. for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:3735: recipe for target 'qt/sugarchain-qt' failed

cryptozeny commented 5 years ago

linux x64 no wallet

anyway build is OK

  GEN      tatar-cyr/Compose
  GEN      sr_CS.UTF-8/Compose
<stdin>:3:0: error: invalid preprocessing directive #Serbian
<stdin>:4:0: error: invalid preprocessing directive #�
<stdin>:5:0: error: invalid preprocessing directive #�
<stdin>:6:0: error: invalid preprocessing directive #�
<stdin>:7:0: error: invalid preprocessing directive #�
<stdin>:8:0: error: invalid preprocessing directive #�
<stdin>:10:0: error: invalid preprocessing directive #�
<stdin>:11:0: error: invalid preprocessing directive #�
<stdin>:12:0: error: invalid preprocessing directive #�
<stdin>:13:0: error: invalid preprocessing directive #�
<stdin>:14:0: error: invalid preprocessing directive #�
<stdin>:45:0: error: invalid preprocessing directive #�
<stdin>:86:0: error: invalid preprocessing directive #�
<stdin>:107:0: error: invalid preprocessing directive #�
<stdin>:108:0: error: invalid preprocessing directive #there
  GEN      th_TH/Compose
  GEN      tscii-0/Compose
cryptozeny commented 5 years ago

fixed https://github.com/cryptozeny/sugarchain-v0.16.3/commit/cad72280b474bf38450d32d13b90ba3b49554c5b

cryptozeny commented 5 years ago

fixed https://github.com/cryptozeny/sugarchain-v0.16.3/pull/65