From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i0JML-00074c-1y for ptxdist@pengutronix.de; Wed, 21 Aug 2019 07:40:37 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1i0JMK-0001r4-Q0 for ptxdist@pengutronix.de; Wed, 21 Aug 2019 07:40:36 +0200 Date: Wed, 21 Aug 2019 07:40:36 +0200 From: Michael Olbrich Message-ID: <20190821054036.znkjvmn4oia24gsp@pengutronix.de> References: <2123970.gCTCJ976mJ@ada> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2123970.gCTCJ976mJ@ada> Subject: Re: [ptxdist] kernel compile fail with icecc, IKCONFIG set, and kernel v5.0 or later List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Tue, Aug 20, 2019 at 04:23:47PM +0200, Alexander Dahl wrote: > while upgrading different BSPs to kernel v5.2.x I came accross a special build > error. Affected is the kernel.compile stage. This happens with different > ptxdist versions (tested with 2018.05.0, 2019.01.0, 2019.07.0, 2019.08.0) and > at least with kernel v5.1 and v5.2 (IIRC kernels at least up to v4.19 were not > affected) and CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC set (as in DistroKit > master). > > We use icecc here, my host system is still Debian GNU/Linux 9 (stretch) with > icecc version 1.0.1. If one of those three things is not present, this build > error does not occur: kernel, icecc, that config option. I could reproduce > this with a recent DistroKit BSP and kernels v5.1 and v5.2. Like this: > > * checkout recent distrokit > * select platform v7a > * activate icecc (ptxdist setup) > * `ptxdist compile kernel` > > At least the first build run fails, later runs might succeed at random. Output > is like this: > > > ---------------------- > target: kernel.compile > ---------------------- > > make[1]: Entering directory '/home/adahl/Work/bsp/isNet_Lite_phoenix-contact/ > platform-pc/build-target/linux-5.2.9' > CALL scripts/checksyscalls.sh > CALL scripts/atomic/check-atomics.sh > CHK include/generated/compile.h > CC kernel/configs.o > {standard input}: Assembler messages: > {standard input}:136: Error: file not found: kernel/config_data.gz > ICECC[21465] 16:13:52: Compiled on 192.168.10.72 > scripts/Makefile.build:278: recipe for target 'kernel/configs.o' failed > make[2]: *** [kernel/configs.o] Error 1 > Makefile:1073: recipe for target 'kernel' failed > make[1]: *** [kernel] Error 2 > > > Or this (with `ptxdist -q go`): > > > {standard input}: Assembler messages: > {standard input}:136: Error: file not found: kernel/config_data.gz > ICECC[27588] 16:19:30: Compiled on 192.168.10.70 > make[2]: *** [kernel/configs.o] Error 1 > make[2]: *** Waiting for unfinished jobs.... > make[1]: *** [kernel] Error 2 > make[1]: *** Waiting for unfinished jobs.... > make: *** [/home/adahl/Work/bsp/isNet_Lite_phoenix-contact/platform-pc/state/ > kernel.compile] Error 2 > make: *** Waiting for unfinished jobs.... > > > The remote build node which fails is not always the same. To build this kernel > make target 'gzip' is needed, which according to my colleague is installed on > those build nodes failing. > > Build succeeds if I turn off icecc _or_ deactivate that kernel config option > _or_ go back to v4.19. Currently I'm opting for second, but I'm not amused. > > Any help and hints appreciated! It's a known issue. This is a icecc bug. The problem is, the code contains a 'incbin' in assembler code. This means that kernel/config_data.gz is needed on the icecc client, and that's not possible. This is fixed upstream: https://github.com/icecc/icecream/pull/463 But I don't think this is part of any release. The only local fix ist to disable icecc for the kernel entirely: KERNEL_MAKE_ENV := PTXDIST_ICECC= Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de