From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36D8CECDE30 for ; Wed, 17 Oct 2018 09:47:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DFE4F2151D for ; Wed, 17 Oct 2018 09:47:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DFE4F2151D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727016AbeJQRmY (ORCPT ); Wed, 17 Oct 2018 13:42:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:58748 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726691AbeJQRmY (ORCPT ); Wed, 17 Oct 2018 13:42:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 710F0AFCD; Wed, 17 Oct 2018 09:47:28 +0000 (UTC) Date: Wed, 17 Oct 2018 11:47:11 +0200 From: Borislav Petkov To: Masahiro Yamada Cc: Linux Kbuild mailing list , Ingo Molnar , Josh Poimboeuf , Bernd Edlinger , Sam Ravnborg , Michal Marek , Linux Kernel Mailing List Subject: Re: [PATCH 3/3] kbuild: check the presence of lzo and lz4 tools when necessary Message-ID: <20181017094711.GD22571@zn.tnic> References: <1539681053-24388-1-git-send-email-yamada.masahiro@socionext.com> <1539681053-24388-4-git-send-email-yamada.masahiro@socionext.com> <20181016195420.GE27990@zn.tnic> <20181017091059.GB22571@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 06:25:23PM +0900, Masahiro Yamada wrote: > masahiro@pug:~/ref/linux$ git log --oneline | head -n 4 > 6cd6271 kbuild: check the presence of lzo and lz4 tools when necessary > b72cfb7 objtool: move libelf check out of top Makefile > e3061d8 kbuild: provide a new place to check necessary host tools > b955a91 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc > masahiro@pug:~/ref/linux$ git clean -dqfx > masahiro@pug:~/ref/linux$ cp ~/Downloads/config.lz4 .config > masahiro@pug:~/ref/linux$ sudo mv /usr/bin/lz4c /usr/bin/lz4c.backup > [sudo] password for masahiro: > masahiro@pug:~/ref/linux$ make > HOSTCC scripts/basic/fixdep > HOSTCC scripts/kconfig/conf.o > YACC scripts/kconfig/zconf.tab.c > LEX scripts/kconfig/zconf.lex.c > HOSTCC scripts/kconfig/zconf.tab.o > HOSTLD scripts/kconfig/conf > scripts/kconfig/conf --syncconfig Kconfig > * > * Restart config... > * > * > * GCC plugins > * > GCC plugins (GCC_PLUGINS) [N/y/?] (NEW) > * > * lz4 tool not found. Please install it. > * > make[1]: *** [scripts/Makefile.toolcheck;46: check_lz4] Error 1 > Makefile:595: include/config/auto.conf: No such file or directory > make: *** [Makefile;636: include/config/auto.conf] Error 2 > make: *** Deleting file 'include/config/auto.conf' Ok, gotcha. The difference is the "make oldconfig" I do. [boris@zn: ~/kernel/linux> git log --oneline | head -n 3 57ac85467970 kbuild: check the presence of lzo and lz4 tools when necessary 92a3b44ab988 objtool: move libelf check out of top Makefile 23b142c064a7 kbuild: provide a new place to check necessary host tools [boris@zn: ~/kernel/linux> git clean -dqfx [boris@zn: ~/kernel/linux> cp ~/tmp/config.lz4 .config [boris@zn: ~/kernel/linux> make oldconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --oldconfig Kconfig # # configuration written to .config # [boris@zn: ~/kernel/linux> make SYSTBL arch/x86/include/generated/asm/syscalls_32.h SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h SYSTBL arch/x86/include/generated/asm/syscalls_64.h HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h HOSTCC arch/x86/tools/relocs_32.o HOSTCC arch/x86/tools/relocs_64.o HOSTCC arch/x86/tools/relocs_common.o HOSTLD arch/x86/tools/relocs ... -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)