Bug 344412 - Another build fails - different system - "ui_onlinejobmessagesview.h: No such file or directory"
Summary: Another build fails - different system - "ui_onlinejobmessagesview.h: No such...
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Mint (Ubuntu based) Linux
: NOR major
Target Milestone: ---
Assignee: Christian David
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 22:57 UTC by allan
Modified: 2017-07-01 11:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description allan 2015-02-20 22:57:48 UTC
to follow

Reproducible: Always
Comment 1 allan 2015-02-21 01:09:53 UTC
After previous problem, moved to different PC.

kmymoney/kmymoney/widgets/onlinejobmessagesview.cpp:22:38: fatal error: ui_onlinejobmessagesview.h: No such file or directory
 #include "ui_onlinejobmessagesview.h"

Others too.
Comment 2 Christian David 2015-02-21 15:17:36 UTC
Hi Allan, can you post the hole list of errors?

According to Jenkins [1] and on my system the build is okay - but I use multiple threads to compile. I rechecked the CMakeLists.txt for widgets and found a race condition.

Work around: compile with multiple threads, if that does not work at the first try, hit the compile button several times.

[1] http://build.kde.org/job/kmymoney_master/
Comment 3 allan 2015-02-21 17:42:43 UTC
(In reply to Christian David from comment #2)
> Hi Allan, can you post the hole list of errors?
> 
When my first PC threw a tantrum when building, I spent some time debugging,
and trying other builds, with no improvement, eventually I decided there must be
some corruption on the PC.  So I copied my live work to a second PC and breathed
a sigh of relief and with a fresh clone started again.

When that also failed, I think panic started to set in.

The first error, the 'missing' ui file, I realised was because uic hadn't yet produced it
so just commented it out temporarily.  There were a couple of follow -on problems
which at first I thought were because of the difference between onlinejobmessagesview
and onlinejobmessageview.

Anyway, to cut a long sorry story short, I cannot reproduce these problems today.
I also wiped my first PC and all now is sweetness and light.

I'll close this bug  Sorry for the noise.
Comment 4 Christian David 2015-02-21 17:58:51 UTC
Git commit cb326f89ed5aa221c79f9db4b54579f6eea4c17f by Christian Dávid.
Committed on 21/02/2015 at 17:45.
Pushed by christiand into branch 'master'.

Moved processing of .ui file to correct target

onlinejobmessagesview.ui was in the wrong target. This caused issues if
the build was not done in parallel.

M  +4    -2    kmymoney/widgets/CMakeLists.txt

http://commits.kde.org/kmymoney/cb326f89ed5aa221c79f9db4b54579f6eea4c17f
Comment 5 Christian David 2015-02-21 18:25:33 UTC
(In reply to allan from comment #3)
> Anyway, to cut a long sorry story short, I cannot reproduce these problems
> today.
> I also wiped my first PC and all now is sweetness and light.
> 
> I'll close this bug  Sorry for the noise.

Actually this bug was valid, it was not your fault! I could reproduce it by calling "make" instead of "make -j 4".