trezor / blockbook

:blue_book: Trezor address/account balance backend
https://trezor.io
GNU Affero General Public License v3.0
670 stars 655 forks source link

New clean install debian 12, I cant compile make all-ethereum #1091

Open Chinook96 opened 6 months ago

Chinook96 commented 6 months ago

I have this error:

444.3 975 | (v8di) 444.3 | ~~~~ 444.3 976 | _mm512_undefined_epi32 (), 444.3 | ~~~~~~ 444.3 977 | (__mmask8) -1); 444.3 | ~~~~~~ 444.3 /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h: In function 'XXH128_hash_t ROCKSDB_XXH3_128bits_digest(const XXH3_state_t*)': 444.3 /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:206:11: note: 'Y' was declared here 444.3 206 | m512i Y = Y; 444.3 | ^~~ 444.3 In function 'm512i _mm512_shuffle_epi32(m512i, _MM_PERM_ENUM)', 444.3 inlined from 'void XXH3_accumulate_512_avx512(void, const void, const void)' at util/xxhash.h:3610:55, 444.3 inlined from 'void XXH3_digest_long(XXH64_hash_t, const XXH3_state_t, const unsigned char)' at util/xxhash.h:4726:28, 444.3 inlined from 'XXH128_hash_t ROCKSDB_XXH3_128bits_digest(const XXH3_state_t*)' at util/xxhash.h:5252:25: 444.3 /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:4459:50: error: 'Y' may be used uninitialized [-Werror=maybe-uninitialized] 444.3 4459 | return (m512i) builtin_ia32_pshufd512_mask ((v16si) A, 444.3 | ~~~~~~^~~~~~~ 444.3 4460 | mask, 444.3 | ~~~ 444.3 4461 | (v16si) 444.3 | ~~~~~ 444.3 4462 | _mm512_undefined_epi32 (), 444.3 | ~~~~~~ 444.3 4463 | (__mmask16) -1); 444.3 | ~~~ 444.3 /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h: In function 'XXH128_hash_t ROCKSDB_XXH3_128bits_digest(const XXH3_state_t*)': 444.3 /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:206:11: note: 'Y' was declared here 444.3 206 | m512i Y = Y; 444.3 | ^~~ 444.4 cc1plus: all warnings being treated as errors 444.5 make[1]: [Makefile:2529: util/xxhash.o] Error 1 444.5 make[1]: Waiting for unfinished jobs.... 446.2 make[1]: Leaving directory '/opt/rocksdb' 446.2 make: *** [Makefile:906: release] Error 2

Dockerfile:42

40 | # install rocksdb 41 | RUN cd /opt && git clone -b $ROCKSDB_VERSION --depth 1 https://github.com/facebook/rocksdb.git 42 | >>> RUN cd /opt/rocksdb && CFLAGS=-fPIC CXXFLAGS=-fPIC PORTABLE=$PORTABLE_ROCKSDB make -j 4 release 43 | RUN strip /opt/rocksdb/ldb /opt/rocksdb/sst_dump && \ 44 | cp /opt/rocksdb/ldb /opt/rocksdb/sst_dump /build

ERROR: failed to solve: process "/bin/sh -c cd /opt/rocksdb && CFLAGS=-fPIC CXXFLAGS=-fPIC PORTABLE=$PORTABLE_ROCKSDB make -j 4 release" did not complete successfully: exit code: 2 make[1]: [Makefile:48: .bin-image] Error 1 make[1]: Leaving directory '/tmp/blockbook' make: [Makefile:45: build-images] Error 2 root@debian-12-image:/tmp/blockbook# make all-ethereum

Chinook96 commented 6 months ago

I installed debian 11 on another machine and there is work fine.