Re: [Kicad-developers] Build failure on Fedora 29

2018-12-09 Thread Steven A. Falco
On 12/9/18 11:53 AM, Steven A. Falco wrote:
> On 12/9/18 10:47 AM, Seth Hillbrand wrote:
>> Am 2018-12-09 10:24, schrieb Steven A. Falco:
>>> 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
>>
>>> /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 
>>> BUILDSTDERR:   ^~~
>>
>>> Does anyone have an idea as to what is going on?  Is it a Fedora bug
>>> or a KiCad bug?
>>>
>>> Steve
>>
>> Hi Steve-
>>
>> That is the Khronos group header file that is used for older OpenGL 
>> implementations.  It is still included from the glext.h file.
>>
>> It may be that the Fedora packaging changed who provides this file or the 
>> dependencies.  Do you require mesa-libEGL-devel-** for the build?  If not, 
>> adding it should fix the issue.
>>
>> -S
>>
> 
> Thanks much.  Adding mesa-libEGL-devel looks like it fixes the build.  I have 
> more testing to do, but once I am confident, I'll create a pull request to 
> fix the nightlies, and also push the fix into the official Fedora build 
> system.
> 
>   Steve
> 
> 

I completed my testing, and adding a BuildRequires for mesa-libEGL-devel does 
indeed fix the Fedora 29 build.  I've opened a pull request:

https://github.com/KiCad/fedora-packaging/pull/22

which should fix the nightly Fedora builds.

Steve

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Build failure on Fedora 29

2018-12-09 Thread Steven A. Falco
On 12/9/18 10:47 AM, Seth Hillbrand wrote:
> Am 2018-12-09 10:24, schrieb Steven A. Falco:
>> 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
> 
>> /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 
>> BUILDSTDERR:   ^~~
> 
>> Does anyone have an idea as to what is going on?  Is it a Fedora bug
>> or a KiCad bug?
>>
>> Steve
> 
> Hi Steve-
> 
> That is the Khronos group header file that is used for older OpenGL 
> implementations.  It is still included from the glext.h file.
> 
> It may be that the Fedora packaging changed who provides this file or the 
> dependencies.  Do you require mesa-libEGL-devel-** for the build?  If not, 
> adding it should fix the issue.
> 
> -S
> 

Thanks much.  Adding mesa-libEGL-devel looks like it fixes the build.  I have 
more testing to do, but once I am confident, I'll create a pull request to fix 
the nightlies, and also push the fix into the official Fedora build system.

Steve


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Build failure on Fedora 29

2018-12-09 Thread Bob Gustafson

This might be the problem: (not Kicad)

https://bugs.freedesktop.org/show_bug.cgi?id=77240

On 12/9/18 9:24 AM, Steven A. Falco wrote:

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 
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 

Re: [Kicad-developers] Build failure on Fedora 29

2018-12-09 Thread Seth Hillbrand

Am 2018-12-09 10:24, schrieb Steven A. Falco:

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



/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 
BUILDSTDERR:   ^~~



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

Steve


Hi Steve-

That is the Khronos group header file that is used for older OpenGL 
implementations.  It is still included from the glext.h file.


It may be that the Fedora packaging changed who provides this file or 
the dependencies.  Do you require mesa-libEGL-devel-** for the build?  
If not, adding it should fix the issue.


-S

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Build failure on Fedora 29

2018-12-09 Thread Steven A. Falco
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 
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