All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro Yamada <yamada.masahiro@socionext.com>
To: Ivan Babrou <ivan@cloudflare.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sasha Levin <sashal@kernel.org>
Cc: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
	kernel-team <kernel-team@cloudflare.com>
Subject: Re: syncconfig changes in 4.19.34 break builds
Date: Tue, 9 Apr 2019 14:39:33 +0900	[thread overview]
Message-ID: <CAK7LNASjMrSrL+LhTuSq4T3juUbYSZUUtevUz=hwS+qFQiDuTg@mail.gmail.com> (raw)
In-Reply-To: <CABWYdi1H9TnB32RCPL2axRvAf3sqf2K2BaoMs+0f-1CibfZ_Tg@mail.gmail.com>

(+ Greg, Sasha)


On Tue, Apr 9, 2019 at 12:48 PM Ivan Babrou <ivan@cloudflare.com> wrote:
>
> 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:

OK, confirmed.  The cause of the error seems that
commit 288885067b52 is missing in 4.19.x branch.



Greg, Sasha,
We also have a regression in 4.19.34
(but the reason is different from v5.0.7)


Could you backport the following commit to 4.19.x ?

commit 288885067b52c2495436fbd59aaa77d4df62234e (HEAD -> test3)
Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Date:   Mon Nov 5 16:52:34 2018 +0900

    kbuild: deb-pkg: fix bindeb-pkg breakage when O= is used



Thanks.
Masahiro Yamada



> $ 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@socionext.com> wrote:
> >
> > On Tue, Apr 9, 2019 at 2:35 AM Ivan Babrou <ivan@cloudflare.com> 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



-- 
Best Regards
Masahiro Yamada

  reply	other threads:[~2019-04-09  5:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-08 17:35 syncconfig changes in 4.19.34 break builds Ivan Babrou
2019-04-09  2:01 ` Masahiro Yamada
2019-04-09  3:47   ` Ivan Babrou
2019-04-09  5:39     ` Masahiro Yamada [this message]
2019-04-09  5:50       ` Masahiro Yamada
2019-04-09 15:39         ` Sasha Levin
2019-04-11  4:27           ` Masahiro Yamada
2019-04-11 13:47             ` Sasha Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK7LNASjMrSrL+LhTuSq4T3juUbYSZUUtevUz=hwS+qFQiDuTg@mail.gmail.com' \
    --to=yamada.masahiro@socionext.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=ivan@cloudflare.com \
    --cc=kernel-team@cloudflare.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=sashal@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.