Skip to content
New issue

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

media-libs/waifu2x-converter-cpp build failure, reason unknown #106

Closed
q3cpma opened this issue Dec 14, 2021 · 3 comments
Closed

media-libs/waifu2x-converter-cpp build failure, reason unknown #106

q3cpma opened this issue Dec 14, 2021 · 3 comments

Comments

@q3cpma
Copy link

q3cpma commented Dec 14, 2021

Hello I can't build either 5.3.3 or 9999 and I get this error:

/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DBUILD_TS=\"2021-12-14T17:07:27\" -DDEFAULT_MODELS_DIRECTORY=\"/usr/share/waifu2x-converter-cpp\" -DGIT_BRANCH=\"\" -DGIT_COMMIT_HASH=\"\" -DGIT_TAG=\"\" -DHAVE_OPENCV -DUNICODE -DX86OPT -D_UNICODE -Dw2xc_EXPORTS -I. -I/var/tmp/portage/media-libs/waifu2x-converter-cpp-5.3.3/work/waifu2x-converter-cpp-5.3.3/src -I/var/tmp/portage/media-libs/waifu2x-converter-cpp-5.3.3/work/waifu2x-converter-cpp-5.3.3/include -isystem /usr/include/opencv4  -O3 -march=native -pipe -std=gnu++17 -fPIC -MD -MT CMakeFiles/w2xc.dir/src/w2xconv.cpp.o -MF CMakeFiles/w2xc.dir/src/w2xconv.cpp.o.d -o CMakeFiles/w2xc.dir/src/w2xconv.cpp.o -c /var/tmp/portage/media-libs/waifu2x-converter-cpp-5.3.3/work/waifu2x-converter-cpp-5.3.3/src/w2xconv.cpp
In file included from /var/tmp/portage/media-libs/waifu2x-converter-cpp-5.3.3/work/waifu2x-converter-cpp-5.3.3/src/modelHandler.hpp:31,
                 from /var/tmp/portage/media-libs/waifu2x-converter-cpp-5.3.3/work/waifu2x-converter-cpp-5.3.3/src/w2xconv.cpp:35:
/var/tmp/portage/media-libs/waifu2x-converter-cpp-5.3.3/work/waifu2x-converter-cpp-5.3.3/include/picojson.h:197:63: error: macro "_serialize" passed 2 arguments, but takes just 0
  197 |   template <typename Iter> void _serialize(Iter os, int indent) const;
      |                                                               ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/x86gprintrin.h:71,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/immintrin.h:27,
                 from /usr/include/CL/cl_platform.h:487,
                 from /usr/include/CL/cl.h:21,
                 from /usr/include/CL/opencl.h:24,
                 from /var/tmp/portage/media-libs/waifu2x-converter-cpp-5.3.3/work/waifu2x-converter-cpp-5.3.3/src/CLlib.h:37,
                 from /var/tmp/portage/media-libs/waifu2x-converter-cpp-5.3.3/work/waifu2x-converter-cpp-5.3.3/src/Buffer.hpp:61,
                 from /var/tmp/portage/media-libs/waifu2x-converter-cpp-5.3.3/work/waifu2x-converter-cpp-5.3.3/src/w2xconv.cpp:34:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/serializeintrin.h:37: note: macro "_serialize" defined here
   37 | #define _serialize()    __builtin_ia32_serialize ()
      |

which seems related to kazuho/picojson#141. My problem is that I can't reproduce it when cloning and building, something with the Gentoo cmake config must be the cause (I suspect -march=native being what allows the inclusion of immintrin.h).

PS: I tried to recompile it because the current installed version I have failed to work with opencv-4.5.4, downgrading to 4.5.2 solved this problem.

@q3cpma
Copy link
Author

q3cpma commented Dec 14, 2021

Tell me if you need the complete build log and/or --info output.

@4re
Copy link
Owner

4re commented Dec 16, 2021

This should be fixed now, make me know if it's not because it's basically untested.

@4re 4re closed this as completed Dec 16, 2021
@q3cpma
Copy link
Author

q3cpma commented Dec 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants