Cannot successfully run “make distdir” after modifying src/leveldb.cpp .
Reproduction steps:
- git clone …
- ./autogen.sh && ./configure
- touch src/leveldb.cpp
- make distdir
I do not know have insight into fixing this issue.
Is causing pull #2767 to fail automatic sanity test, possibly affects other pull requests from passing automatic testing.
Logs
Expected
0if test -d "bitcoin-0.8.99"; then find "bitcoin-0.8.99" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "bitcoin-0.8.99" || { sleep 5 && rm -rf "bitcoin-0.8.99"; }; else :; fi
1test -d "bitcoin-0.8.99" || mkdir "bitcoin-0.8.99"
2(cd src && make top_distdir=../bitcoin-0.8.99 distdir=../bitcoin-0.8.99/src \
3am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
4make[1]: Entering directory `/home/brandon/C++/bitcoin-cleantest/src'
5(cd qt && make top_distdir=../../bitcoin-0.8.99 distdir=../../bitcoin-0.8.99/src/qt \
6am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
7make[2]: Entering directory `/home/brandon/C++/bitcoin-cleantest/src/qt'
8(cd test && make top_distdir=../../../bitcoin-0.8.99 distdir=../../../bitcoin-0.8.99/src/qt/test \
9am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
10make[3]: Entering directory `/home/brandon/C++/bitcoin-cleantest/src/qt/test'
11make[3]: Leaving directory `/home/brandon/C++/bitcoin-cleantest/src/qt/test'
12make[2]: Leaving directory `/home/brandon/C++/bitcoin-cleantest/src/qt'
13(cd test && make top_distdir=../../bitcoin-0.8.99 distdir=../../bitcoin-0.8.99/src/test \
14am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
15make[2]: Entering directory `/home/brandon/C++/bitcoin-cleantest/src/test'
16make[2]: Leaving directory `/home/brandon/C++/bitcoin-cleantest/src/test'
17make[1]: Leaving directory `/home/brandon/C++/bitcoin-cleantest/src'
18make \
19 top_distdir="bitcoin-0.8.99" distdir="bitcoin-0.8.99" \
20 dist-hook
21make[1]: Entering directory `/home/brandon/C++/bitcoin-cleantest'
22make -C bitcoin-0.8.99/src/leveldb clean
23make[2]: Entering directory `/home/brandon/C++/bitcoin-cleantest/bitcoin-0.8.99/src/leveldb'
24rm -f db_bench leveldbutil arena_test autocompact_test bloom_test c_test cache_test coding_test corruption_test crc32c_test db_test dbformat_test env_test filename_test filter_block_test issue178_test log_test memenv_test skiplist_test table_test version_edit_test version_set_test write_batch_test db_bench_sqlite3 db_bench_tree_db libleveldb.a libleveldb.so libleveldb.so.1 libleveldb.so.1.13 libmemenv.a */*.o */*/*.o ios-x86/*/*.o ios-arm/*/*.o build_config.mk
25rm -rf ios-x86/* ios-arm/*
26make[2]: Leaving directory `/home/brandon/C++/bitcoin-cleantest/bitcoin-0.8.99/src/leveldb'
27/usr/bin/git archive --format=tar HEAD -- src/version.cpp | ${TAR-tar} -C bitcoin-0.8.99 -xf -
28make[1]: Leaving directory `/home/brandon/C++/bitcoin-cleantest'
29test -n "" \
30|| find "bitcoin-0.8.99" -type d ! -perm -755 \
31 -exec chmod u+rwx,go+rx {} \; -o \
32 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
33 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
34 ! -type d ! -perm -444 -exec /bin/sh /home/brandon/C++/bitcoin-cleantest/src/build-aux/install-sh -c -m a+r {} {} \; \
35|| chmod -R a+r "bitcoin-0.8.99"
Actual
0if test -d "bitcoin-0.8.99"; then find "bitcoin-0.8.99" -type d ! -perm -200 -exec chmod u+w {} ';' && rm -rf "bitcoin-0.8.99" || { sleep 5 && rm -rf "bitcoin-0.8.99"; }; else :; fi
1test -d "bitcoin-0.8.99" || mkdir "bitcoin-0.8.99"
2(cd src && make top_distdir=../bitcoin-0.8.99 distdir=../bitcoin-0.8.99/src \
3am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)
4make[1]: Entering directory `/home/brandon/C++/bitcoin-cleantest/src'
5/usr/bin/ccache g++ -g -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -fPIE -fno-stack-protector -fstack-protector-all -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -Wl,-z,now -pie leveldb.cpp -o leveldb
6<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
7leveldb.cpp:1:0: note: this is the location of the previous definition
8In file included from leveldb.h:8:0,
9 from leveldb.cpp:5:
10util.h:112:2: error: #error missing boost sleep implementation
11leveldb.cpp:13:27: fatal error: memenv/memenv.h: No such file or directory
12compilation terminated.
13make[1]: *** [leveldb] Error 1
14make[1]: Leaving directory `/home/brandon/C++/bitcoin-cleantest/src'
15make: *** [distdir] Error 1
Digging through make -d distdir shows the lines:
0 Considering target file `leveldb'.
1 Looking for an implicit rule for `leveldb'.
2 Trying pattern rule with stem `leveldb'.
3 Trying implicit prerequisite `leveldb.cpp'.
4 Found an implicit rule for `leveldb'.
5Pruning file `leveldb.cpp'.
6 Finished prerequisites of target file `leveldb'.
7 Prerequisite `leveldb.cpp' is newer than target `leveldb'.
8 Must remake target `leveldb'.
9Invoking builtin recipe to update target `leveldb'.
10make[1]: Entering directory `/home/brandon/C++/bitcoin/src'
11/usr/bin/ccache g++ -g -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -fPIE -fno-stack-protector -fstack-protector-all -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -Wl,-z,now -pie leveldb.cpp -o leveldb