[Bug 267320] math/vtk9 9.2 breaks at plugins.qmltypes Undefined symbol "ompi_mpi_comm_world"

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Oct 2022 03:03:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267320

            Bug ID: 267320
           Summary: math/vtk9 9.2 breaks at plugins.qmltypes Undefined
                    symbol "ompi_mpi_comm_world"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: alt2600@icloud.com
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)
 Attachment #237597 text/plain
         mime type:

Created attachment 237597
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=237597&action=edit
configure log

so I tried updating vtk9 with portupgrade, and then deleted and tried to
install again. These are the errors I got. not sure how to resolve. I might
have cut the message from the 9.1 installed case so I will only attach the
fresh build case on a live system, which gave indication that it cannot find
mpi symbols while building the qmltypes. I know it failed at the same point,
just not sure about if I saw the symbol issue during the upgrade with 9.1
installed. had hoped it was a simple include /usr/local/include kind of issue,
but it doesn't appear to be that.

as I look i see the port wants openmpi, but configure maybe is pulling in mpich
instead. I thought these were mutually exclusive implementations. I've attached
the configure log, I will dig a little more, suggestions appreciated. Not sure
I will know the cmake magic for this one. not sure If I got lucky 9.1 worked
with mpich, or if the find routines were different in 9.1 and cmake only looked
for openmpi.

[ 95% 9226/9642] : && /usr/bin/c++ -fPIC -O2 -pipe -march=westmere
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/include  -O2 -pipe -march=westmere -fstack-protector-strong
-isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include 
-fstack-protector-strong -shared  -o lib/qml/VTK.9.2/libqmlvtkplugin.so
GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/qmlvtkplugin_autogen/mocs_compilation.cpp.o
GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/QQmlVTKPlugin.cxx.o 
-Wl,-rpath,/usr/ports/math/vtk9/work/.build/lib:/usr/local/lib/qt5:/usr/local/lib:
 lib/libvtkGUISupportQtQuick-9.2.so.9.2.2  lib/libvtkGUISupportQt-9.2.so.9.2.2 
/usr/local/lib/qt5/libQt5OpenGL.so.5.15.5 
/usr/local/lib/qt5/libQt5Widgets.so.5.15.5 
/usr/local/lib/qt5/libQt5Gui.so.5.15.5  /usr/local/lib/qt5/libQt5Core.so.5.15.5
 /usr/local/lib/qt5/libQt5OpenGL.so.5.15.5 
/usr/local/lib/qt5/libQt5Widgets.so.5.15.5 
/usr/local/lib/qt5/libQt5Quick.so.5.15.5 
/usr/local/lib/qt5/libQt5Gui.so.5.15.5 
/usr/local/lib/qt5/libQt5QmlModels.so.5.15.5 
/usr/local/lib/qt5/libQt5Qml.so.5.15.5 
/usr/local/lib/qt5/libQt5Network.so.5.15.5 
/usr/local/lib/qt5/libQt5Core.so.5.15.5 
lib/libvtkRenderingOpenGL2-9.2.so.9.2.2 
lib/libvtkRenderingHyperTreeGrid-9.2.so.9.2.2 
lib/libvtkRenderingUI-9.2.so.9.2.2  /usr/local/lib/libX11.so 
lib/libvtkglew-9.2.so.9.2.2  /usr/local/lib/libGLX.so 
/usr/local/lib/libOpenGL.so  /usr/local/lib/libX11.so 
lib/libvtkInteractionWidgets-9.2.so.9.2.2 
lib/libvtkRenderingContext2D-9.2.so.9.2.2  lib/libvtkRenderingCore-9.2.so.9.2.2
 lib/libvtkFiltersSources-9.2.so.9.2.2  lib/libvtkFiltersGeneral-9.2.so.9.2.2 
lib/libvtkFiltersCore-9.2.so.9.2.2  lib/libvtkCommonExecutionModel-9.2.so.9.2.2
 lib/libvtkCommonDataModel-9.2.so.9.2.2 
