mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
parent
3f1ca18f2f
commit
394aef2391
2
Makefile
2
Makefile
@ -549,7 +549,7 @@ uninstall:
|
|||||||
rm -f $(DESTDIR)$(docdir)/`basename $$f`; \
|
rm -f $(DESTDIR)$(docdir)/`basename $$f`; \
|
||||||
done
|
done
|
||||||
|
|
||||||
installcheck:
|
installcheck: all-programs
|
||||||
@rm -rf testinstall || true
|
@rm -rf testinstall || true
|
||||||
$(MAKE) DESTDIR=$$(pwd)/testinstall install
|
$(MAKE) DESTDIR=$$(pwd)/testinstall install
|
||||||
testinstall$(bindir)/lightningd --test-daemons-only --lightning-dir=testinstall
|
testinstall$(bindir)/lightningd --test-daemons-only --lightning-dir=testinstall
|
||||||
|
Loading…
Reference in New Issue
Block a user