[MacPorts] #66714: linear_algebra does not pass correct args to CMake and opportunistically links to OpenBLAS
MacPorts
noreply at macports.org
Wed Jan 18 12:32:14 UTC 2023
#66714: linear_algebra does not pass correct args to CMake and opportunistically
links to OpenBLAS
--------------------------+-----------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Keywords: | Port: linear_algebra, dbcsr
--------------------------+-----------------------------------
Installing {{{dbcsr}}} on another machine, and linking again is wrong:
despite Accelerate being default (and recognized as such), configure.args
to link against {{{vecLibFort}}} are not passed at all, and CMake
opportunistically links to {{{OpenBLAS}}}.
{{{
---> Configuring dbcsr
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_dbcsr/dbcsr/work/build"
&& /opt/local/bin/cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MacPorts
-DCMAKE_INSTALL_PREFIX="/opt/local"
-DCMAKE_INSTALL_NAME_DIR="/opt/local/lib"
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC"
-DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC"
-DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW
-DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=ninja
-DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
-DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev
-DPython_EXECUTABLE=/opt/local/bin/python3.11
-DFYPP_EXECUTABLE=/opt/local/bin/fypp-3.11 -DUSE_MPI=ON -DUSE_OPENMP=ON
-DUSE_SMM=blas -DWITH_C_API=ON -DWITH_CUDA_PROFILING=OFF
-DBUILD_TESTING=ON -DTEST_OMP_THREADS=2 -DTEST_MPI_RANKS=4
-DWITH_EXAMPLES=OFF -DCMAKE_OSX_ARCHITECTURES="ppc"
-DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/"
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_dbcsr/dbcsr/work/dbcsr-2.5.0
}}}
{{{
-- Performing Test _openblascheck_has_OMP
-- Performing Test _openblascheck_has_OMP - Success
-- Found BLAS: /opt/local/lib/libopenblas.dylib
}}}
Of course, I could manually set arguments in the portfile to force correct
behavior, but perhaps rather PG should be fixed.
This should have been passed by PG:
{{{
cmake_linalglib -DBLAS_LIBRARIES=vecLibFort \
-DLAPACK_LIBRARIES=vecLibFort
}}}
P. S. For a note, while my example happens to be from 10A190,
incidentally, the ticket does not refer to a particular OS version, but to
interaction of PG with CMake.
--
Ticket URL: <https://trac.macports.org/ticket/66714>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list