Cmake error: file COPY cannot find "C:/ki/kicad/bin/pylib/_pcbnew.pyd" during build on Windows 7 64 bit

Bug #1443151 reported by swulf on 2015-04-12
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
kicad-winbuilder
Undecided
Unassigned

Bug Description

Filing a new bug on this because a previous report claims a fix has been released and yet recent attempts to build still fail.

While building Kicad from kicad-winbuilder-3.4-3 on Windows 7 64 bit, the build process inevitably fails with the error:

CMake Error at KiCadWinbuilder.cmake:1038 (file):
  file COPY cannot find "C:/ki/kicad/bin/pylib/_pcbnew.pyd".

Rob Gilliom (rgilliom) wrote :

It may be that the build is temporarily "broken". I've seen this happen at times and last for a couple days. It may have nothing to do with Winbuilder. Give it a couple days and see. My machine also gives the same error.

rob

Rob Gilliom (rgilliom) wrote :

I just was able to do a clean build of 5596 on a Win 7, Pro, x64 machine. I don't know if it was necessary, but I deleted the Kicad folder and the build folder before running make.

It took two tries, but I got a good build.

Good luck!

Sourcerer (pg-futureware) wrote :

I have reproduced this problem twice with Winbuilder 3.4-2 in Win XP

Stephen Eaton (seaton) wrote :

Also confirm this on Win7 x64.

What I'm also seeing just prior to this is the boost library is failing

[ 0%] Performing download step (download, verify and extract) for 'boost'
-- downloading...
     src='http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54
_0.tar.bz2'
     dst='T:/kicad/src/kicad/.downloads-by-cmake/boost_1_54_0.tar.bz2'
     timeout='1200 seconds'
-- downloading... done
-- verifying file...
     file='T:/kicad/src/kicad/.downloads-by-cmake/boost_1_54_0.tar.bz2'
-- verifying file... done
-- extracting...
     src='T:/kicad/src/kicad/.downloads-by-cmake/boost_1_54_0.tar.bz2'
     dst='T:/kicad/src/kicad/.downloads-by-cmake/boost_1_54_0/src/boost'
-- extracting... [tar xfz]
-- extracting... [error clean up]
CMakeFiles\boost.dir\build.make:87: recipe for target 'T:/kicad/src/kicad/.downl
oads-by-cmake/boost_1_54_0/src/boost-stamp/boost-download' failed
CMakeFiles\Makefile2:62: recipe for target 'CMakeFiles/boost.dir/all' failed
Makefile:115: recipe for target 'all' failed
-- Installing KiCad locally. Use RunKiCad.bat to run this version
CMake Error at KiCadWinbuilder.cmake:1038 (file):
  file COPY cannot find "T:/kicad/kicad/bin/pylib/_pcbnew.pyd".

Press any key to continue . . .

Another confirmation Windows 7 x64:

[ 34%] Completed 'openssl'
[ 34%] Built target openssl
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 34%] [ 34%] Performing update step for 'boost'
creating 'boost scratch repo' specifically for boost to track boost patches
[ 34%] adding pristine boost files to 'boost scratch repo'
CMakeFiles\boost.dir\build.make:151: recipe for target 'C:/Users/johnsond23/Desk
top/Installers/kicad-winbuilder-3.4-3/src/kicad/.downloads-by-cmake/boost_1_54_0
/src/boost-stamp/boost-bzr_add_boost' failed
CMakeFiles\Makefile2:62: recipe for target 'CMakeFiles/boost.dir/all' failed
Makefile:115: recipe for target 'all' failed
-- Installing KiCad locally. Use RunKiCad.bat to run this version
CMake Error at KiCadWinbuilder.cmake:1038 (file):
  file COPY cannot find
  "C:/Users/johnsond23/Desktop/Installers/kicad-winbuilder-3.4-3/kicad/bin/pylib
/_pcbnew.pyd".

Press any key to continue . . .
C:\Users\johnsond23\Desktop\Installers\kicad-winbuilder-3.4-3>

I noticed this message:

C:\Users\johnsond23\Desktop\Installers\kicad-winbuilder-3.4-3>CALL make.bat
-- KiCad-Winbuilder V3.4
-- Parallel build using 7 Processors
CMake Warning at KiCadWinbuilder.cmake:180 (message):
  Your install path maybe too long to be able to successfully build KiCad.
  Try re-installing to a root directory if the build fails!

Ran it again, from a directory closer to root C:/kicad-winbuilder-3.4-3 (slightly different result with boost):

[ 31%] No install step for 'boost'
[ 31%] Completed 'boost'
[ 31%] Built target boost
Makefile:115: recipe for target 'all' failed
-- Installing KiCad locally. Use RunKiCad.bat to run this version
CMake Error at KiCadWinbuilder.cmake:1038 (file):
  file COPY cannot find
  "C:/kicad-winbuilder-3.4-3/kicad/bin/pylib/_pcbnew.pyd".

Press any key to continue . . .
C:\kicad-winbuilder-3.4-3>

Chase Rayfield (cusbrar2) wrote :

