Build error macOS Monterrey: adding 'int' to a string does not append to the string
joseflamas opened this issue · 2 comments
make fails at 66% under MacOS 12.1
Mu$ ~/…/SdrHackRFOne/frequensea/frequensea ◯ 718ebf1|master ✓
❱❱❱ mkdir build [821d7h42m]
Mu$ ~/…/SdrHackRFOne/frequensea/frequensea ◯ 718ebf1|master ✓
❱❱❱ cd build [821d7h42m]
Mu$ ~/…/frequensea/frequensea/build ◯ 718ebf1|master ✓
❱❱❱ cmake .. [821d7h42m]
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at externals/lua/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Checking for one of the modules 'glfw3'
-- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework
-- Found GLEW: /usr/local/lib/cmake/glew/glew-config.cmake
-- Found OpenAL: /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenAL.framework
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/guillermo/Development/SdrHackRFOne/frequensea/frequensea/build
Mu$ ~/…/frequensea/frequensea/build ◯ 718ebf1|master ✓
❱❱❱ make [821d7h42m]
[ 2%] Building C object externals/lua/CMakeFiles/lua.dir/src/lapi.c.o
[ 4%] Building C object externals/lua/CMakeFiles/lua.dir/src/lauxlib.c.o
[ 6%] Building C object externals/lua/CMakeFiles/lua.dir/src/lbaselib.c.o
[ 8%] Building C object externals/lua/CMakeFiles/lua.dir/src/lbitlib.c.o
[ 10%] Building C object externals/lua/CMakeFiles/lua.dir/src/lcode.c.o
[ 12%] Building C object externals/lua/CMakeFiles/lua.dir/src/lcorolib.c.o
[ 14%] Building C object externals/lua/CMakeFiles/lua.dir/src/lctype.c.o
[ 16%] Building C object externals/lua/CMakeFiles/lua.dir/src/ldblib.c.o
[ 18%] Building C object externals/lua/CMakeFiles/lua.dir/src/ldebug.c.o
[ 20%] Building C object externals/lua/CMakeFiles/lua.dir/src/ldo.c.o
[ 22%] Building C object externals/lua/CMakeFiles/lua.dir/src/ldump.c.o
[ 25%] Building C object externals/lua/CMakeFiles/lua.dir/src/lfunc.c.o
[ 27%] Building C object externals/lua/CMakeFiles/lua.dir/src/lgc.c.o
[ 29%] Building C object externals/lua/CMakeFiles/lua.dir/src/linit.c.o
[ 31%] Building C object externals/lua/CMakeFiles/lua.dir/src/liolib.c.o
[ 33%] Building C object externals/lua/CMakeFiles/lua.dir/src/llex.c.o
[ 35%] Building C object externals/lua/CMakeFiles/lua.dir/src/lmathlib.c.o
[ 37%] Building C object externals/lua/CMakeFiles/lua.dir/src/lmem.c.o
[ 39%] Building C object externals/lua/CMakeFiles/lua.dir/src/loadlib.c.o
[ 41%] Building C object externals/lua/CMakeFiles/lua.dir/src/lobject.c.o
[ 43%] Building C object externals/lua/CMakeFiles/lua.dir/src/lopcodes.c.o
[ 45%] Building C object externals/lua/CMakeFiles/lua.dir/src/loslib.c.o
[ 47%] Building C object externals/lua/CMakeFiles/lua.dir/src/lparser.c.o
[ 50%] Building C object externals/lua/CMakeFiles/lua.dir/src/lstate.c.o
[ 52%] Building C object externals/lua/CMakeFiles/lua.dir/src/lstring.c.o
[ 54%] Building C object externals/lua/CMakeFiles/lua.dir/src/lstrlib.c.o
[ 56%] Building C object externals/lua/CMakeFiles/lua.dir/src/ltable.c.o
[ 58%] Building C object externals/lua/CMakeFiles/lua.dir/src/ltablib.c.o
[ 60%] Building C object externals/lua/CMakeFiles/lua.dir/src/ltm.c.o
[ 62%] Building C object externals/lua/CMakeFiles/lua.dir/src/lua.c.o
[ 64%] Building C object externals/lua/CMakeFiles/lua.dir/src/luac.c.o
[ 66%] Building C object externals/lua/CMakeFiles/lua.dir/src/lundump.c.o
/Users/guillermo/Development/SdrHackRFOne/frequensea/frequensea/externals/lua/src/lundump.c:233:33: error: adding 'int' to a string does not append to the string [-Werror,-Wstring-plus-int]
checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */
~~~~~~~~~~~~~~^~~
/Users/guillermo/Development/SdrHackRFOne/frequensea/frequensea/externals/lua/src/lundump.c:233:33: note: use array indexing to silence this warning
checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */
^
& [ ]
1 error generated.
make[2]: *** [externals/lua/CMakeFiles/lua.dir/src/lundump.c.o] Error 1
make[1]: *** [externals/lua/CMakeFiles/lua.dir/all] Error 2
make: *** [all] Error 2
project built with 19 warnings after removing -Wall -Werror -pedantic from CMakefile
These seem to be errors in Lua, caused by more strict checking of compilers. I should probably upgrade Lua.