<html><head><style>body{font-family:Merriweather,Arial;font-size:13px}</style></head><body><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); ">Hello, </div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); ">I’m trying to debug the build of ParaView port with Python 3.7 and MPI. I got an error like this:</div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); "><br></div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); ">```</div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); "><pre class="code highlight" lang="plaintext"><span id="LC6" class="line" lang="plaintext">[  7%] Built target vtkParallelMPI4PyHierarchy</span>
<span id="LC7" class="line" lang="plaintext">/Applications/Xcode.app/Contents/Developer/usr/bin/make -f VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/build.make VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/depend</span>
<span id="LC8" class="line" lang="plaintext">cd /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/ParaView-v5.6.1 /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/ParaView-v5.6.1/VTK/Parallel/MPI4Py /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Parallel/MPI4Py /opt/local/var/macports/build/_Users_rubendibattista_git_macports-ports_science_paraview/paraview/work/build/VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/DependInfo.cmake --color=</span>
<span id="LC9" class="line" lang="plaintext">/Applications/Xcode.app/Contents/Developer/usr/bin/make -f VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/build.make VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/build</span>
<span id="LC10" class="line" lang="plaintext">make[2]: *** No rule to make target `/opt/local/lib/libpython3.7.dylib', needed by `lib/libvtkParallelMPI4Py-pv5.6.1.dylib'.  Stop.</span>
<span id="LC11" class="line" lang="plaintext">make[1]: *** [VTK/Parallel/MPI4Py/CMakeFiles/vtkParallelMPI4Py.dir/all] Error 2</span>
<span id="LC12" class="line" lang="plaintext">make: *** [all] Error 2</span>
</pre></div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); ">```</div><div><font color="#333333">That make me look into `/opt/local/lib`, where no `libpython3.7.dylib` is present (neither libpython3.6.dylib), but libpython2.7.dylib is there. So I checked the Portfile of python27 vs python37, and I see that in python27 there’s a symlink put in place:</font></div><div><br></div><div>```</div><div>  <font face="Courier"><span style="font-style: normal;">  post-destroot {</span></font></div><div><font face="Courier"><span style="font-style: normal;">        foreach dir { Headers Resources Python Versions/Current } {</span></font></div><div><font face="Courier"><span style="font-style: normal;">            file delete ${destroot}${framewpath}/${dir}</span></font></div><div><font face="Courier"><span style="font-style: normal;">        }</span></font></div><div><font face="Courier"><span style="font-style: normal;"><br></span></font></div><div><font face="Courier"><span style="font-style: normal;">        ln -s ${framewdir}/share/man/man1/python${branch}.1 ${destroot}${prefix}/share/man/man1/</span></font></div><div><font face="Courier"><span style="font-style: normal;">        ln -s ${framewdir}/Python ${destroot}${prefix}/lib/libpython${branch}.dylib</span></font></div><div><font face="Courier"><span style="font-style: normal;">        ln -s ${framewdir}/lib/pkgconfig/python-${branch}.pc ${destroot}${prefix}/lib/pkgconfig/</span></font></div><div>  ``` </div><div><br></div><div><font color="#333333"><span style="caret-color: rgb(51, 51, 51);">Is this normal?</span></font></div><div><font color="#333333"><span style="caret-color: rgb(51, 51, 51);"><br></span></font></div><div><font color="#333333">Moreover I checked the cmake output for ParaView and I get:</font></div><div><pre class="code highlight" lang="plaintext"><font face="Arial"><span style="font-style: normal;">```</span></font></pre><pre class="code highlight" lang="plaintext"><span id="LC1" class="line" lang="plaintext">:info:configure -- Looking for feenableexcept - not found</span>
<span id="LC2" class="line" lang="plaintext">:info:configure -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY</span>
<span id="LC3" class="line" lang="plaintext">:info:configure -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success</span>
<span id="LC4" class="line" lang="plaintext">:info:configure -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY</span>
<span id="LC5" class="line" lang="plaintext">:info:configure -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success</span>
<span id="LC6" class="line" lang="plaintext">:info:configure -- Performing Test COMPILER_HAS_DEPRECATED_ATTR</span>
<span id="LC7" class="line" lang="plaintext">:info:configure -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success</span>
<span id="LC8" class="line" lang="plaintext">:info:configure -- Found PythonLibs: /opt/local/lib/libpython3.7.dylib</span></pre><pre class="code highlight" lang="plaintext"><font face="Arial"><span style="font-style: normal;">```</span></font></pre><pre class="code highlight" lang="plaintext"><font face="Arial"><span style="font-style: normal;">So it finds Python 3.7, but the library path is wrong. How is this possible? Anyone can give me an hint?</span></font></pre></div><div class="gmail_signature" ><pre><code>-.     .´  |∞∞∞∞
  ',  ;    |∞∞∞∞∞∞
    ˜˜     |∞∞∞∞∞∞∞∞∞ RdB
    ,.,    |∞∞∞∞∞∞
  .'   '.  |∞∞∞∞
-'       `’

https://rdb.is
</code></pre></div></body></html>