lib/libvtkCommonTransforms-9.2.so.9.2.2  lib/libvtkCommonMisc-9.2.so.9.2.2 
lib/libvtkCommonMath-9.2.so.9.2.2  lib/libvtkCommonCore-9.2.so.9.2.2 
lib/libvtksys-9.2.so.9.2.2  /usr/lib/libexecinfo.so  -lpthread 
lib/libvtkkissfft-9.2.so.9.2.2 
-Wl,-rpath-link,/usr/local/lib:/usr/ports/math/vtk9/work/.build/lib && cd
/usr/ports/math/vtk9/work/.build/GUISupport/QtQuick/qml &&
/usr/local/lib/qt5/bin/qmlplugindump -output
/usr/ports/math/vtk9/work/.build/lib/qml/VTK.9.2/plugins.qmltypes VTK 9.2
/usr/ports/math/vtk9/work/.build/lib/qml
FAILED: lib/qml/VTK.9.2/libqmlvtkplugin.so lib/qml/VTK.9.2/plugins.qmltypes
/usr/ports/math/vtk9/work/.build/lib/qml/VTK.9.2/plugins.qmltypes 
: && /usr/bin/c++ -fPIC -O2 -pipe -march=westmere -fstack-protector-strong
-isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include 
-O2 -pipe -march=westmere -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include  -fstack-protector-strong
-shared  -o lib/qml/VTK.9.2/libqmlvtkplugin.so
GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/qmlvtkplugin_autogen/mocs_compilation.cpp.o
GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/QQmlVTKPlugin.cxx.o 
-Wl,-rpath,/usr/ports/math/vtk9/work/.build/lib:/usr/local/lib/qt5:/usr/local/lib:
 lib/libvtkGUISupportQtQuick-9.2.so.9.2.2  lib/libvtkGUISupportQt-9.2.so.9.2.2 
/usr/local/lib/qt5/libQt5OpenGL.so.5.15.5 
/usr/local/lib/qt5/libQt5Widgets.so.5.15.5 
/usr/local/lib/qt5/libQt5Gui.so.5.15.5  /usr/local/lib/qt5/libQt5Core.so.5.15.5
 /usr/local/lib/qt5/libQt5OpenGL.so.5.15.5 
/usr/local/lib/qt5/libQt5Widgets.so.5.15.5 
/usr/local/lib/qt5/libQt5Quick.so.5.15.5 
/usr/local/lib/qt5/libQt5Gui.so.5.15.5 
/usr/local/lib/qt5/libQt5QmlModels.so.5.15.5 
/usr/local/lib/qt5/libQt5Qml.so.5.15.5 
/usr/local/lib/qt5/libQt5Network.so.5.15.5 
/usr/local/lib/qt5/libQt5Core.so.5.15.5 
lib/libvtkRenderingOpenGL2-9.2.so.9.2.2 
lib/libvtkRenderingHyperTreeGrid-9.2.so.9.2.2 
lib/libvtkRenderingUI-9.2.so.9.2.2  /usr/local/lib/libX11.so 
lib/libvtkglew-9.2.so.9.2.2  /usr/local/lib/libGLX.so 
/usr/local/lib/libOpenGL.so  /usr/local/lib/libX11.so 
lib/libvtkInteractionWidgets-9.2.so.9.2.2 
lib/libvtkRenderingContext2D-9.2.so.9.2.2  lib/libvtkRenderingCore-9.2.so.9.2.2
 lib/libvtkFiltersSources-9.2.so.9.2.2  lib/libvtkFiltersGeneral-9.2.so.9.2.2 
lib/libvtkFiltersCore-9.2.so.9.2.2  lib/libvtkCommonExecutionModel-9.2.so.9.2.2
 lib/libvtkCommonDataModel-9.2.so.9.2.2 
lib/libvtkCommonTransforms-9.2.so.9.2.2  lib/libvtkCommonMisc-9.2.so.9.2.2 
lib/libvtkCommonMath-9.2.so.9.2.2  lib/libvtkCommonCore-9.2.so.9.2.2 
lib/libvtksys-9.2.so.9.2.2  /usr/lib/libexecinfo.so  -lpthread 
lib/libvtkkissfft-9.2.so.9.2.2 
-Wl,-rpath-link,/usr/local/lib:/usr/ports/math/vtk9/work/.build/lib && cd
/usr/ports/math/vtk9/work/.build/GUISupport/QtQuick/qml &&
/usr/local/lib/qt5/bin/qmlplugindump -output
/usr/ports/math/vtk9/work/.build/lib/qml/VTK.9.2/plugins.qmltypes VTK 9.2
/usr/ports/math/vtk9/work/.build/lib/qml
QQmlComponent: Component is not ready
file:///usr/ports/math/vtk9/work/.build/lib/qml/typelist.qml:3:1: plugin cannot
be loaded for module "VTK": Cannot load library
/usr/ports/math/vtk9/work/.build/lib/qml/VTK.9.2/libqmlvtkplugin.so:
(/usr/ports/math/vtk9/work/.build/lib/libvtkFiltersExtraction-9.2.so.1:
Undefined symbol "ompi_mpi_comm_world")

-- 
You are receiving this mail because:
You are the assignee for the bug.