Package: gnu-efi
Version: 3.0v-1
Severity: serious

Hi Daniel, Nigel,

The new upstream version of gnu-efi, 3.0v, introduced a dependency from
efilib.h on efistdarg.h and from there to stdarg.h.  This makes gnu-efi
incompatible with -nostdinc, which is a typical way to build for EFI (in
order to avoid accidental external dependencies), as you probably know.

  2014-01-13 Nigel Croxon <nigel.cro...@hp.com>
   Implement VSPrint function, prints a formatted unicode string to a buffer.

    Signed-off-by: Jeremy Compostella <jeremy.composte...@gmail.com>
    Signed-off-by: Nigel Croxon <nigel.cro...@hp.com>

This causes a build failure in gummiboot in unstable:

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
 #include "stdarg.h"
                    ^
compilation terminated.
make[2]: *** [src/efi/util.o] Error 1

(It also causes a build failure in shim, which has not been uploaded to
Debian yet since Debian doesn't have a key to embed with it - so this is an
Ubuntu-specific build failure for the moment.)

I don't think efilib.h should fail with -nostdinc.  Perhaps VPrint and
VFPrint should be moved out of this header.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org

Attachment: signature.asc
Description: Digital signature

Reply via email to