Am 11.07.2014 13:43 schrieb "John Paul Adrian Glaubitz" <
glaub...@physik.fu-berlin.de>:
>
> Hi Julian!
>
> Do you have a suggestion for the proper fix for this FTBFS? I have
> unapplied the patch #747158 but I'm still running into an FTBFS,
> but now it's just stdarg.h which is missing which is what Daniel
> patched out:
>
> gcc  -I. -include config.h -I/usr/include/efi -I/usr/include/efi/x86_64
> -DMACHINE_TYPE_NAME=\"x64\"  -Wall -Wextra -nostdinc -ggdb -O0 -fpic
> -fshort-wchar -nostdinc -ffreestanding -fno-strict-aliasing
> -fno-stack-protector -Wsign-compare -mno-sse -mno-mmx -mno-red-zone
> -DEFI_FUNCTION_WRAPPER -DGNU_EFI_USE_MS_ABI -c src/efi/util.c -o
> src/efi/util.o
> In file included from /usr/include/efi/efilib.h:27:0,
>                  from src/efi/util.c:19:
> /usr/include/efi/efistdarg.h:22:20: fatal error: stdarg.h: No such file
> or directory
> compilation terminated.
> make[2]: *** [src/efi/util.o] Error 1
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/tmp/buildd/gummiboot-44'
>
> I'm trying a local backport to Wheezy and I'm therefore using gcc-4.7,
> so it doesn't seem to be specific to gcc-4.9 unless I am overseeing
> something.
>
> Thanks!
> Adrian
>

That's true. IMO Gnu EFI needs to be patched to not include efistdarg.h by
default and hide the vaargs functions if the header is not included. That
would fix all issues.

Or change it to define the va functions in terms of GCC builtins. This
should work as well IMO.

Reply via email to