[Bug 275168] devel/cmake-core: segfault on checking MPI implementation when GCC is used as the compiler
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Nov 18 11:36:17 GMT 2023
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275168
Bug ID: 275168
Summary: devel/cmake-core: segfault on checking MPI
implementation when GCC is used as the compiler
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: kde at FreeBSD.org
Reporter: vedran at miletic.net
Assignee: kde at FreeBSD.org
Flags: maintainer-feedback?(kde at FreeBSD.org)
Created attachment 246388
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=246388&action=edit
CMake core dump
I am using 14.0-RELEASE FreeBSD 14.0-RELEASE #0
releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023
root at releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERICamd64
1400097 1400097, but this issue also affected BETAs, RCs and IIRC 13.2-RELEASE.
I am configuring GROMACS 2023.3 from [1] with CMake 3.26.1_3, compiler set to
GCC 12.2.0_6 and OpenMPI 4.1.5_1 present on the system, using the command:
% cmake -D CMAKE_C_COMPILER=gcc12 -D CMAKE_CXX_COMPILER=g++12 -S . -B build
This will cause CMake to dump core. I verified that this does not happen when
GCC is replaced with Clang (from the base system) or when OpenMPI is replaced
MPICH 3.4.3_2.
While I believe this is an issue with CMake, I found out that it did not happen
in GROMACS 2021 so I bisected the issue one the GROMACS side. The offending
commit [2] could be helpful to minimize the example CMakeLists.txt if that
becomes necessary.
Finally, I wondered if this is an issue with CMake or an issue with the build
of CMake from Ports. I uninstalled CMake via pkg and used (via Linuxilator) the
official Linux amd64 binary at the exact same version, downloaded from [3].
There is no core dump.
Hope this helps. Let me know if I can provide more info.
[1] https://manual.gromacs.org/2023.3/download.html
[2]
https://gitlab.com/gromacs/gromacs/-/commit/9088f06a56c6122f21a47e3f06509ce1737465ef
[3]
https://github.com/Kitware/CMake/releases/download/v3.26.1/cmake-3.26.1-linux-x86_64.tar.gz
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the kde-freebsd
mailing list