Discussion:
Bug#914167: fatal error: KHR/khrplatform.h: No such file or directory
Mathieu Malaterre
2018-11-20 07:04:48 UTC
Permalink
Package: mesa-common-dev
Version: 18.2.5-1
Severity: serious
Tags: ftbfs

OpenVDB fails to build from source because of:

In file included from /usr/include/GL/gl.h:2055,
from viewer/Font.h:40,
from viewer/Font.cc:31:
/usr/include/GL/glext.h:467:10: fatal error: KHR/khrplatform.h: No
such file or directory
#include <KHR/khrplatform.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.

ref:
https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=amd64&ver=5.2.0-5&stamp=1542666626&raw=0

It would be nice to fix this, upstream seems to have provided a patch:

https://bugs.freedesktop.org/show_bug.cgi?id=107511
Timo Aaltonen
2018-11-20 07:19:46 UTC
Permalink
Post by Mathieu Malaterre
Package: mesa-common-dev
Version: 18.2.5-1
Severity: serious
Tags: ftbfs
In file included from /usr/include/GL/gl.h:2055,
from viewer/Font.h:40,
/usr/include/GL/glext.h:467:10: fatal error: KHR/khrplatform.h: No
such file or directory
#include <KHR/khrplatform.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=amd64&ver=5.2.0-5&stamp=1542666626&raw=0
https://bugs.freedesktop.org/show_bug.cgi?id=107511
That commit is in 18.2.5:

commit 2645ea5817f4fd05905b8deda96c268cd69fa48c
Author: Eric Engestrom <***@intel.com>
Date: Tue Aug 7 12:56:25 2018 +0100

configure: install KHR/khrplatform.h when needed

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107511
Fixes: f7d42ee7d319256608ad "include: update GL & GLES headers (v2)"
Signed-off-by: Eric Engestrom <***@intel.com>
Tested-by: Brad King <***@kitware.com>
Reviewed-by: Emil Velikov <***@collabora.com>
(cherry picked from commit 87c156183cd668f1341326cc7c88ab6686f27d8f)

so something else is wrong.
--
t
Mathieu Malaterre
2018-11-20 07:31:02 UTC
Permalink
Post by Timo Aaltonen
Post by Mathieu Malaterre
Package: mesa-common-dev
Version: 18.2.5-1
Severity: serious
Tags: ftbfs
In file included from /usr/include/GL/gl.h:2055,
from viewer/Font.h:40,
/usr/include/GL/glext.h:467:10: fatal error: KHR/khrplatform.h: No
such file or directory
#include <KHR/khrplatform.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=amd64&ver=5.2.0-5&stamp=1542666626&raw=0
https://bugs.freedesktop.org/show_bug.cgi?id=107511
commit 2645ea5817f4fd05905b8deda96c268cd69fa48c
Date: Tue Aug 7 12:56:25 2018 +0100
configure: install KHR/khrplatform.h when needed
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107511
Fixes: f7d42ee7d319256608ad "include: update GL & GLES headers (v2)"
(cherry picked from commit 87c156183cd668f1341326cc7c88ab6686f27d8f)
so something else is wrong.
I must admit I was hoping for some help here. Here is what I see on my side:

$ head -n 467 /usr/include/GL/glext.h | tail -1
#include <stddef.h>

So this is a bit mysterious what is happening on all the buildds...
Mathieu Malaterre
2018-11-20 07:35:04 UTC
Permalink
Post by Mathieu Malaterre
Post by Timo Aaltonen
Post by Mathieu Malaterre
Package: mesa-common-dev
Version: 18.2.5-1
Severity: serious
Tags: ftbfs
In file included from /usr/include/GL/gl.h:2055,
from viewer/Font.h:40,
/usr/include/GL/glext.h:467:10: fatal error: KHR/khrplatform.h: No
such file or directory
#include <KHR/khrplatform.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=amd64&ver=5.2.0-5&stamp=1542666626&raw=0
https://bugs.freedesktop.org/show_bug.cgi?id=107511
commit 2645ea5817f4fd05905b8deda96c268cd69fa48c
Date: Tue Aug 7 12:56:25 2018 +0100
configure: install KHR/khrplatform.h when needed
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107511
Fixes: f7d42ee7d319256608ad "include: update GL & GLES headers (v2)"
(cherry picked from commit 87c156183cd668f1341326cc7c88ab6686f27d8f)
so something else is wrong.
$ head -n 467 /usr/include/GL/glext.h | tail -1
#include <stddef.h>
So this is a bit mysterious what is happening on all the buildds...
As a side note, the experimental build of OpenVDB (same orig tarball
as the one in sid) went find using the previous version of mesa:

https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=amd64&ver=5.2.0-4&stamp=1542634335&raw=0

...
Get: 164 http://ftp.gr.debian.org/debian unstable/main amd64
mesa-common-dev amd64 18.1.9-1 [587 kB]
...
Sven Joachim
2018-11-20 08:07:17 UTC
Permalink
Post by Timo Aaltonen
Post by Mathieu Malaterre
Package: mesa-common-dev
Version: 18.2.5-1
Severity: serious
Tags: ftbfs
In file included from /usr/include/GL/gl.h:2055,
from viewer/Font.h:40,
/usr/include/GL/glext.h:467:10: fatal error: KHR/khrplatform.h: No
such file or directory
#include <KHR/khrplatform.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=amd64&ver=5.2.0-5&stamp=1542666626&raw=0
https://bugs.freedesktop.org/show_bug.cgi?id=107511
commit 2645ea5817f4fd05905b8deda96c268cd69fa48c
Date: Tue Aug 7 12:56:25 2018 +0100
configure: install KHR/khrplatform.h when needed
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107511
Fixes: f7d42ee7d319256608ad "include: update GL & GLES headers (v2)"
(cherry picked from commit 87c156183cd668f1341326cc7c88ab6686f27d8f)
so something else is wrong.
KHR/khrplatform.h is installed, but into libegl1-mesa-dev, on which
mesa-common-dev does not currently depend.

Cheers,
Sven
Debian Bug Tracking System
2018-11-20 20:51:04 UTC
Permalink
Your message dated Tue, 20 Nov 2018 20:47:24 +0000
with message-id <E1gPCvc-0005G9-***@fasolo.debian.org>
and subject line Bug#914167: fixed in mesa 18.2.5-2
has caused the Debian Bug report #914167,
regarding fatal error: KHR/khrplatform.h: No such file or directory
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
914167: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914167
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...