fdb / frequensea

Visualizing the frequency spectrum.
MIT License
169 stars 18 forks source link

Build error #15

Open Aguamandan opened 3 years ago

Aguamandan commented 3 years ago

Build errors extensive. Here's the log, please advise:

┌[loch@Harbinger] [master] [1627871380] 
└[~/Git/frequensea-git]>   makepkg --force --install -s
==> Making package: frequensea-git 3707384-1 (Sun Aug  1 20:30:18 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning frequensea git repo...
Cloning into bare repository '/home/loch/Git/frequensea-git/frequensea'...
remote: Enumerating objects: 3721, done.
remote: Total 3721 (delta 0), reused 0 (delta 0), pack-reused 3721
Receiving objects: 100% (3721/3721), 43.89 MiB | 12.00 MiB/s, done.
Resolving deltas: 100% (2463/2463), done.
==> Validating source files with sha1sums...
frequensea ... Skipped
==> Extracting sources...
-> Creating working copy of frequensea git repo...
Cloning into 'frequensea'...
done.
==> Starting pkgver()...
==> Updated version: frequensea-git 718ebf1-1
==> Starting build()...
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 <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /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: /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 <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") 
-- Checking for one of the modules 'glfw3'
CMake Warning (dev) at /usr/share/cmake-3.21/Modules/FindOpenGL.cmake:315 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when                                                             
available.  Run "cmake --help-policy CMP0072" for policy details.  Use the                                                      
cmake_policy command to set the policy and suppress this warning.                                                               

FindOpenGL found both a legacy GL library:                                                                                      

OPENGL_gl_LIBRARY: /usr/lib/libGL.so                                                                                          

and GLVND libraries for OpenGL and GLX:                                                                                         

OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so                                                                                  
OPENGL_glx_LIBRARY: /usr/lib/libGLX.so                                                                                        

OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for                                                            
compatibility with CMake 3.10 and below the legacy GL library will be used.                                                     
Call Stack (most recent call first):                                                                                              
CMakeLists.txt:25 (find_package)                                                                                                
This warning is for project developers.  Use -Wno-dev to suppress it.                                                             

-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Found GLEW: /usr/include (found version "2.2.0") 
-- Found OpenAL: /usr/lib/libopenal.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/loch/Git/frequensea-git/src/frequensea/build
[  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
[ 68%] Building C object externals/lua/CMakeFiles/lua.dir/src/lutf8lib.c.o
[ 70%] Building C object externals/lua/CMakeFiles/lua.dir/src/lvm.c.o
[ 72%] Building C object externals/lua/CMakeFiles/lua.dir/src/lzio.c.o
[ 75%] Linking C static library liblua.a
[ 75%] Built target lua
[ 77%] Building CXX object CMakeFiles/frequensea.dir/src/main.cpp.o
[ 79%] Building C object CMakeFiles/frequensea.dir/src/nfile.c.o
[ 81%] Building C object CMakeFiles/frequensea.dir/src/ngl.c.o
In file included from /home/loch/Git/frequensea-git/src/frequensea/src/ngl.c:7:
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h: In function 'stbi__convert_format':
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1248:10: note: in expansion of macro 'CASE'
1248 |          CASE(1,2) dest[0]=src[0], dest[1]=255; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1248:49: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1248 |          CASE(1,2) dest[0]=src[0], dest[1]=255; break;
|                                                 ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1249:10: note: in expansion of macro 'CASE'
1249 |          CASE(1,3) dest[0]=dest[1]=dest[2]=src[0]; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1249:52: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1249 |          CASE(1,3) dest[0]=dest[1]=dest[2]=src[0]; break;
|                                                    ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1250:10: note: in expansion of macro 'CASE'
1250 |          CASE(1,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=255; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1250:65: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1250 |          CASE(1,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=255; break;
|                                                                 ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1251:10: note: in expansion of macro 'CASE'
1251 |          CASE(2,1) dest[0]=src[0]; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1251:36: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1251 |          CASE(2,1) dest[0]=src[0]; break;
|                                    ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1252:10: note: in expansion of macro 'CASE'
1252 |          CASE(2,3) dest[0]=dest[1]=dest[2]=src[0]; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1252:52: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1252 |          CASE(2,3) dest[0]=dest[1]=dest[2]=src[0]; break;
|                                                    ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1253:10: note: in expansion of macro 'CASE'
1253 |          CASE(2,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=src[1]; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1253:68: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1253 |          CASE(2,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=src[1]; break;
|                                                                    ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1254:10: note: in expansion of macro 'CASE'
1254 |          CASE(3,4) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2],dest[3]=255; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1254:78: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1254 |          CASE(3,4) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2],dest[3]=255; break;
|                                                                              ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1255:10: note: in expansion of macro 'CASE'
1255 |          CASE(3,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1255:67: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1255 |          CASE(3,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
|                                                                   ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1256:10: note: in expansion of macro 'CASE'
1256 |          CASE(3,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = 255; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1256:82: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1256 |          CASE(3,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = 255; break;
|                                                                                  ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1257:10: note: in expansion of macro 'CASE'
1257 |          CASE(4,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1257:67: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1257 |          CASE(4,1) dest[0]=stbi__compute_y(src[0],src[1],src[2]); break;
|                                                                   ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1258:10: note: in expansion of macro 'CASE'
1258 |          CASE(4,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = src[3]; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1258:85: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1258 |          CASE(4,2) dest[0]=stbi__compute_y(src[0],src[1],src[2]), dest[1] = src[3]; break;
|                                                                                     ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1244:44: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
1244 |       #define CASE(a,b)   case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
|                                            ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1259:10: note: in expansion of macro 'CASE'
1259 |          CASE(4,3) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2]; break;
|          ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:1259:66: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
1259 |          CASE(4,3) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2]; break;
|                                                                  ^~~~~
In file included from /home/loch/Git/frequensea-git/src/frequensea/src/ngl.c:7:
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h: In function 'stbi__create_png_image_raw':
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3927:17: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3927 |                 for (k=0; k < nk; ++k)
|                 ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3931:13: note: in expansion of macro 'CASE'
3931 |             CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3931:95: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
3931 |             CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); break;
|                                                                                               ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3927:17: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3927 |                 for (k=0; k < nk; ++k)
|                 ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3932:13: note: in expansion of macro 'CASE'
3932 |             CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3932:84: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
3932 |             CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
|                                                                                    ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3927:17: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3927 |                 for (k=0; k < nk; ++k)
|                 ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3933:13: note: in expansion of macro 'CASE'
3933 |             CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1));break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3933:113: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
3933 |     CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); break;
|                                                                                                         ^~~~~

/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3927:17: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3927 |                 for (k=0; k < nk; ++k)
|                 ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3934:13: note: in expansion of macro 'CASE'
3934 |             CASE(STBI__F_paeth)        cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],prior[k],prior[k-filter_bytes])); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3934:139: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
3934 |      cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],prior[k],prior[k-filter_bytes])); break;
|                                                                                                         ^~~~~

