Comment 37 for bug 1752150

Revision history for this message
Brian Piccioni (br0an) wrote : RE: [Bug 1752150] Re: Build from source MSYS2 the Easy Way Fails

I assume this is addressed to me.

I had tried reinstalling msys2 from scratch in order to build Kicad numerous times according the "easy way" instructions and another tool winmakekicad. I had also built OCE from scratch.

I had (I thought) previously tried to build Kicad the not easy way and failed previously.

Reinstalling msys2 takes time and has the potential for screwing up other things I am doing. Because I figured the most recent "not easy way" build instructions would fail I ran them without reinstalling Msys2 fresh. This make for release and debug versions worked.

As such, it may be that the history of my Msys installation or some other thing like having built OCE may have enabled the build to work.

I just thought I'd mention it in case it mattered.

So, long story short my Msys2 is a relatively recent (past few weeks version), updated with pacman -Syuu a few times and not a fresh, virgin install.

Does that make sense?

Brian

-----Original Message-----
From: <email address hidden> <email address hidden> On Behalf Of Paulo Alcobia
Sent: March 24, 2018 8:01 AM
To: <email address hidden>
Subject: [Bug 1752150] Re: Build from source MSYS2 the Easy Way Fails

That is great brain what is the version of the "not new Msys2" please?

regards,
Paulo

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/1752150

Title:
  Build from source MSYS2 the Easy Way Fails

Status in KiCad:
  Fix Committed

Bug description:
  As per the title, after numerous attempts, this fails on Windows 10.

  I completely installed Msys2 and made sure there were no other
  instances.

  $ makepkg-mingw -is

  runs for several minutes and fails with

  "CMake Error at CMakeLists.txt:577 (find_package):
    By not providing "FindOCE.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "OCE", but
    CMake did not find one.

    Could not find a package configuration file provided by "OCE" (requested
    version 0.16) with any of the following names:

      OCEConfig.cmake
      oce-config.cmake

    Add the installation prefix of "OCE" to CMAKE_PREFIX_PATH or set "OCE_DIR"
    to a directory containing one of the above files. If "OCE" provides a
    separate development package or SDK, be sure it has been installed."

  Initially these files were not in my computer. I went to the directory
  mingw-w64-oce
  and there were only 3 files: oce-i686.install, oce-x86_64.install, and PKGBUILD. The only one I could figure out what to do with was PKGBUILD, so I ran

  $ makepkg-mingw -is

  within mingw-w64.

  This ran for several hours. It gave me errors

  "-- Configuring done
  CMake Warning in adm/cmake/TKGeomAlgo/CMakeLists.txt:
    The object file directory

      C:/MinGW/home/BrianP/src/MINGW-packages/mingw-w64-oce/src/oce-
  OCE-0.17.2/build-
  x86_64-w64-mingw32/adm/cmake/TKGeomAlgo/CMakeFiles/TKGeomAlgo.dir/

    has 145 characters. The maximum full path to an object file is 250
    characters (see CMAKE_OBJECT_PATH_MAX). Object file

  __/__/__/drv/Geom2dInt/Geom2dInt_SequenceNodeOfSeqPCOfPCLocFOfTheLocateExtPCOfTheProjPCurOfGInter_0.cxx.obj

    cannot be safely placed under this directory. The build may not work
    correctly.

  CMake Warning in adm/cmake/TKSTEPBase/CMakeLists.txt:
    The object file directory

      C:/MinGW/home/BrianP/src/MINGW-packages/mingw-w64-oce/src/oce-
  OCE-0.17.2/build-
  x86_64-w64-mingw32/adm/cmake/TKSTEPBase/CMakeFiles/TKSTEPBase.dir/

    has 145 characters. The maximum full path to an object file is 250
    characters (see CMAKE_OBJECT_PATH_MAX). Object file

  __/__/__/src/RWStepGeom/RWStepGeom_RWGeometricRepresentationContextAndParametricRepresentationContext.cxx.obj

    cannot be safely placed under this directory. The build may not work
    correctly.

  -- Generating done
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS"

  Sure enough the build of OCE failed at 78%
  "[ 78%] Built target TKSTEPBase
  make: *** [Makefile:163: all] Error 2
  ==> ERROR: A failure occurred in build().
      Aborting..."

  However, I found OCE-Config.cmake so set

  $ set OCE_DIR=./BrianP/src/MINGW-packages/mingw-w64-oce/src/oce-
  OCE-0.17.2/build-x86_64-w64-mingw32/OCEConfig.cmake

  I tried to make Kicad again as per the instructions and got the same
  error.

  I am pretty much stuck here: I followed the instructions at
  http://docs.kicad-
  pcb.org/doxygen/md_Documentation_development_compiling.html#msys2_easy
  exactly and the make fails.

  Any advice/suggestions would be appreciated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/kicad/+bug/1752150/+subscriptions