Opened 4 months ago

Closed 3 months ago

#73400 closed defect (fixed)

vtk @9.5.2_0+mpich build failed

Reported by: humhang (Hang Yu) Owned by: Dave-Allured (Dave Allured)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: vtk

Description (last modified by jmroot (Joshua Root))

I am compiling parallel version of VTK with mpich. I got this configuration error:

:info:configure -- Found HDF5: /opt/local/lib/libhdf5.dylib;/opt/local/lib/libsz.dylib;/opt/local/lib/libz.dylib;/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/lib/libdl.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/lib/libm.tbd (found version "1.14.6") found components: C HL
:info:configure CMake Error at ThirdParty/hdf5/CMakeLists.txt:31 (message):
:info:configure   An external MPI-aware HDF5 requires that VTK be built with MPI support as
:info:configure   well.
:info:configure -- Configuring incomplete, errors occurred!

The HDF5 is mpi-aware, installed with macport with +mpich variant. It looks like VTK is not configured with MPI support.

Attachments (1)

main.log (158.3 KB) - added by humhang (Hang Yu) 4 months ago.

Download all attachments as: .zip

Change History (6)

Changed 4 months ago by humhang (Hang Yu)

Attachment: main.log added

comment:1 Changed 4 months ago by jmroot (Joshua Root)

Description: modified (diff)
Milestone: MacPorts 2.12.0
Owner: set to Dave-Allured
Priority: HighNormal
Status: newassigned
Summary: build failed with variant +mpichvtk @9.5.2_0+mpich build failed

comment:2 Changed 4 months ago by humhang (Hang Yu)

It looks like that -DVTK_USE_MPI:BOOL=ON is required when invoking cmake.

In the current Portfile I have

if {[mpi_variant_isset]} {
    configure.args-append \
        -DVTK_Group_MPI:BOOL=ON 
}

after modifying it to

if {[mpi_variant_isset]} {
    configure.args-append \
        -DVTK_Group_MPI:BOOL=ON \
        -DVTK_USE_MPI:BOOL=ON
}

it configured/compiled successfully. See document https://docs.vtk.org/en/latest/build_instructions/build_settings.html

I cannot find what option VTK_Group_MPI means in vtk document, so I left it as is.

Last edited 4 months ago by humhang (Hang Yu) (previous) (diff)

comment:3 Changed 4 months ago by humhang (Hang Yu)

In b2855ebff52346ab58ca0bb5544a7f6c38d1906a/macports-ports (master):

vtk: add missing configure argument for mpi variant

This cmake option "VTK_USE_MPI:BOOL=ON" is required for the current
version of vtk if MPI is used. Otherwise you get configuration error, where
HDF5 is MPI-aware but VTK is not built with MPI.

Re: #73400

comment:4 Changed 3 months ago by Dave-Allured (Dave Allured)

Fixed by b2855ebff52346ab58ca0bb5544a7f6c38d1906a/macports-ports. Thank you Hang Yu. Admin, please close this ticket.

comment:5 Changed 3 months ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.