quickwebserver
quickwebserver copied to clipboard
Trying to build executable on Mac M1
Building the executable crashes with Error:
clang -flto -g -Wall -MMD -MF ./.obj/index.o.d -Wno-array-bounds -D_GNU_SOURCE -O2 -flto -c -I/usr/local/include/quickjs -o .obj/index.o index.c
index.c:70736:16: error: redefinition of 'qjsc_index_size'
const uint32_t qjsc_index_size = 1125;
^
index.c:5819:16: note: previous definition is here
const uint32_t qjsc_index_size = 219;
^
index.c:70738:15: error: redefinition of 'qjsc_index' with a different type: 'const uint8_t[1125]' vs 'const uint8_t[219]'
const uint8_t qjsc_index[1125] = {
^
index.c:5821:15: note: previous definition is here
const uint8_t qjsc_index[219] = {
^
2 errors generated.
make: *** [.obj/index.o] Error 1
Running qjs the code runs fine. Removing everything except the QuickWebServer still crashes the compilation.
OS: MacOS Montery 12.6 (21G115) - Apple M1 Pro QuickJS: Version 2021-03-27 @lyohaplotinka/quickwebserver: Version 0.0.3
Happy to provide any other details. I'm planning to use this as an executable with an embedded react interface and a web server. Awesome work you've done here so far.