diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-10-21 13:23:06 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-10-21 13:48:32 +0200 |
| commit | 97e1d812a8fddc26fe743459484de34d65b66ebf (patch) | |
| tree | 0ad20b9252d8efd2b250c8f833e1bee896201c43 /pkg | |
| parent | dbadd369459b8fcd5cd96925f37d5f9d992a3ce9 (diff) | |
pkg/build: detect errors due to missing files
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/build/build.go | 1 | ||||
| -rw-r--r-- | pkg/build/build_test.go | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/pkg/build/build.go b/pkg/build/build.go index 348a18555..149d8729c 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -289,6 +289,7 @@ var buildFailureCauses = [...]buildFailureCause{ {pattern: []byte(": undefined reference to")}, {pattern: []byte(": multiple definition of")}, {pattern: []byte(": Permission denied")}, + {pattern: []byte(": not found")}, {weak: true, pattern: []byte(": final link failed: ")}, {weak: true, pattern: []byte("collect2: error: ")}, {weak: true, pattern: []byte("FAILED: Build did NOT complete")}, diff --git a/pkg/build/build_test.go b/pkg/build/build_test.go index 697e29dfd..3c7e815dd 100644 --- a/pkg/build/build_test.go +++ b/pkg/build/build_test.go @@ -466,4 +466,20 @@ make: *** [vmlinux] Error 1 "", "mm/page_alloc.c", }, + {` + LZ4 arch/x86/boot/compressed/vmlinux.bin.lz4 +/bin/sh: 1: lz4: not found +arch/x86/boot/compressed/Makefile:151: recipe for target 'arch/x86/boot/compressed/vmlinux.bin.lz4' failed +make[2]: *** [arch/x86/boot/compressed/vmlinux.bin.lz4] Error 127 +make[2]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.bin.lz4' +make[2]: *** Waiting for unfinished jobs.... +arch/x86/boot/Makefile:112: recipe for target 'arch/x86/boot/compressed/vmlinux' failed +make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2 +arch/x86/Makefile:290: recipe for target 'bzImage' failed +make: *** [bzImage] Error 2 +`, + "/bin/sh: 1: lz4: not found", + "", + "", + }, } |
