It compiles fine for me on an Ubuntu 18.04 system. My guess is that either the Ubuntu environment is more forgiving or there's a difference in our EDK2 setups. In any event, I've tried adding a couple of explicit #define statements to nanojpeg.c. In theory, this should fix the problem, but as I can't reproduce it, I can't test the fix. Please tell me if it helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Starting with commit 9d0e82d0819a3e06a86b589d981d01a5c93531d5 I can't build rEFInd with EDK2. Building with GNU-EFI works.
I'm using the Arch Linux AUR package refind-efi-git with
testing-x86_64-build
.gcc 8.1.1 20180531
The error:
Full log attached.
It compiles fine for me on an Ubuntu 18.04 system. My guess is that either the Ubuntu environment is more forgiving or there's a difference in our EDK2 setups. In any event, I've tried adding a couple of explicit
#define
statements tonanojpeg.c
. In theory, this should fix the problem, but as I can't reproduce it, I can't test the fix. Please tell me if it helps.Thank you! With f04c29b96ba270be56ef96bc934d3cb066783ff8 it now builds.
The EDK2 is acquired from https://github.com/tianocore/edk2.git#branch=UDK2018 .
To see how the package is made you can look at the PKGBUILD.