Bug#738540: libmgl-dev: clang cannot be used to compile an application using mathgl

Sylvain Joubert joubert.sy at gmail.com
Mon Feb 10 11:45:56 UTC 2014


Package: libmgl-dev
Version: 2.2-1
Severity: important
Tags: upstream

Dear Maintainer,

When trying to compile an application using libmgl-dev with clang I get the
following compilation error:

/usr/include/mgl2/define.h:27:10: fatal error: 'omp.h' file not found
#include <omp.h>

Indeed, clang does not support OpenMP yet.

I traced back the include in the Mathgl sources and it seems:
1. This include is useless since there is no call in the sources to any of the
OpenMP functions
2. Even if mathgl sources want to make use of the OpenMP API, the <omp.h>
include should not have been provided to the end-user. IMHO, it should have
stayed in C++ source files not in headers provided to the user.

I think this is an upstream bug, but in the mean time there may be a Debian fix
to allow users to compile their application with clang. One may consider
rebuilding mathgl with OpenMP support deactivated and maybe activate the
pthread support since it is the alternate way provided by mathgl.

Thanks!



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'stable-updates'), (800, 'stable'), (700, 'unstable'), (90, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages libmgl-dev depends on:
ii  libgl1-mesa-dev [libgl-dev]  9.2.2-1
ii  libgsl0-dev                  1.16+dfsg-1
ii  libmgl-fltk7.1.0             2.2-1
ii  libmgl-glut7.1.0             2.2-1
ii  libmgl-mpi7.1.0              2.2-1
ii  libmgl-qt7.1.0               2.2-1
ii  libmgl-wnd7.1.0              2.2-1
ii  libmgl-wx7.1.0               2.2-1
ii  libmgl7.1.0                  2.2-1
ii  libpng12-dev [libpng-dev]    1.2.50-1

libmgl-dev recommends no packages.

libmgl-dev suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list