← Back to team overview

kicad-developers team mailing list archive

Build failure on Fedora 29

 

I had been able to build KiCad successfully for Fedora 29, but something has apparently changed very recently, because I am now getting a build failure.

Below is part of my build log.  The error relates to an include file called KHR/khrplatform.h:

[ 23%] Building CXX object common/CMakeFiles/pcbcommon.dir/__/pcbnew/pcb_base_frame.cpp.o
cd /builddir/build/BUILD/kicad-5.0.2/common && /usr/bin/c++  -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_USE_OCE -DWXUSINGDLL -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DPCBNEW -I/builddir/build/BUILD/kicad-5.0.2/include -I/builddir/build/BUILD/kicad-5.0.2/common/. -I/builddir/build/BUILD/kicad-5.0.2/common/./dialogs -I/builddir/build/BUILD/kicad-5.0.2/common/./widgets -I/builddir/build/BUILD/kicad-5.0.2/common/./dialog_about -I/usr/include/cairo -I/usr/include/pixman-1 -I/builddir/build/BUILD/kicad-5.0.2/common/../3d-viewer -I/builddir/build/BUILD/kicad-5.0.2/common/../pcbnew -I/builddir/build/BUILD/kicad-5.0.2/common/../polygon -I/builddir/build/BUILD/kicad-5.0.2 -I/usr/lib64/oce-0.18/../../include/oce -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0  -Wall -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wsuggest-override -Wno-unused-local-typedefs -Wno-strict-aliasing -pthread -Wshadow -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=gnu++11 -o CMakeFiles/pcbcommon.dir/__/pcbnew/pcb_base_frame.cpp.o -c /builddir/build/BUILD/kicad-5.0.2/pcbnew/pcb_base_frame.cpp
BUILDSTDERR: In file included from /usr/include/GL/gl.h:2055,
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-5.0.2/common/../3d-viewer/3d_rendering/3d_render_ogl_legacy/../../common_ogl/openGL_includes.h:39,
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-5.0.2/common/../3d-viewer/3d_rendering/3d_render_ogl_legacy/clayer_triangles.h:33,
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-5.0.2/common/../3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.h:34,
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-5.0.2/common/../3d-viewer/3d_viewer/../3d_canvas/eda_3d_canvas.h:36,
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-5.0.2/common/../3d-viewer/3d_viewer/eda_3d_viewer.h:37,
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-5.0.2/pcbnew/pcb_base_frame.cpp:42:
BUILDSTDERR: /usr/include/GL/glext.h:467:10: fatal error: KHR/khrplatform.h: No such file or directory
BUILDSTDERR:  #include <KHR/khrplatform.h>
BUILDSTDERR:           ^~~~~~~~~~~~~~~~~~~
BUILDSTDERR: compilation terminated.
BUILDSTDERR: make[2]: *** [common/CMakeFiles/pcbcommon.dir/build.make:179: common/CMakeFiles/pcbcommon.dir/__/pcbnew/pcb_base_frame.cpp.o] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/kicad-5.0.2'
BUILDSTDERR: make[2]: *** Waiting for unfinished jobs....

I just checked the nightly builds, and they too are failing.  Here is the error from Copr - it also involves KHR/khrplatform.h:

