Bug#737103: gmsh: Gmsh is build with openmp silently enabled

Petr Ledvina ledvina at ekotip.cz
Thu Jan 30 09:28:00 UTC 2014


Package: gmsh
Version: 2.8.3+dfsg-4
Severity: important

Dear Maintainer,
debian/rules in gmsh package passes -fopenmp to CMake in debian/rules.
This results in experimental OPENMP feature silently enabled
( there is #if defined(_OPENMP) check in source) and then gmsh fails
sometimes with segfault as result of race condition.
I tried removing -fopenmp, package builds and gmsh seems to work.

from debian/rules:
ifeq (,$(filter $(DEB_HOST_ARCH),$(disable_mpi_archs)))
        extra_flags += \
        -DCMAKE_CXX_FLAGS="-DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX
-fopenmp -lmpi -fPIC \
                           -Wall $(shell dpkg-buildflags --get CXXFLAGS)" \
        -DENABLE_MPI:BOOL=ON
else
        extra_flags += \
        -DCMAKE_CXX_FLAGS="-DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX
-fopenmp -fPIC \
                           -Wall $(shell dpkg-buildflags --get CXXFLAGS)" \
        -DENABLE_MPI:BOOL=OFF
endif

Best Regards,
Petr Ledvina

-- System Information:
Debian Release: 7.3
  APT prefers stable
  APT policy: (900, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gmsh depends on:
ii  dpkg                         1.16.12
ii  install-info                 4.13a.dfsg.1-10
ii  libann0                      1.1.2+doc-3
ii  libblas3 [libblas.so.3]      1.2.20110419-5
ii  libc6                        2.13-38
ii  libfltk-gl1.3                1.3.0-8
ii  libfltk-images1.3            1.3.0-8
ii  libfltk1.3                   1.3.0-8
ii  libgcc1                      1:4.7.2-5
ii  libgl1-mesa-glx [libgl1]     8.0.5-4+deb7u2
ii  libgl2ps0                    1.3.6-1
ii  libglu1-mesa [libglu1]       8.0.5-4+deb7u2
ii  libgmp10                     2:5.0.5+dfsg-2
ii  libjpeg8                     8d-1
ii  liblapack3 [liblapack.so.3]  3.4.1+dfsg-1+deb70u1
ii  libmed1                      3.0.3-3
ii  liboce-foundation2           0.9.1-3
ii  liboce-modeling2             0.9.1-3
ii  libopenmpi1.3                1.4.5-1
ii  libpng12-0                   1.2.49-1
ii  libstdc++6                   4.7.2-5
ii  libx11-6                     2:1.5.0-1+deb7u1
ii  mpi-default-bin              1.0.1

Versions of packages gmsh recommends:
pn  gmsh-doc  <none>

gmsh suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list