From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4878871193649798125==" MIME-Version: 1.0 From: Jarkko Sakkinen To: kbuild-all@lists.01.org Subject: Re: [PATCH v11 4/5] security: keys: trusted: use ASN.1 TPM2 key format for the blobs Date: Tue, 15 Sep 2020 12:11:40 +0300 Message-ID: <20200915091140.GC3612@linux.intel.com> In-Reply-To: <1600016571.7833.9.camel@HansenPartnership.com> List-Id: --===============4878871193649798125== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Sun, Sep 13, 2020 at 10:02:51AM -0700, James Bottomley wrote: > On Sun, 2020-09-13 at 14:26 +0800, kernel test robot wrote: > > Hi James, > > = > > I love your patch! Yet something to improve: > > = > > [auto build test ERROR on integrity/next-integrity] > > [also build test ERROR on linus/master v5.9-rc4 next-20200911] > > [cannot apply to security/next-testing dhowells-fs/fscache-next] > > [If your patch is applied to the wrong git tree, kindly drop us a > > note. > > And when submitting patch, we suggest to use '--base' as documented > > in > > https://git-scm.com/docs/git-format-patch] > > = > > url: https://github.com/0day-ci/linux/commits/James-Bottomley/TPM- > > 2-0-trusted-key-rework/20200913-013201 > > base: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-i > > ntegrity.git next-integrity > > config: arm-randconfig-r013-20200913 (attached as .config) > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project > > 3170d54842655d6d936aae32b7d0bc92fce7f22e) > > reproduce (this is a W=3D1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master > > /sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # install arm cross compiling tool for clang build > > # apt-get install binutils-arm-linux-gnueabi > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross > > ARCH=3Darm = > > = > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > = > > All errors (new ones prefixed by >>): > > = > > > > security/keys/trusted-keys/trusted_tpm2.c:19:10: fatal error: > > > > 'tpm2key.asn1.h' file not found > > = > > #include "tpm2key.asn1.h" > > ^~~~~~~~~~~~~~~~ > > 1 error generated. > = > Do you have the actual build log for this? On x86 the build process > builds any precursors first, which is the tpm2key.asn1.o, which > generates that header file, so we see: > = > ASN.1 security/keys/trusted-keys/tpm2key.asn1.[ch] > CC [M] security/keys/trusted-keys/trusted_tpm2.o > CC [M] security/keys/trusted-keys/tpm2-policy.o > CC [M] security/keys/trusted-keys/tpm2key.asn1.o > LD [M] security/keys/trusted-keys/trusted.o > = > Is ARM doing a lazier version of that? In which case the fix might be > to move trusted_tpm2.o to after tpm2key.asn1.o in the Makefile, this > line: > = > trusted-y +=3D trusted_tpm2.o tpm2key.asn1.o > = > James You can try to reproduce the arm build with BuildRoot. That's what I usually do when bumping something like this with arm. /Jarkko --===============4878871193649798125==--