Bug 338373 - KDevelop doesn't build more than one target in the Build Set
Summary: KDevelop doesn't build more than one target in the Build Set
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-19 11:58 UTC by Leandro Santiago da Silva
Modified: 2018-12-21 10:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Simple project which reproduces the bug (9.09 KB, application/bzip2)
2014-08-20 12:59 UTC, Leandro Santiago da Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leandro Santiago da Silva 2014-08-19 11:58:05 UTC
After upgragind KDevelop to the lastest git master, if I put more than one target in the build set, when I try to compile them (F8), I get an error, which happens in the last added one:

path/to/the/last/added/target> make
*** Aborted ***

And no item is built.

I'm using CMake and everything works fine if I have only one item in the build set.
Comment 1 Leandro Santiago da Silva 2014-08-20 12:59:09 UTC
Created attachment 88332 [details]
Simple project which reproduces the bug

Open this project in KDevelop and add lala1 and lala2 targets to the build set. Try to compile the whole build set. The bug then happens.
Comment 2 Milian Wolff 2014-08-24 11:35:53 UTC
odd that works fine for me with the project you provided. aborted sounds as if make crashed - could you check dmesg if that is the case?
Comment 3 Leandro Santiago da Silva 2014-08-27 01:16:43 UTC
(In reply to Milian Wolff from comment #2)
> odd that works fine for me with the project you provided. aborted sounds as
> if make crashed - could you check dmesg if that is the case?

Sorry for the delay...

I compiled kdevelop again in a new kubuntu 14.04 installation (my previous try was in kubuntu 12.04) and the problem persists. The error is the same.

There's no indication of abortion on make. No message in dmesg.

The only output I have in KDevelop is, when I press F8 is:

execute composite () 
QIODevice::setTextModeEnabled: The device is not open
QIODevice::setTextModeEnabled: The device is not open
kdevelop(18153)/kdevplatform (shell) KDevelop::RunController::jobDestroyed: job destroyed without emitting finished signal!
Comment 4 Kevin Funk 2017-03-19 18:25:40 UTC
@Leandro: Could you check again? Maybe with the latest KDevelop AppImage? 

See: https://www.kdevelop.org/download
Comment 5 Mykola 2018-12-21 10:41:26 UTC
Hi everyone,

I confirm that this issue can happen with Ninja builder tool

I did investigation and found following in ninjabuilder.cpp

///Running the same builder twice may result in serious problems,
///so kill jobs already running on the same project

This means that only one target can be build at the moment

I think there should be readable feedback/output about that or build only selected target in Build Set