From 394aef23919b0e60ac63029ec0985267d62ffaa5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 22 Aug 2019 15:47:24 +0930 Subject: [PATCH] Makefile: fix race with 'make check' installcheck calls $(MAKE) under the covers, which can race with the current builds, and we can try installing something which is still being built: collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped compilation terminated. /usr/bin/ld: can not read symbols: File truncated /usr/bin/ld: .eh_frame/.stab edit: File truncated /usr/bin/ld: lightningd/lightningd: warning: allocated section `.interp' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.note.ABI-tag' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.note.gnu.build-id' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.gnu.hash' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.dynsym' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.dynstr' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.gnu.version' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.gnu.version_r' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.rela.dyn' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.rela.plt' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.init' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.plt' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.plt.got' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.text' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.fini' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.rodata' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.eh_frame' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.init_array' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.fini_array' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.data.rel.ro' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.dynamic' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.got' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `.data' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `xautodata_json_command' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `xautodata_hooks' not in segment /usr/bin/ld: lightningd/lightningd: warning: allocated section `xautodata_type_to_string' not in segment Makefile:390: recipe for target 'lightningd/lightningd' failed make[1]: *** [lightningd/lightningd] Error 1 make[1]: Leaving directory '/home/rusty/lightning' Makefile:553: recipe for target 'installcheck' failed make: *** [installcheck] Error 2 Signed-off-by: Rusty Russell --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5760a7e2e..141788f08 100644 --- a/Makefile +++ b/Makefile @@ -549,7 +549,7 @@ uninstall: rm -f $(DESTDIR)$(docdir)/`basename $$f`; \ done -installcheck: +installcheck: all-programs @rm -rf testinstall || true $(MAKE) DESTDIR=$$(pwd)/testinstall install testinstall$(bindir)/lightningd --test-daemons-only --lightning-dir=testinstall