← Back to team overview

kicad-developers team mailing list archive

Re: parallel builds?

 

Adam,

Try applying the attached patch.  It looks like on osx builds, boost is
not being made a dependency so the boost build is not complete before
the common library is getting built on parallel builds.  I think
Bernhard was using a patched version of boost 1.56 which he has
installed on his system so he would not have seen this problem since he
wasn't using our custom 1.54 version of boost.  If this doesn't fix it,
maybe Bernhard can take a look at it.

Wayne

On 10/21/2014 3:07 PM, Adam Wolf wrote:
> I don't get these errors when building with -j1 *after* a clean.
> 
> Adam Wolf
> 
> On Tue, Oct 21, 2014 at 1:56 PM, Bob Gustafson <bobgus@xxxxxxx
> <mailto:bobgus@xxxxxxx>> wrote:
> 
>     Do you get that error when building with -j1 ?
> 
> 
>     On 10/21/2014 01:14 PM, Adam Wolf wrote:
>>     Hi folks,
>>
>>     I'm doing a *lot* of builds prepping these nightly builds, and
>>     especially on OS X, I'm seeing a lot of issues with parallel
>>     builds, where something like this happens:
>>
>>     In file included from /Users/jenkins/remoteroot/workspace/KiCadMacBuild/kicad/common/draw_panel_gal.cpp:33:
>>     /Users/jenkins/remoteroot/workspace/KiCadMacBuild/kicad/include/view/view.h:30:10: fatal error: 'boost/unordered/unordered_map.hpp' file not found
>>     #include <boost/unordered/unordered_map.hpp>
>>
>>     I have a little logic in there where I first try to build with
>>     -j4, and if it fails, i rerun make with -j1, but that doesn't seem
>>     to help.
>>
>>     Any thoughts, folks?
>>
>>     Adam Wolf
>>     Cofounder and Engineer
>>     W&L, LLC
>>
>>
> 
> 
>     _______________________________________________
>     Mailing list: https://launchpad.net/~kicad-developers
>     Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>     <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>     Unsubscribe : https://launchpad.net/~kicad-developers
>     More help   : https://help.launchpad.net/ListHelp
> 
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 

=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2014-10-19 18:36:41 +0000
+++ CMakeLists.txt	2014-10-21 19:35:48 +0000
@@ -563,6 +563,7 @@
 KiCad developers strongly advise you to build the bundled boost library, as it is known to work with KiCad.
 Other versions may contain bugs that may result in KiCad errors." )
 else()
+    add_dependencies( lib-dependencies boost )
     include( download_boost )
 endif()
 


Follow ups

References