kicad no longer building on osx

Bug #1670016 reported by xzcvczx
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
High
Unassigned

Bug Description

If you have python enabled in nightlies its no longer building on osx. this was bought up on the list prior to the commit being merged that broke it but it was ignored.

Documenting it here as noone was willing to describe the changes made in the commit so working out where the issue was is rather difficult due to the size of the cmakelists

Tags: osx
xzcvczx (xzcvczx)
Changed in kicad:
importance: Undecided → High
Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1670016] [NEW] kicad no longer building on osx

Please attach the failed build output. Maybe one of us non-osx devs can
figure out what's happening by the build error.

On 3/4/2017 10:41 AM, Simon Wells wrote:
> Public bug reported:
>
> If you have python enabled in nightlies its no longer building on osx.
> this was bought up on the list prior to the commit being merged that
> broke it but it was ignored.
>
> Documenting it here as noone was willing to describe the changes made in
> the commit so working out where the issue was is rather difficult due to
> the size of the cmakelists
>
> ** Affects: kicad
> Importance: High
> Status: New
>
> ** Changed in: kicad
> Importance: Undecided => High
>

Revision history for this message
xzcvczx (xzcvczx) wrote :

Error copying file "_pcbnew.kiface" to "_pcbnew.so".

make[2]: *** No rule to make target `/Users/simon/kicad-app/kicad/pcbnew/_pcbnew', needed by `pcbnew/CMakeFiles/ScriptingModulesPcbnewSoCopy'. Stop.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1670016] Re: kicad no longer building on osx

It appears that the dependency for the ScriptingModulesPcbnewSoCopy
target is wrong.

pcbnew/CMakeLists.txt line 728 should read

            DEPENDS pcbnew_kiface

not

            DEPENDS _pcbnew

The pcbnew_kiface target (_pcbnew.kiface gets copied to
_pcbnew.${PYMOD_EXT} at build time and installed in ${PYTHON_DEST} at
install time on windows and linux. I'm not sure what the appropriate
steps would be for osx.

To be honest this entire elseif( APPLE ) section makes no sense to me.
Why are we copying files instead of installing them on osx? I thought
osx bundles were analogous to Debian packages which has nothing to do
with running `make install`.

On 3/4/2017 3:02 PM, Simon Wells wrote:
> Error copying file "_pcbnew.kiface" to "_pcbnew.so".
>
> make[2]: *** No rule to make target `/Users/simon/kicad-
> app/kicad/pcbnew/_pcbnew', needed by
> `pcbnew/CMakeFiles/ScriptingModulesPcbnewSoCopy'. Stop.
>

Revision history for this message
xzcvczx (xzcvczx) wrote :

that is partly why i tried to get input on my changes from dick before
this was merged as i was stuck and my changes included moving to
install for most stuff

On 5 March 2017 at 09:57, Wayne Stambaugh <email address hidden> wrote:
> It appears that the dependency for the ScriptingModulesPcbnewSoCopy
> target is wrong.
>
> pcbnew/CMakeLists.txt line 728 should read
>
> DEPENDS pcbnew_kiface
>
> not
>
> DEPENDS _pcbnew
>
> The pcbnew_kiface target (_pcbnew.kiface gets copied to
> _pcbnew.${PYMOD_EXT} at build time and installed in ${PYTHON_DEST} at
> install time on windows and linux. I'm not sure what the appropriate
> steps would be for osx.
>
> To be honest this entire elseif( APPLE ) section makes no sense to me.
> Why are we copying files instead of installing them on osx? I thought
> osx bundles were analogous to Debian packages which has nothing to do
> with running `make install`.
>
>
> On 3/4/2017 3:02 PM, Simon Wells wrote:
>> Error copying file "_pcbnew.kiface" to "_pcbnew.so".
>>
>> make[2]: *** No rule to make target `/Users/simon/kicad-
>> app/kicad/pcbnew/_pcbnew', needed by
>> `pcbnew/CMakeFiles/ScriptingModulesPcbnewSoCopy'. Stop.
>>
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1670016
>
> Title:
> kicad no longer building on osx
>
> Status in KiCad:
> New
>
> Bug description:
> If you have python enabled in nightlies its no longer building on osx.
> this was bought up on the list prior to the commit being merged that
> broke it but it was ignored.
>
> Documenting it here as noone was willing to describe the changes made
> in the commit so working out where the issue was is rather difficult
> due to the size of the cmakelists
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1670016/+subscriptions

Revision history for this message
xzcvczx (xzcvczx) wrote :

As this still hasn't been fixed there seems to be a deeper issue here. A fix was proposed on the forum but that one also didn't work for fresh builds. Can we revert this fix until a decent solution is found as this is not it.

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Is this still an issue? Currently the CI server is able to build KiCad for OSX [1].

1. http://ci.kicad-pcb.org/job/osx-kicad-adam-head/

Changed in kicad:
status: New → Incomplete
xzcvczx (xzcvczx)
Changed in kicad:
status: Incomplete → Fix Committed
tags: added: osx
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.