On my Gentoo Prefix x86 builds I get: 2020-05-17T05:40:14.8404397Z CMake Error at /tmp/gentoo/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message): 2020-05-17T05:40:14.8405386Z Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY) 2020-05-17T05:40:14.8405816Z Call Stack (most recent call first): 2020-05-17T05:40:14.8406259Z /tmp/gentoo/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE) 2020-05-17T05:40:14.8406707Z CMake/FindGLEW.cmake:16 (find_package_handle_standard_args) 2020-05-17T05:40:14.8407093Z CMake/vtkModuleMacros.cmake:891 (find_package) 2020-05-17T05:40:14.8407485Z ThirdParty/glew/CMakeLists.txt:17 (vtk_module_third_party) Emerging media-libs/glew fixes it. Afterwards, https://bugs.gentoo.org/722770 happens. This may also happen on amd64, haven't tried as for some reason is not in my dependency tree for my final applications. I could try if needed. I also doubt it has anything to do with using Prefix.
I can confirm this happens in amd64
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1704e2aba90b98940a8cdef2dbb6d044a5af0fd2 commit 1704e2aba90b98940a8cdef2dbb6d044a5af0fd2 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2020-06-05 21:52:47 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2020-06-05 21:53:22 +0000 sci-libs/vtk: Add missing dependencies Closes: https://bugs.gentoo.org/723460 Closes: https://bugs.gentoo.org/727078 Closes: https://bugs.gentoo.org/727080 Closes: https://bugs.gentoo.org/723000 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> sci-libs/vtk/vtk-8.2.0.ebuild | 4 ++++ 1 file changed, 4 insertions(+)