Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sci-libs/vtk will not accept mpi USE flag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Sprchkn
n00b
n00b


Joined: 04 Mar 2016
Posts: 5
Location: Kansas

PostPosted: Wed May 14, 2025 1:09 pm    Post subject: sci-libs/vtk will not accept mpi USE flag Reply with quote

I'm trying to build VTK with the MPI flag to use with Freecad CFDOF. This used to work without an issue, however about a month back it stopped working and keeps asking me to emerge sci-libs/hdf5, sci-libs/cgnslib, and sci-libs/netcdf with -mpi USE flags.
[ebuild R ] sci-libs/hdf5-1.14.4_p3-r1:0/311::gentoo USE="cxx fortran hl szip unsupported zlib -debug -examples -mpi* -test -threads" 0 KiB
[ebuild R ] sci-libs/cgnslib-4.4.0-r2:0/4.4::gentoo USE="hdf5 szip -base-scope -debug -examples -fortran -legacy -mpi* -scoping -test -tools" 0 KiB
[ebuild R ] sci-libs/netcdf-4.9.2-r1:0/19::gentoo USE="bzip2 dap hdf5 szip -blosc -doc -examples -hdf -mpi* -test -zstd" 0 KiB
[ebuild N ] sci-libs/vtk-9.3.1:0/9.3::gentoo USE="boost cgns ffmpeg logging netcdf openmp python qt6 rendering sdl threads truetype views -all-modules (-cuda) (-debug) -doc -examples -gdal -gles2-only -imaging -java -las -minimal (-mpi) -mysql -odbc -opencascade -openvdb -pdal -postgres -tbb -test -tk -vtkm -web" PYTHON_SINGLE_TARGET="python3_12 -python3_11" VIDEO_CARDS="-nvidia" 0 KiB

Looking at the ebuild for VTK, I don't understand why it's applying "(-mpi)" when the mpi USE flag is set. Can anyone point me in the direction of my problem?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2986

PostPosted: Wed May 14, 2025 2:21 pm    Post subject: Reply with quote

The brackets mean the setting of the mpi use flag is profile enforced, in this case we say it's profile masked. It's masked because the dependency dev-python/mpi4py has no stable keywords.

You need to do two thing - unmask the use flag and add mpi4py to package.accept_keywords:

/var/db/repos/gentoo/profiles/base/package.use.stable.mask:
# Michał Górny <[email protected]> (2024-04-12)
# dev-python/mpi4py has no stable keywords.
media-gfx/netgen mpi
sci-libs/vtk mpi


To unmask the mpi use flag for vtk you need to:

Code:
echo "sci-libs/vtk -mpi" >> /etc/portage/profile/package.use.stable.mask


Best Regards,
Georgi
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2161

PostPosted: Wed May 14, 2025 2:44 pm    Post subject: Reply with quote

Alternatively, adding sci-libs/vtk to package.accept_keywords will also unmask the flag (even if the package version is stable).
This comes with the caveat that all new releases will also come faster without full testing.
Back to top
View user's profile Send private message
Sprchkn
n00b
n00b


Joined: 04 Mar 2016
Posts: 5
Location: Kansas

PostPosted: Thu May 15, 2025 1:38 pm    Post subject: Reply with quote

Thanks, I ended up using grknight's solution and added mpi to netgen per logrusx, which resolved my problem. Much thanks!! I probably removed it from package.accept_keywords when I recently went back through to reset all my use and keyword settings. I certainly wasn't aware that having accept keyword set would unmask use flags like that, so thank you both for the education. :-)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23449

PostPosted: Thu May 15, 2025 2:08 pm    Post subject: Reply with quote

In this case, the USE flag was masked only for stable, so when Portage considered "unstable" packages, it could also consider unstable USE flags, even when the package version it ultimately picked is keyworded stable. There is a different type of USE flag mask that cannot be overridden merely by accepting unstable keywords, and instead must be directly negated in a local profile override.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2986