@Daniel Johnson I build kicad in a C:\kicad folder I wouldn't be supprised if C:\kicad-winbuilder-3.4-3 is still too long.

One thing that would really help is the ability to specify a revision to the build script I have tried editing the cmake file to revert to a commit I want but it keep getting reset to the the latest revision somewhere before the build starts.

Andy Tallack (artech-a) wrote :

Hi

I am having same error: Windows 7 64-bit. Downloaded version of winbuild yesterday.

[ 63%] [ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/viewl
bs.cpp.obj
Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/netlist_exporters/n
tlist_exporter.cpp.obj
[ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/netlist_expo
ters/netlist_exporter_cadstar.cpp.obj
[ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/netlist_expo
ters/netlist_exporter_generic.cpp.obj
[ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/netlist_expo
ters/netlist_exporter_kicad.cpp.obj
[ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/netlist_expo
ters/netlist_exporter_orcadpcb2.cpp.obj
[ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/netlist_expo
ters/netlist_exporter_pspice.cpp.obj
[ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/__/common/di
logs/dialog_page_settings.cpp.obj
[ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/__/common/ba
e_screen.cpp.obj
[ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/__/common/ed
_text.cpp.obj
[ 63%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/__/common/cl
ss_page_info.cpp.obj
[ 64%] Building CXX object eeschema/CMakeFiles/eeschema_kiface.dir/__/common/ba
e_units.cpp.obj
Linking CXX shared module _eeschema.kiface
[ 64%] Built target eeschema_kiface
Makefile:115: recipe for target 'all' failed
-- Installing KiCad locally. Use RunKiCad.bat to run this version
CMake Error at KiCadWinbuilder.cmake:1038 (file):
  file COPY cannot find "C:/Kicad/kicad/bin/pylib/_pcbnew.pyd".

Press any key to continue . . .
C:\Kicad>

I've attached a zip of all log files from C:\Kicad\logs\ - I'm not certain which of these are relevant or not.

Thanks
Andrew

SethuV (sethuv) wrote :

Getting similar error in Windows 7 64-bit for KiCad revision: 5670, does there a way to downgrade KiCad version and build?

Logs shared here

C:\kicad-winbuilder-3.4>make.bat
-- KiCad-Winbuilder V3.4
-- Parallel build using 7 Processors
-- Build type: Release
-- Checking for environment problems
-- Checking for installed Bazaar
-- Checking for wxPython
-- Found wxPython
-- Downloading Latest Library Archive...
-- Checking for KiCad Documentation latest source
-- KiCad Documentation is up-to-date.
-- Checking for BZIP2
-- Checking for GLEW
-- Found GLEW
-- Checking for Cairo
-- Found Cairo
-- Checking for KiCad latest source code
-- Updating KiCad source code from bazaar head
-- Cleaning PCBNEW Python files to ensure good build...
-- Using KiCad Options:
-- -DKICAD_SCRIPTING=ON
-- -DKICAD_SCRIPTING_MODULES=ON
-- -DKICAD_SCRIPTING_WXPYTHON=ON
-- -DPYTHON_ROOT_DIR=C:/kicad-winbuilder-3.4/env/python
-- -DBUILD_GITHUB_PLUGIN=ON
-- Building Release version of KiCad revision: 5670

[ 0%] [ 0%] [ 0%] [ 0%] [ 0%] [ 0%] Built target fp_lib_table_lexer_source_files
Performing download step (download, verify and extract) for 'boost'
Built target netlist_lexer_source_files
Generating headers containing GLSL source code
Built target page_layout_lexer_source_files
Built target pcb_lexer_source_files
-- downloading...
     src='http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2'
     dst='C:/kicad-winbuilder-3.4/src/kicad/.downloads-by-cmake/boost_1_54_0.tar.bz2'
     timeout='1200 seconds'
[ 30%] [ 30%] [ 30%] [ 31%] Built target bitmaps
[ 31%] [ 31%] Built target shader_headers
Built target pcb_plot_lexer_source_files
Built target openssl
Built target cmp_library_lexer_source_files
CMakeFiles\boost.dir\build.make:87: recipe for target 'C:/kicad-winbuilder-3.4/src/kicad/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-downlo
ad' failed
CMakeFiles\Makefile2:62: recipe for target 'CMakeFiles/boost.dir/all' failed
Built target specctra_lexer_source_files
[ 32%] [ 32%] [ 33%] [ 34%] Built target lib_dxf
Built target field_template_lexer_source_files
Built target dialog_bom_cfg_lexer_source_files
Built target potrace
[ 34%] Built target idf3
Makefile:115: recipe for target 'all' failed
-- Installing KiCad locally. Use RunKiCad.bat to run this version
CMake Error at KiCadWinbuilder.cmake:1038 (file):
  file COPY cannot find
  "C:/kicad-winbuilder-3.4/kicad/bin/pylib/_pcbnew.pyd".

Press any key to continue . . .

Andy Tallack (artech-a) wrote :

I've seen from the main KiCad project that this bug has been fixed, but not yet released it seems. Refer to:
https://bugs.launchpad.net/kicad/+bug/1452726

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

Bug attachments