[  3%] Building CXX object common/CMakeFiles/gal.dir/gl_context_mgr.cpp.o
cd /builddir/build/BUILD/kicad-r14589-dd9a0010/common && /usr/bin/c++  -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_SCRIPTING -DKICAD_SCRIPTING_ACTION_MENU -DKICAD_SCRIPTING_MODULES -DKICAD_USE_OCE -DWXUSINGDLL -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/builddir/build/BUILD/kicad-r14589-dd9a0010/include -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/. -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/./dialogs -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/./widgets -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/./dialog_about -I/usr/include/cairo -I/usr/include/pixman-1 -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/../3d-viewer -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/../pcbnew -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/../polygon -I/builddir/build/BUILD/kicad-r14589-dd9a0010 -I/usr/include/python2.7 -I/builddir/build/BUILD/kicad-r14589-dd9a0010/scripting -I/usr/lib64/oce-0.18/../../include/oce -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0  -Wall -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wsuggest-override -Werror=vla -Wno-unused-local-typedefs -Wno-strict-aliasing -pthread -Wshadow -g3 -ggdb3 -DDEBUG -Wno-deprecated-declarations -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=gnu++11 -o CMakeFiles/gal.dir/gl_context_mgr.cpp.o -c /builddir/build/BUILD/kicad-r14589-dd9a0010/common/gl_context_mgr.cpp
cd /builddir/build/BUILD/kicad-r14589-dd9a0010/common && /usr/bin/c++  -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_SCRIPTING -DKICAD_SCRIPTING_ACTION_MENU -DKICAD_SCRIPTING_MODULES -DKICAD_USE_OCE -DWXUSINGDLL -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/builddir/build/BUILD/kicad-r14589-dd9a0010/include -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/. -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/./dialogs -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/./widgets -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/./dialog_about -I/usr/include/cairo -I/usr/include/pixman-1 -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/../3d-viewer -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/../pcbnew -I/builddir/build/BUILD/kicad-r14589-dd9a0010/common/../polygon -I/builddir/build/BUILD/kicad-r14589-dd9a0010 -I/usr/include/python2.7 -I/builddir/build/BUILD/kicad-r14589-dd9a0010/scripting -I/usr/lib64/oce-0.18/../../include/oce -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0  -Wall -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wsuggest-override -Werror=vla -Wno-unused-local-typedefs -Wno-strict-aliasing -pthread -Wshadow -g3 -ggdb3 -DDEBUG -Wno-deprecated-declarations -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -std=gnu++11 -o CMakeFiles/gal.dir/gl_context_mgr.cpp.o -c /builddir/build/BUILD/kicad-r14589-dd9a0010/common/gl_context_mgr.cpp
BUILDSTDERR: In file included from /usr/include/GL/gl.h:2055,
BUILDSTDERR: In file included from /usr/include/GL/gl.h:2055,
BUILDSTDERR:                  from /usr/include/GL/glx.h:32,
BUILDSTDERR:                  from /usr/include/GL/glx.h:32,
BUILDSTDERR:                  from /usr/include/wx-3.0/wx/unix/glx11.h:13,
BUILDSTDERR:                  from /usr/include/wx-3.0/wx/unix/glx11.h:13,
BUILDSTDERR:                  from /usr/include/wx-3.0/wx/gtk/glcanvas.h:14,
BUILDSTDERR:                  from /usr/include/wx-3.0/wx/gtk/glcanvas.h:14,
BUILDSTDERR:                  from /usr/include/wx-3.0/wx/glcanvas.h:195,
BUILDSTDERR:                  from /usr/include/wx-3.0/wx/glcanvas.h:195,
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-r14589-dd9a0010/include/gl_context_mgr.h:28,
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-r14589-dd9a0010/include/gl_context_mgr.h:28,
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-r14589-dd9a0010/common/gl_context_mgr.cpp:26:
BUILDSTDERR:                  from /builddir/build/BUILD/kicad-r14589-dd9a0010/common/gl_context_mgr.cpp:26:
BUILDSTDERR: /usr/include/GL/glext.h:467:10: fatal error: KHR/khrplatform.h: No such file or directory
BUILDSTDERR: /usr/include/GL/glext.h:467:10: fatal error: KHR/khrplatform.h: No such file or directory
BUILDSTDERR:  #include <KHR/khrplatform.h>
BUILDSTDERR:  #include <KHR/khrplatform.h>
BUILDSTDERR:           ^~~~~~~~~~~~~~~~~~~
BUILDSTDERR:           ^~~~~~~~~~~~~~~~~~~
BUILDSTDERR: compilation terminated.
BUILDSTDERR: compilation terminated.
BUILDSTDERR: make[2]: *** [common/CMakeFiles/gal.dir/build.make:92: common/CMakeFiles/gal.dir/gl_context_mgr.cpp.o] Error 1
BUILDSTDERR: make[2]: *** [common/CMakeFiles/gal.dir/build.make:92: common/CMakeFiles/gal.dir/gl_context_mgr.cpp.o] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/kicad-r14589-dd9a0010'
make[2]: Leaving directory '/builddir/build/BUILD/kicad-r14589-dd9a0010'
BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:504: common/CMakeFiles/gal.dir/all] Error 2
BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:504: common/CMakeFiles/gal.dir/all] Error 2
BUILDSTDERR: make[1]: *** Waiting for unfinished jobs....

Does anyone have an idea as to what is going on?  Is it a Fedora bug or a KiCad bug?

	Steve

Follow ups