/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3927:17: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3927 |                 for (k=0; k < nk; ++k)
|                 ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3935:13: note: in expansion of macro 'CASE'
3935 |             CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3935:102: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
3935 |             CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); break;
|                                                                                                      ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3927:17: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3927 |                 for (k=0; k < nk; ++k)
|                 ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3936:13: note: in expansion of macro 'CASE'
3936 |             CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],0,0)); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3936:112: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
3936 |      CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],0,0)); break;
|                                                                                                         ^~~~~

/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3945:20: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3945 |                    for (k=0; k < img_n; ++k)
|                    ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3947:13: note: in expansion of macro 'CASE'
3947 |             CASE(STBI__F_none)         cur[k] = raw[k]; break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3947:57: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
3947 |             CASE(STBI__F_none)         cur[k] = raw[k]; break;
|                                                         ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3945:20: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3945 |                    for (k=0; k < img_n; ++k)
|                    ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3948:13: note: in expansion of macro 'CASE'
3948 |             CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-out_n]); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3948:88: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
3948 |             CASE(STBI__F_sub)          cur[k] = STBI__BYTECAST(raw[k] + cur[k-out_n]); break;
|                                                                                        ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3945:20: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3945 |                    for (k=0; k < img_n; ++k)
|                    ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3949:13: note: in expansion of macro 'CASE'
3949 |             CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3949:84: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
3949 |             CASE(STBI__F_up)           cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
|                                                                                    ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3945:20: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3945 |                    for (k=0; k < img_n; ++k)
|                    ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3950:13: note: in expansion of macro 'CASE'
3950 |             CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-out_n])>>1)); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3950:106: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
3950 |            CASE(STBI__F_avg)          cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-out_n])>>1)); break;
|                                                                                                         ^~~~~

/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3945:20: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3945 |                    for (k=0; k < img_n; ++k)
|                    ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3951:13: note: in expansion of macro 'CASE'
3951 |             CASE(STBI__F_paeth)        cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],prior[k],prior[k-out_n])); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3951:125: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
3951 | I__F_paeth)        cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],prior[k],prior[k-out_n])); break;
|                                                                                                         ^~~~~

/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3945:20: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3945 |                    for (k=0; k < img_n; ++k)
|                    ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3952:13: note: in expansion of macro 'CASE'
3952 |             CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-out_n] >> 1)); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3952:95: note: ...this statement, but the latteris misleadingly indented as if it were guarded by the 'for'
3952 |             CASE(STBI__F_avg_first)    cur[k] = STBI__BYTECAST(raw[k] + (cur[k-out_n] >> 1)); break;
|                                                                                               ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3945:20: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
3945 |                    for (k=0; k < img_n; ++k)
|                    ^~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3953:13: note: in expansion of macro 'CASE'
3953 |             CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break;
|             ^~~~
/home/loch/Git/frequensea-git/src/frequensea/externals/stb/stb_image.h:3953:105: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
3953 |             CASE(STBI__F_paeth_first)  cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-out_n],0,0)); break;
|                                                                                                         ^~~~~
/home/loch/Git/frequensea-git/src/frequensea/src/ngl.c: In function 'ngl_font_new':
/home/loch/Git/frequensea-git/src/frequensea/src/ngl.c:826:5: error: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Werror=unused-result]
826 |     fread(font->buffer, file_size, 1, fp);
|     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/frequensea.dir/build.make:104: CMakeFiles/frequensea.dir/src/ngl.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/frequensea.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
==> ERROR: A failure occurred in build()

uname -a Linux Harbinger 5.13.5-arch1-1 #1 SMP PREEMPT Sun, 25 Jul 2021 18:02:58 +0000 x86_64 GNU/Linux

fdb commented 3 years ago

I thought it was a good idea to have build warnings cranked all the way up. While that worked a year ago, the build now fails because new checks have been added.

As a quick fix, remove -Wall -Werror -pedantic from line 4 in CMakeLists.txt and try the build again.