On 2021-09-30, Grant Edwards <grant.b.edwa...@gmail.com> wrote: > That appears to attemp to compile source files. But, that fails also: > > $ cmake --build . > [ 1%] Building C object > CMakeFiles/makefsdata.dir/home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c.o > /home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c: In function > ‘process_file’: > /home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c:923:32: > error: ‘sprintf’ may write a terminating nul past the end of the destination > [-Werror=format-overflow=] > 923 | sprintf(qualifiedName, "%s/%s", curSubdir, filename); > | ^ > /home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c:923:3: note: > ‘sprintf’ output 2 or more bytes (assuming 257) into a destination of size 256 > 923 | sprintf(qualifiedName, "%s/%s", curSubdir, filename); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > gmake[2]: *** [CMakeFiles/makefsdata.dir/build.make:76: > CMakeFiles/makefsdata.dir/home/grante/lwip/lwip/src/apps/http/makefsdata/makefsdata.c.o] > Error 1 > gmake[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/makefsdata.dir/all] > Error 2
This seems to be a known problem that was reported over a year ago: https://savannah.nongnu.org/bugs/?58194 A patch was submitted to display an intelligible warning along with a suggestion for fixing the documenation, but nothing has been done with either. If I had a clue, I would submit a patch for BUILDING, but I think it's clear I don't. -- Grant _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users