Configuring opencv-4.8.0-windows, I get this error when I run mingw32-make -j 8

[ 15%] Linking C static library …\lib\liblibwebp.a
[ 15%] Built target libwebp
Makefile:164: recipe for target ‘all’ failed
mingw32-make: *** [all] Error 2

the real error breaking your build must be some lines above in your output,
can you look again, please ?
(when in doubt, show whole output)