PostPosted: Thu May 15, 2025 3:55 pm    Post subject: Reply with quote

Sprchkn wrote:
and added mpi to netgen per logrusx,


Note, I didn't suggest that. That was an excerpt from the profile mask. AFAIK you don't need netgen at all with both solutions.

Code:
# emerge -av vtk

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 6.34 s (backtrack: 0/20).

[ebuild  N     ] media-libs/glew-2.2.0-r1:0/2.2::gentoo  USE="-doc -egl-only -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-libs/libharu-2.4.2-r1:0/2.4.2::gentoo  1,378 KiB
[ebuild  N     ] sci-libs/proj-9.4.1:0/9::gentoo  USE="tiff -curl -test" 723,944 KiB
[ebuild  N     ] x11-libs/gl2ps-1.4.2-r1::gentoo  USE="png zlib -doc" 295 KiB
[ebuild  N     ] dev-cpp/cli11-2.5.0::gentoo  USE="-doc -test" 0 KiB
[ebuild  N     ] dev-cpp/eigen-3.4.0-r3:3::gentoo  USE="opengl openmp -adolc -boost -cholmod -clang (-cuda) -debug -doc -fftw (-hip) -klu -lapack -mathjax -pastix -sparsehash -spqr -superlu -test -umfpack" CPU_FLAGS_X86="avx avx2 f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx512dq -avx512f" 2,093 KiB
[ebuild  N     ] dev-libs/pegtl-3.2.8::gentoo  0 KiB
[ebuild  N     ] sys-apps/hwloc-2.9.2:0/15::gentoo  USE="X cairo cpuid pci svg udev xml (-cuda) -debug -nvml -static-libs -valgrind" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="nvidia" 0 KiB
[ebuild  N     ] sys-cluster/openmpi-4.1.6::gentoo  USE="cxx ipv6 romio -cma (-cuda) -fortran -libompitrace -peruse -valgrind" ABI_X86="(64) -32 (-x32)" OPENMPI_FABRICS="(-knem) (-ofed)" OPENMPI_OFED_FEATURES="(-control-hdr-padding) (-dynamic-sl) (-rdmacm) (-udcm)" OPENMPI_RM="(-pbs) (-slurm)" 9,783 KiB
[ebuild  N     ] virtual/mpi-2.0-r8::gentoo  USE="cxx romio threads -fortran -nullmpi" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] sci-libs/hdf5-1.14.4_p3-r1:0/311::gentoo  USE="cxx hl mpi unsupported zlib -debug -examples -fortran -szip -test -threads" 0 KiB
[ebuild   R    ] dev-libs/boost-1.85.0-r1:0/1.85.0.1::gentoo  USE="bzip2 context icu mpi* nls stacktrace zlib -debug -doc -lzma -numpy -python -tools -zstd" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_13 -python3_11 -python3_12" 121,109 KiB
[ebuild  N     ] sci-libs/cgnslib-4.4.0-r2:0/4.4::gentoo  USE="hdf5 mpi -base-scope -debug -examples -fortran -legacy -scoping -szip -test -tools" 0 KiB
[ebuild  N     ] sci-libs/netcdf-4.9.2-r1:0/19::gentoo  USE="bzip2 dap hdf5 mpi -blosc -doc -examples -hdf -szip -test -zstd" 6,976 KiB
[ebuild  N    ~] sci-libs/vtk-9.4.2:0/9.4::gentoo  USE="boost cgns logging mpi netcdf openmp qt6 rendering threads truetype views -all-modules -cuda (-debug) -doc -examples -ffmpeg -gdal -gles2-only -imaging -java -las -minimal -mysql -odbc -opencascade -openvdb -pdal -postgres -python -tbb -test -tk -vtkm -web" PYTHON_SINGLE_TARGET="python3_13 -python3_11 -python3_12" VIDEO_CARDS="nvidia" 115,842 KiB

Total: 15 packages (14 new, 1 reinstall), Size of downloads: 981,416 KiB


Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »