SolidRun / lx2160a_uefi

Parent build repository for generating UEFI firmware for the LX2160a
24 stars 17 forks source link

Failing to build on Fedora 37 #23

Open xnuken opened 1 year ago

xnuken commented 1 year ago

Checking all required tools are installed Building boot loader Building RCW python3 ../rcw.py -i rcws/rcw_lx2160acex7.rcw -o rcws/rcw_lx2160acex7.bin Build UEFI make: Entering directory '/home/titanium/git/lx2160a_uefi/build/tianocore/edk2/BaseTools' make -C Source/C make[1]: Entering directory '/home/titanium/git/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/C' Attempting to detect HOST_ARCH from 'uname -m': x86_64 Detected HOST_ARCH of X64 using uname. mkdir -p . make -C Common make[2]: Entering directory '/home/titanium/git/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/C/Common' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/titanium/git/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/C/Common' make -C BrotliCompress make[2]: Entering directory '/home/titanium/git/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/C/BrotliCompress' gcc -c -I ./brotli/c/include -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2 brotli/c/dec/decode.c -o brotli/c/dec/decode.o brotli/c/dec/decode.c:2033:41: error: argument 2 of type ‘const uint8_t *’ {aka ‘const unsigned char *’} declared as a pointer [-Werror=vla-parameter] 2033 | size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size, | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ In file included from brotli/c/dec/decode.c:7: ./brotli/c/include/brotli/decode.h:204:19: note: previously declared as a variable length array ‘const uint8_t[encoded_size]’ {aka ‘const unsigned char[encoded_size]’} 204 | const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ brotli/c/dec/decode.c:2034:14: error: argument 4 of type ‘uint8_t *’ {aka ‘unsigned char *’} declared as a pointer [-Werror=vla-parameter] 2034 | uint8_t* decoded_buffer) { | ~~~~~~~~~^~~~~~~~~~~~~~ ./brotli/c/include/brotli/decode.h:206:13: note: previously declared as a variable length array ‘uint8_t[*decoded_size]’ {aka ‘unsigned char[*decoded_size]’} 206 | uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[2]: *** [../Makefiles/footer.makefile:21: brotli/c/dec/decode.o] Error 1 make[2]: Leaving directory '/home/titanium/git/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/C/BrotliCompress' make[1]: *** [GNUmakefile:76: BrotliCompress] Error 2 make[1]: Leaving directory '/home/titanium/git/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/C' make: *** [GNUmakefile:19: Source/C] Error 2 make: Leaving directory '/home/titanium/git/lx2160a_uefi/build/tianocore/edk2/BaseTools'

xnuken commented 1 year ago

This has also been tested on Debian SID

xnuken commented 1 year ago

Is the fsl-mc system broken for uefi images or what is the status of it since does not seem to be a OS issue from what I can tell