We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
waifu2x-converter-cpp fails to build. Maybe related to gcc 11?
/build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/threadPool.cpp: In function ‘void w2xc::notify_event(int)’: /build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/threadPool.cpp:99:25: error: ‘perror’ was not declared in this scope 99 | perror("write"); /* ?? */ | ^~~~~~ /build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/threadPool.cpp: In function ‘void w2xc::wait_event(int)’: /build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/threadPool.cpp:111:25: error: ‘perror’ was not declared in this scope 111 | perror("read"); /* ?? */ | ^~~~~~ make[2]: *** [CMakeFiles/w2xc.dir/build.make:160: CMakeFiles/w2xc.dir/src/threadPool.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/modelHandler.cpp: In constructor ‘w2xc::Model::Model(FILE*)’:/build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/modelHandler.cpp:1075:22: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1075 | fread(&nInputPlanes, 4, 1, binfp); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/modelHandler.cpp:1076:22: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1076 | fread(&nOutputPlanes, 4, 1, binfp); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/modelHandler.cpp:1096:54: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1096 | fread(&v, 8, 1, binfp); | ~~~~~^~~~~~~~~~~~~~~~~ /build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/modelHandler.cpp:1108:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1108 | fread(&v, 8, 1, binfp); | ~~~~~^~~~~~~~~~~~~~~~~ /build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/modelHandler.cpp: In static member function ‘static bool w2xc::modelUtility::generateModelFromJSON(const _tstring&, std::vector<std::unique_ptr<w2xc::Model> >&)’: /build/waifu2x-converter-cpp/src/waifu2x-converter-cpp/src/modelHandler.cpp:1173:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1173 | fread(&nModel, 4, 1, binfp); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [CMakeFiles/Makefile2:141: CMakeFiles/w2xc.dir/all] Error 2 make: *** [Makefile:146: all] Error 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
waifu2x-converter-cpp fails to build. Maybe related to gcc 11?
The text was updated successfully, but these errors were encountered: