Fatal Installation Bug when opening pcbnew

Bug #1450525 reported by Abdullah Kahraman on 2015-04-30
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kicad-winbuilder
Critical
Unassigned

Bug Description

I have installed KiCad BZR 5634 using kicad-winbuilder and pcbnew and cvpcb are not working. This is the error when I try to open them from KiCad main window:

18:47:22: Failed to load shared library 'C:\kicad-winbuilder-3.4\kicad\bin\_pcbnew.kiface' (error 0: the operation completed successfully.)
18:47:24: IO_ERROR: Fatal Installation Bug. File:
'C:\kicad-winbuilder-3.4\kicad\bin\_pcbnew.kiface'
could not be loaded
Perhaps a wxWidgets shared (.dll or .so) file is missing.
From command line: argv[0]:
'C:\kicad-winbuilder-3.4\kicad\bin\kicad.exe'

from C:\kicad-winbuilder-3.4\src\kicad\common\kiway.cpp : KiFACE() : line 225

18:47:22: Failed to load shared library 'C:\kicad-winbuilder-3.4\kicad\bin\_pcbnew.kiface' (error 0: the operation completed successfully.)
18:47:24: IO_ERROR: Fatal Installation Bug. File:
'C:\kicad-winbuilder-3.4\kicad\bin\_pcbnew.kiface'
could not be loaded
Perhaps a wxWidgets shared (.dll or .so) file is missing.
From command line: argv[0]:
'C:\kicad-winbuilder-3.4\kicad\bin\kicad.exe'

from C:\kicad-winbuilder-3.4\src\kicad\common\kiway.cpp : KiFACE() : line 225

Nick Østergaard (nickoe) wrote :

Is this a fresh build? And if not, that is you tried to rebuild. Are you sure it finished successfully?

affects: kicad → kicad-winbuilder

Please can you include the files from the logs directory so that we
can see what happened during the build.

Last night I noticed that the CMake build was not as isolated as I
thought and, for example glew was found elsewhere on my machine rather
than from the Winbuilder directory. This then caused a DLL dependency
issue.

Best Regards,

Brian.

On 1 May 2015 at 09:14, Nick Østergaard <email address hidden> wrote:
> Is this a fresh build? And if not, that is you tried to rebuild. Are you
> sure it finished successfully?
>
> ** Project changed: kicad => kicad-winbuilder
>
> --
> You received this bug notification because you are subscribed to KiCad.
> Matching subscriptions: kicad-bugs-subs, kicad-winbuilder-bugs-subs, winbuilder-bugs
> https://bugs.launchpad.net/bugs/1450525
>
> Title:
> Fatal Installation Bug when opening pcbnew
>
> Status in KiCad Windows Builder:
> New
>
> Bug description:
> I have installed KiCad BZR 5634 using kicad-winbuilder and pcbnew and
> cvpcb are not working. This is the error when I try to open them from
> KiCad main window:
>
> 18:47:22: Failed to load shared library 'C:\kicad-winbuilder-3.4\kicad\bin\_pcbnew.kiface' (error 0: the operation completed successfully.)
> 18:47:24: IO_ERROR: Fatal Installation Bug. File:
> 'C:\kicad-winbuilder-3.4\kicad\bin\_pcbnew.kiface'
> could not be loaded
> Perhaps a wxWidgets shared (.dll or .so) file is missing.
> From command line: argv[0]:
> 'C:\kicad-winbuilder-3.4\kicad\bin\kicad.exe'
>
> from C:\kicad-winbuilder-3.4\src\kicad\common\kiway.cpp : KiFACE() :
> line 225
>
> 18:47:22: Failed to load shared library 'C:\kicad-winbuilder-3.4\kicad\bin\_pcbnew.kiface' (error 0: the operation completed successfully.)
> 18:47:24: IO_ERROR: Fatal Installation Bug. File:
> 'C:\kicad-winbuilder-3.4\kicad\bin\_pcbnew.kiface'
> could not be loaded
> Perhaps a wxWidgets shared (.dll or .so) file is missing.
> From command line: argv[0]:
> 'C:\kicad-winbuilder-3.4\kicad\bin\kicad.exe'
>
> from C:\kicad-winbuilder-3.4\src\kicad\common\kiway.cpp : KiFACE() :
> line 225
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad-winbuilder/+bug/1450525/+subscriptions

Abdullah Kahraman (cebrax) wrote :
Download full text (7.9 KiB)

I am sorry I have not included the build logs. I am attaching them in this comment now.

******************
File: make_Release.log
*****************

[ 0%] [ 0%] [ 0%] [ 0%] [ 1%] [ 1%] Generating headers containing GLSL source code
Built target boost
Built target fp_lib_table_lexer_source_files
Built target page_layout_lexer_source_files
Built target netlist_lexer_source_files
Built target pcb_lexer_source_files
[ 1%] Built target shader_headers
[ 1%] [ 1%] [ 1%] [ 1%] [ 1%] Built target specctra_lexer_source_files
Built target openssl
Built target avhttp
Built target pcb_plot_lexer_source_files
Built target cmp_library_lexer_source_files
[ 1%] Built target dialog_bom_cfg_lexer_source_files
[ 2%] [ 3%] [ 5%] [ 5%] Built target field_template_lexer_source_files
Built target pcb_calculator_lexer_source_files
Built target lib_dxf
Built target potrace
[ 5%] Built target idfcyl
[ 35%] [ 35%] [ 36%] Built target bitmaps
Built target lib-dependencies
Built target idfrect
[ 36%] Built target idf3
[ 36%] Built target dxf2idf
[ 36%] Built target idf2vrml
[ 36%] Built target polygon
[ 36%] Built target github_plugin
[ 37%] Built target gal
[ 40%] Built target pcbcommon
[ 47%] Built target common
[ 47%] Built target bitmap2component
[ 48%] Built target pcad2kicadpcb
[ 49%] Built target 3d-viewer
[ 50%] Built target pcb_calculator_kiface
[ 52%] Built target pnsrouter
[ 52%] Built target kicad
[ 52%] Built target pcb_calculator
[ 54%] Built target pl_editor_kiface
[ 54%] Built target pl_editor
Linking CXX shared module _cvpcb.kiface
[ 57%] Built target gerbview_kiface
[ 57%] Built target gerbview
[ 57%] [ 57%] Swig source
Generating pcbnew_wrap.cxx, pcbnew.py
[ 57%] Generating pcbnew_wrap.cxx, pcbnew.py
cvpcb\CMakeFiles\cvpcb_kiface.dir\build.make:816: recipe for target 'cvpcb/_cvpcb.kiface' failed
CMakeFiles\Makefile2:780: recipe for target 'cvpcb/CMakeFiles/cvpcb_kiface.dir/all' failed
[ 66%] Built target eeschema_kiface
swig_import_helper fixed for C:/kicad-winbuilder-3.4/build/Release/pcbnew/pcbnew.py
swig_import_helper fixed for C:/kicad-winbuilder-3.4/build/Release/pcbnew/pcbnew.py
Scanning dependencies of target pcbnew_kiface
Scanning dependencies of target _pcbnew
[ 66%] Building CXX object pcbnew/CMakeFiles/pcbnew_kiface.dir/pcbnew_wrap.cxx.obj
[ 66%] Building CXX object pcbnew/CMakeFiles/_pcbnew.dir/scripting/pcbnewPYTHON_wrap.cxx.obj
Linking CXX shared module _pcbnew.kiface
Linking CXX shared module _pcbnew.pyd
[ 81%] Built target pcbnew_kiface
[ 96%] Built target _pcbnew
Makefile:115: recipe for target 'all' failed

******************
File: make_Release_cache_stdout.log
*****************
Running CMake to regenerate build system...
-- Check for installed OpenGL -- found
-- Found Glew: C:/kicad-winbuilder-3.4/src/glew-cmake/lib/libglew32.dll.a
-- Check for installed GLEW -- found
-- Check for installed Cairo -- found
-- Check for installed Python Interpreter -- found
-- Python module install path: Lib/site-packages
-- wxPython version 3.0 found.
-- Bazaar version control system version 2.6b1 found.
-- Kicad Bazaar build version: (2015-04-30 BZR 5634)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- WARNING: Doxyge...

Read more...

m (easyw) wrote :

I can confirm that after version 5631 I get the following error in building (win 8 64bit):

..\3d-viewer\lib3d-viewer.a(CImage.cpp.obj):CImage.cpp:(.text+0x1a6): undefined reference to `omp_get_num_threads'
..\3d-viewer\lib3d-viewer.a(CImage.cpp.obj):CImage.cpp:(.text+0x1ad): undefined reference to `omp_get_thread_num'
..\3d-viewer\lib3d-viewer.a(CImage.cpp.obj):CImage.cpp:(.text+0x62c): undefined reference to `GOMP_parallel_start'
..\3d-viewer\lib3d-viewer.a(CImage.cpp.obj):CImage.cpp:(.text+0x639): undefined reference to `GOMP_parallel_end'
c:/kw34s/env/mingw-w64/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: ..\3d-viewer\lib3d-viewer.a(CImage.cpp.obj): bad reloc address 0x0 in section `.rdata'
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [cvpcb/_cvpcb.kiface] Error 1
mingw32-make[1]: *** [cvpcb/CMakeFiles/cvpcb_kiface.dir/all] Error 2

I rtied also a fresh build with the same prob...

thank you
Maurice

m (easyw) wrote :

Hi,
I searched for the error and I found
http://stackoverflow.com/questions/9685377/undefined-reference-to-omp-get-max-threads

so I tried to add to the .cmake file this build option
set( KOPT ${KOPT} -fopenmp )

and then I did a clean rebuild and I got this error:
mingw32-make[2]: *** No rule to make target 'C:/kw34m/kicad/bin/libglew32.dll', needed by 'cvpcb/_cvpcb.kiface'. Stop.
mingw32-make[1]: *** [cvpcb/CMakeFiles/cvpcb_kiface.dir/all] Error 2

I attached the full make_Release_stderr.log

hoping this could help to find the solution to reactivate the kicad win building chain

thank you
Maurice

m (easyw) wrote :

hi to all
with the rev 5646 the fresh building is fine
http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/revision/5646

thank you :)

KiCad-Winbuilder has moved to GitHub. Please see https://launchpad.net/kicad-winbuilder for more information.

I'm invalidating all bugs on Launchpad as they obviously apply to old versions of the product.

Changed in kicad-winbuilder:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers