[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1] readd build dependency for startup_raw.S
From: |
Glenn Washburn |
Subject: |
Re: [PATCH v1] readd build dependency for startup_raw.S |
Date: |
Wed, 16 Aug 2023 14:33:43 -0500 |
Hi Olaf,
There's an extra 'd' in read in the subject line.
On Wed, 16 Aug 2023 11:55:01 +0200
Olaf Hering <olaf@aepfle.de> wrote:
> startup_raw.S includes a generated file, and used to have a dependency
> in the Makefile to make sure the generated file exists prior
> compilation. This dependency was removed, and as a result building
> startup_raw.S randomly fails:
>
> ../../20230814T181249.4fdcb339b/grub-core/boot/i386/pc/startup_raw.S:129:10:
> fatal error: rs_decoder.h: No such file or directory
> 129 | #include <rs_decoder.h>
> | ^~~~~~~~~~~~~~
> compilation terminated.
> make: *** [Makefile:34654:
> boot/i386/pc/lzma_decompress_image-startup_raw.o] Error 1
I don't see this error when building any of the targets that I test.
This includes i386-pc, which I'm assuming this error comes from (if not
which?). Are you running make if -jN where N > 1? Does rs_decoder.h
exist in the fail build directory? (its a generated file) What compiler
and version are you using?
When I look at the contents of
./grub-core/boot/i386/pc/.deps-core/lzma_decompress_image-startup_raw.Po
in a successful build directory, I see that GCC figured out that
rs_decoder.h is a dependency. So I'm not seeing yet why your build is
failing, but the below change *should* be unnecessary.
Glenn
>
> Fixes cc2841129652 ("Fix make dist on non-pc.")
>
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
> ---
>
> The referenced commit removed also a dependency for mips.
> I can not test mips, so I left mips as it is.
>
> grub-core/Makefile.am | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/grub-core/Makefile.am b/grub-core/Makefile.am
> index f0cb2f2cc..a5020c432 100644
> --- a/grub-core/Makefile.am
> +++ b/grub-core/Makefile.am
> @@ -62,6 +62,8 @@ grub_script.yy.c: grub_script.yy.h
> rs_decoder.h: $(srcdir)/lib/reed_solomon.c
> $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -Os -I$(top_builddir)
> -S -DSTANDALONE -o $@ $< -g0 -mregparm=3 -ffreestanding
>
> +boot/i386/pc/startup_raw.S: $(builddir)/rs_decoder.h
> +
> CLEANFILES += grub_script.yy.c grub_script.yy.h
>
> include $(srcdir)/Makefile.core.am
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel