* [ptxdist] kernel compile fail with icecc, IKCONFIG set, and kernel v5.0 or later
@ 2019-08-20 14:23 Alexander Dahl
2019-08-21 5:40 ` Michael Olbrich
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Dahl @ 2019-08-20 14:23 UTC (permalink / raw)
To: ptxdist; +Cc: Thomas Pfahl
Hei hei,
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!
Greets
Alex
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] kernel compile fail with icecc, IKCONFIG set, and kernel v5.0 or later
2019-08-20 14:23 [ptxdist] kernel compile fail with icecc, IKCONFIG set, and kernel v5.0 or later Alexander Dahl
@ 2019-08-21 5:40 ` Michael Olbrich
2019-08-21 7:36 ` Robert Schwebel
0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2019-08-21 5:40 UTC (permalink / raw)
To: ptxdist
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] kernel compile fail with icecc, IKCONFIG set, and kernel v5.0 or later
2019-08-21 5:40 ` Michael Olbrich
@ 2019-08-21 7:36 ` Robert Schwebel
0 siblings, 0 replies; 3+ messages in thread
From: Robert Schwebel @ 2019-08-21 7:36 UTC (permalink / raw)
To: ptxdist
On Wed, Aug 21, 2019 at 07:40:36AM +0200, Michael Olbrich wrote:
> The only local fix ist to disable icecc for the kernel entirely:
>
> KERNEL_MAKE_ENV := PTXDIST_ICECC=
... or talk the icecream people into making a new release :)
rsc
--
Pengutronix e.K. | Dipl.-Ing. Robert Schwebel |
Industrial Linux Solutions | https://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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-21 7:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-20 14:23 [ptxdist] kernel compile fail with icecc, IKCONFIG set, and kernel v5.0 or later Alexander Dahl
2019-08-21 5:40 ` Michael Olbrich
2019-08-21 7:36 ` Robert Schwebel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox