Date: Sat, 18 Nov 2023 11:36:17 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 275168] devel/cmake-core: segfault on checking MPI implementation when GCC is used as the compiler Message-ID: <bug-275168-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275168 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@FreeBSD.org Reporter: vedran@miletic.net Assignee: kde@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) Created attachment 246388 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D246388&action= =3Dedit 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=20=20=20=20 root@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-RELE= ASE. 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=3Dgcc12 -D CMAKE_CXX_COMPILER=3Dg++12 -S . -B b= uild This will cause CMake to dump core. I verified that this does not happen wh= en GCC is replaced with Clang (from the base system) or when OpenMPI is replac= ed MPICH 3.4.3_2. While I believe this is an issue with CMake, I found out that it did not ha= ppen 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 bui= ld 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/9088f06a56c6122f21a47e3f06509ce= 1737465ef [3] https://github.com/Kitware/CMake/releases/download/v3.26.1/cmake-3.26.1-lin= ux-x86_64.tar.gz --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275168-7788>