Open gurushanth opened 5 years ago
Run the following command before building.
make -C /home/thanosadmin/guru/edk/src/edk2/BaseTools/Source/C
If you have moved the sources, change the path accordingly.
Run the following command before building.
make -C /home/thanosadmin/guru/edk/src/edk2/BaseTools/Source/C
If you have moved the sources, change the path accordingly.
make: Entering directory '/new/OSDEV/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[1]: Entering directory '/new/OSDEV/edk2/BaseTools/Source/C/Common'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/new/OSDEV/edk2/BaseTools/Source/C/Common'
make -C BrotliCompress
make[1]: Entering directory '/new/OSDEV/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[decoded_size]’ {aka ‘const unsigned char[decoded_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) {
| ~~~^~~~
In file included from brotli/c/dec/decode.c:7:
./brotli/c/include/brotli/decode.h:206:13: note: previously declared as a variable length array ‘uint8_t[encoded_size]’ {aka ‘unsigned char[encoded_size]’}
206 | uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(decoded_size)]);
| ~~^~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: [../Makefiles/footer.makefile:21: brotli/c/dec/decode.o] Error 1
make[1]: Leaving directory '/new/OSDEV/edk2/BaseTools/Source/C/BrotliCompress'
make: [GNUmakefile:77: BrotliCompress] Error 2
make: Leaving directory '/new/OSDEV/edk2/BaseTools/Source/C'
it doesnt work, how pls
Active Platform = /home/thanosadmin/guru/edk/src/edk2/OvmfPkg/OvmfPkgX64.dsc ..
build.py... /home/thanosadmin/guru/edk/src/edk2/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf(-1): error 000E: File/directory not found in workspace /home/thanosadmin/guru/edk/src/edk2/CryptoPkg/Library/OpensslLib/openssl/e_os.h