Hi,

> I'm getting the following compilation error: 
> 
> | gcc  -std=gnu99 -DHAVE_CONFIG_H -I. -I../git  -I../git/include -I../git 
> -include config.h -I../git/tools 
> -isystem/data/meta-iot2000/build/tmp/work/x86_64-linux/efibootguard-native/0.7-r0/recipe-sysroot-native/usr/include
>  
> -Wno-unused-parameter -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H 
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror 
> -isystem/data/meta-iot2000/build/tmp/work/x86_64-linux/efibootguard-native/0.7-r0/recipe-sysroot-native/usr/include
>  
> -O2 -pipe -c -o tools/libebgenv_a-ebgpart.o `test -f 'tools/ebgpart.c' || 
> echo '../git/'`tools/ebgpart.c
> | In file included from /usr/include/fcntl.h:77:0,
> |                  from ../git/include/ebgpart.h:46,
> |                  from ../git/tools/ebgpart.c:19:
> | /usr/include/bits/stat.h:106:31: error: expected identifier or ‘(’ before 
> ‘[’ token
> |      __syscall_slong_t __unused[3];
> |                                ^
> | /usr/include/bits/stat.h:164:31: error: expected identifier or ‘(’ before 
> ‘[’ token
> |      __syscall_slong_t __unused[3];
> |                                ^
> | gcc  -std=gnu99 -DHAVE_CONFIG_H -I. -I../git  -I../git/include -I../git 
> -include config.h 
> -isystem/data/meta-iot2000/build/tmp/work/x86_64-linux/efibootguard-native/0.7-r0/recipe-sysroot-native/usr/include
>  
> -Wno-unused-parameter -Wmissing-prototypes -fshort-wchar -DHAVE_ENDIAN_H 
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Werror 
> -isystem/data/meta-iot2000/build/tmp/work/x86_64-linux/efibootguard-native/0.7-r0/recipe-sysroot-native/usr/include
>  
> -O2 -pipe -c -o tools/bg_setenv-bg_setenv.o `test -f 'tools/bg_setenv.c' || 
> echo '../git/'`tools/bg_setenv.c
> | make: *** [tools/libebgenv_a-ebgpart.o] Error 1
> | make: *** Waiting for unfinished jobs....
> | WARNING: 
> /data/meta-iot2000/build/tmp/work/x86_64-linux/efibootguard-native/0.7-r0/temp/run.do_compile.14380:1
>  
> exit 1 from 'exit 1'
> | 
> ERROR: Task 
> (virtual:native:/data/meta-iot2000/meta-efibootguard/recipes-bsp/efibootguard/efibootguard_0.7.bb:do_compile)
>  
> failed with exit code '1'
> 
> What am I doing wrong ?


Looks to me like you're trying to build a 64bit binary (and hence using
the headers for this) for a probably 32bit target?


Kind regards,
   Christian

-- 
Dr. Christian Storm
Siemens AG, Technology, T RDA IOT SES-DE
Otto-Hahn-Ring 6, 81739 München, Germany

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20210429094209.spo645gh4itqt6ld%40MD1ZFJVC.ad001.siemens.net.

Reply via email to