Building error: ‘-Werror=All’: no option ‘-WAll’; did you mean ‘-Wall’? on Fedora 41

Author: BorkidoCreated Jun 6, 2026Updated Jun 7, 2026

Trying to build the demo failed with the following error:

cc1plus: error: ‘-Werror=All’: no option ‘-WAll’; did you mean ‘-Wall’? make[1]: *** [Detour.make:135: obj/Debug/Detour/DetourAlloc.o] Error 1 make: *** [Makefile:47: Detour] Error 2

I fixed the first file manually by changing all occurrences of "-Werror=All" with "-Werror=all" and applied it to all files with find . -type f \( -name 'Makefile' -o -name '*.make' -o -name '*.mk' \) -exec sed -i 's/-Werror=All/-Werror=all/g' {} + after the first file passed. Afterwards the demo compiled successfully.

Source: recastnavigation/recastnavigation