On Tue, Sep 15, 2020 at 01:20:20PM -0700, Nick Desaulniers wrote: > On Tue, Sep 15, 2020 at 2:11 AM Jarkko Sakkinen > <jarkko.sakkinen@xxxxxxxxxxxxxxx> wrote: > > > > 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) > > arm-randconfig ^ You'll need to download and gunzip then use the config file. > > > > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project > > > > 3170d54842655d6d936aae32b7d0bc92fce7f22e) > > > > reproduce (this is a W=1 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=$HOME/0day COMPILER=clang make.cross > > > > ARCH=arm > > > > > > > > If you fix the issue, kindly add following tag as appropriate > > > > Reported-by: kernel test robot <lkp@xxxxxxxxx> > > > > > > > > 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 += 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. > > You shouldn't need buildroot for build failures (we use buildroot, for > boot testing). > > For an arm build, you should be able to cross compile with: > $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make CC=clang -j > > (You can try without CC=clang first, may not be clang specific) > (You should install arm-linux-gnueabihf-gcc and the same for binutils. > Some distros have separate target triples without `hf` in them; either > should be fine for the kernel as long as your invocation of make > matches what you have installed). > -- > Thanks, > ~Nick Desaulniers Hmm... How do I get a cross compiler in the first place for ARM? I use BuildRoot just to get the cross compile chain. The compiler that you use in your example is unfortunately not preincluded to my Ubuntu installation... /Jarkko