We have a multiple step Makefile that builds packages for two architectures from the same source. Here are the top level make invocations from the log, hopefully these can help you reproduce: $ fgrep 'make[1]: Entering' -B1 Downloads/Linux_Stretch_901.log [16:59:06] : [build] yes "" | make -C /cfsetup_build/build/linux-4.19.34 ARCH=x86_64 O=/cfsetup_build/build/amd64 oldconfig [16:59:06] : [build] make[1]: Entering directory '/cfsetup_build/build/linux-4.19.34' -- [16:59:09] : [build] yes "" | make -C /cfsetup_build/build/linux-4.19.34 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=/cfsetup_build/build/arm64 oldconfig [16:59:09] : [build] make[1]: Entering directory '/cfsetup_build/build/linux-4.19.34' -- [16:59:14] : [build] make -C /cfsetup_build/build/linux-4.19.34/tools/perf KBUILD_BUILD_TIMESTAMP="Mon Sep 27 00:00:00 UTC 2010" ARCH=x86_64 O=/cfsetup_build/build/amd64/perf DESTDIR=/cfsetup_build/build/amd64/debian/perftmp/usr install LOCALVERSION=-cloudflare-2019.4.0-2-g4cdcca8 LIBBABELTRACE=1 [16:59:14] : [build] make[1]: Entering directory '/cfsetup_build/build/linux-4.19.34/tools/perf' -- [16:59:54] : [build] make -C /cfsetup_build/build/linux-4.19.34/tools/lib/bpf KBUILD_BUILD_TIMESTAMP="Mon Sep 27 00:00:00 UTC 2010" ARCH=x86_64 O=/cfsetup_build/build/amd64/libbpf DESTDIR=/cfsetup_build/build/amd64/debian/libbpftmp install LOCALVERSION=-cloudflare-2019.4.0-2-g4cdcca8 [16:59:54] : [build] make[1]: Entering directory '/cfsetup_build/build/linux-4.19.34/tools/lib/bpf' -- [16:59:55] : [build] make -C /cfsetup_build/build/linux-4.19.34/tools/bpf/bpftool KBUILD_BUILD_TIMESTAMP="Mon Sep 27 00:00:00 UTC 2010" ARCH=x86_64 O=/cfsetup_build/build/amd64/bpftool DESTDIR=/cfsetup_build/build/amd64/debian/bpftooltmp install LOCALVERSION=-cloudflare-2019.4.0-2-g4cdcca8 [16:59:55] : [build] make[1]: Entering directory '/cfsetup_build/build/linux-4.19.34/tools/bpf/bpftool' -- [17:00:00] : [build] make -C /cfsetup_build/build/linux-4.19.34 DB_CRT="/cfsetup_build/dev/DB.crt" ECHO_DB="cat /cfsetup_build/dev/DB.key" KBUILD_BUILD_TIMESTAMP="Mon Sep 27 00:00:00 UTC 2010" ARCH=x86_64 O=/cfsetup_build/build/amd64 -j 4 LOCALVERSION=-cloudflare-2019.4.0-2-g4cdcca8 KDEB_PKGVERSION=2019.4.0-2-g4cdcca8 [17:00:00] : [build] make[1]: Entering directory '/cfsetup_build/build/linux-4.19.34' -- [17:16:00] : [build] make: Entering directory '/cfsetup_build/build/linux-4.19.34' [17:16:00] : [build] make[1]: Entering directory '/cfsetup_build/build/amd64' -- [17:16:05] : [build] Build tree made for linux as x86_64_linux-4.19.34-cloudflare-2019.4.0-2-g4cdcca8 [17:16:05] : [build] make[1]: Entering directory '/cfsetup_build/build/openonload/build/x86_64_linux-4.19.34-cloudflare-2019.4.0-2-g4cdcca8' -- [17:17:42] : [build] make -C /cfsetup_build/build/linux-4.19.34 ARCH=x86_64 O=/cfsetup_build/build/amd64 M=/cfsetup_build/build/glb-director/src/glb-redirect modules [17:17:42] : [build] make[1]: Entering directory '/cfsetup_build/build/linux-4.19.34' -- [17:17:44] : [build] make -C /cfsetup_build/build/linux-4.19.34 DB_CRT="/cfsetup_build/dev/DB.crt" ECHO_DB="cat /cfsetup_build/dev/DB.key" ARCH=x86_64 O=/cfsetup_build/build/amd64 LOCALVERSION=-cloudflare-2019.4.0-2-g4cdcca8 KDEB_PKGVERSION=2019.4.0-2-g4cdcca8 bindeb-pkg [17:17:44] : [build] make[1]: Entering directory '/cfsetup_build/build/linux-4.19.34' On Mon, Apr 8, 2019 at 7:02 PM Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx> wrote: > > On Tue, Apr 9, 2019 at 2:35 AM Ivan Babrou <ivan@xxxxxxxxxxxxxx> wrote: > > > > Hey, > > > > We've tried upgrading 4.19.31 to 4.19.34 and got the following error > > during build: > > I think you ran 'make deb-pkg' or 'make bindeb-pkg'. > I tested 4.19.34, but I could not reproduce the error. > > Could you provide the command to reproduce the error? > > Thanks. > > > > [17:19:47] make KERNELRELEASE=4.19.34-cloudflare-2019.4.0-2-g4cdcca8 > > ARCH=x86_64 KBUILD_BUILD_VERSION=g4cdcca8 KBUILD_SRC= intdeb-pkg > > [17:19:48] /bin/bash /cfsetup_build/build/linux-4.19.34/scripts/package/builddeb > > [17:19:52] *** > > [17:19:52] *** Configuration file ".config" not found! > > [17:19:52] *** > > [17:19:52] *** Please run some configurator (e.g. "make oldconfig" or > > [17:19:52] *** "make menuconfig" or "make xconfig"). > > [17:19:52] *** > > [17:19:52] make[12]: *** [syncconfig] Error 1 > > [17:19:52] make[11]: *** [syncconfig] Error 2 > > [17:19:52] make[10]: *** > > [/cfsetup_build/build/amd64/include/config/auto.conf.cmd] Deleting > > file '/cfsetup_build/build/amd64/include/config/tristate.conf' > > [17:19:52] make[10]: Failed to remake makefile > > '/cfsetup_build/build/amd64/include/config/auto.conf'. > > [17:19:52] make[9]: *** [__sub-make] Error 2 > > [17:19:52] cp: cannot stat > > '/cfsetup_build/build/linux-4.19.34/scripts/kconfig/Makefile:69: > > recipe for target '\''syncconfig'\'' > > failed'$'\n''/cfsetup_build/build/linux-4.19.34/Makefile:539: recipe > > for target '\''syncconfig'\'' > > failed'$'\n''arch/x86/boot/bzImage'$'\n''Makefile:24: recipe for > > target '\''__sub-make'\'' failed': No such file or directory > > [17:19:52] make[8]: *** [intdeb-pkg] Error 1 > > [17:19:52] make[7]: *** [intdeb-pkg] Error 2 > > [17:19:52] make[6]: *** [sub-make] Error 2 > > [17:19:52] make[5]: *** [__sub-make] Error 2 > > [17:19:52] /cfsetup_build/build/linux-4.19.34/scripts/package/Makefile:83: > > recipe for target 'intdeb-pkg' failed > > [17:19:52] make[4]: *** [binary-arch] Error 2 > > [17:19:52] /cfsetup_build/build/linux-4.19.34/Makefile:1365: recipe > > for target 'intdeb-pkg' failed > > [17:19:52] dpkg-buildpackage: error: fakeroot -u debian/rules binary > > gave error exit status 2 > > [17:19:52] Makefile:146: recipe for target 'sub-make' failed > > [17:19:52] make[3]: *** [bindeb-pkg] Error 2 > > [17:19:52] Makefile:24: recipe for target '__sub-make' failed > > [17:19:52] make[2]: *** [bindeb-pkg] Error 2 > > [17:19:52] debian/rules:7: recipe for target 'binary-arch' failed > > [17:19:52] make[1]: *** [sub-make] Error 2 > > [17:19:52] make: *** [core-packages-amd64] Error 2 > > [17:19:52] /cfsetup_build/build/linux-4.19.34/scripts/package/Makefile:79: > > recipe for target 'bindeb-pkg' failed > > [17:19:52] /cfsetup_build/build/linux-4.19.34/Makefile:1365: recipe > > for target 'bindeb-pkg' failed > > [17:19:52] make[2]: Leaving directory '/cfsetup_build/build/amd64' > > [17:19:52] Makefile:146: recipe for target 'sub-make' failed > > [17:19:52] make[1]: Leaving directory '/cfsetup_build/build/linux-4.19.34' > > [17:19:52] Makefile:192: recipe for target 'core-packages-amd64' failed > > [17:19:54] Failure: 2 > > > > We have kernel sources in /cfsetup_build/build/linux-4.19.34, while > > build is happening in /cfsetup_build/build/amd64. > > > > From a quick look at the changelog it seems that the following commit > > is the reason: > > > > * https://github.com/torvalds/linux/commit/638ecaf5836979ad1c6f6c3fdd738ee9e71c0b07 > > > > -- > Best Regards > Masahiro Yamada