From: Stefan Agner <stefan@agner.ch>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>, buildroot@buildroot.org
Cc: kory.maincent@bootlin.com
Subject: Re: [Buildroot] Build error when building two GRUB2 configurations (race condition)
Date: Thu, 04 Aug 2022 14:43:44 +0200 [thread overview]
Message-ID: <7cbe82b8824b1ef02000e683ddf2d556@agner.ch> (raw)
In-Reply-To: <20220625175355.GF2608@scaer>
On 2022-06-25 19:53, Yann E. MORIN wrote:
> Stefan, All,
>
> On 2022-06-25 09:44 -0700, Stefan Agner spake thusly:
>> In Home Assistant OS we use the capability to build two GRUB2 binaries
>> by enabling these two configurations:
>>
>> BR2_TARGET_GRUB2_I386_EFI=y
>> BR2_TARGET_GRUB2_X86_64_EFI=y
>>
>> Every now and then a from scratch build seems to fail with the following
>> error:
>>
>> config.status: creating config-util.h
>> In file included from ../include/grub/disk.h:***,
>> from ../include/grub/file.h:26,
>> from ../grub-core/kern/emu/hostfs.c:23:
>> ./config.h:38:10: fatal error: ./config-util.h: No such file or
>> directory
>> 38 | #include <config-util.h>
>> | ^~~~~~~~~~~~~~~
>> compilation terminated.
>
> I had the same issue even with a single grub2 config enabled. This is a
> grub2 issue, and it was supposedly fixed with upstream commit
> 42f4054faf3c (Makefile: Make libgrub.pp depend on config-util.h) and we
> do have this patch backported as:
> boot/grub2/0150-Makefile-Make-libgrub.pp-depend-on-config-util.h.patch
I've tracked this down today.
It seems a very similar fix is required for grub_fstest.pp. I sent a
patch upstream to the GRUB mailing list and to the buildroot mailing
list:
https://lists.buildroot.org/pipermail/buildroot/2022-August/648479.html
--
Stefan
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2022-08-04 12:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-25 16:44 [Buildroot] Build error when building two GRUB2 configurations (race condition) Stefan Agner
2022-06-25 17:53 ` Yann E. MORIN
2022-06-25 20:18 ` Stefan Agner
2022-08-04 12:43 ` Stefan Agner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7cbe82b8824b1ef02000e683ddf2d556@agner.ch \
--to=stefan@agner.ch \
--cc=buildroot@buildroot.org \
--cc=kory.maincent@bootlin.com \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox