fwupd / fwupd-efi

EFI Application used by uefi-capsule plugin in fwupd
GNU Lesser General Public License v2.1
34 stars 18 forks source link

Headers not found for gnu-efi #13

Open phodina opened 2 years ago

phodina commented 2 years ago

I'm attempting to package the fwupd-efi for Guix. However, the header file for gnu-efi are not found even though I speify their location

Using fwupd-efi 1.1 gnu-efi-3.0.13

I'm specifying this flag to point to the headers

-Defi-includedir=" (assoc-ref %build-inputs "gnu-efi") "/include/efi"
...
# During build time it expands into
/gnu/store/7shc63rli3vixwgxx01xdgs9g4npv0i2-gnu-efi-3.0.13/include/efi

But it still does not find them as this is the error

efi/meson.build:31:2: ERROR: Problem encountered: gnu-efi support requested, but headers were not found

Without passing this flag there was this error

Has header "/usr/include/efi/x86_64/efibind.h" : NO 
Has header "/usr/include/efi/x64/efibind.h" : NO 

efi/meson.build:31:2: ERROR: Problem encountered: gnu-efi support requested, but headers were not found
hughsie commented 2 years ago

Have you got any ideas for a fix? Thanks.

superm1 commented 1 year ago

What compiler is this? I wonder if https://github.com/fwupd/fwupd-efi/pull/29 might actually help.