Build fails intermittently requiring a complete rebuild; Best IDE for kdevelop

Miljenko Jakovljevic micky686 at gmail.com
Tue Mar 20 20:04:24 UTC 2018


Hi,

I.)
I have found some unusual build behavior in kdevelop.

This creates a build successfuly:
(1)
* cmake CMakeLists.txt*
*make*

A repeated *make* command recognizes that everything was built and does not
start the build process again.

But running *cmake again, and then make fails with this message about
undefined 'main' and '__start' symbols - *listing is at the end.

Using *make clean* and starting from (1)  works, but it requires a rebuild
- which is time consuming.

Is this a *cmake* issue or has it maybe something to do with how the
kdevelop code base is structured: using plugins for different application
parts*? *Is it somehow possible
to work around it
*?*


*II.)The same thing happens in the qtcreator IDE: it always tries to build
the project from scratch. *I have yet to find a C++ IDE with good support
for importing a cmake project.
Using kdevelop to develop kdevelop seems not to work on my system, because
the system recognizes that there is already a running instance, when one
tries to execute the modified kdevelop instance from the IDE.


Best regards!

*Mili*






























































*[ 33%] Linking CXX executable
test_vcsannotation/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o:
In function `_start':(.text+0x20): undefined reference to `main'collect2:
error: ld returned 1 exit
statuskdevplatform/vcs/tests/CMakeFiles/test_vcslocation.dir/build.make:94:
recipe for target 'kdevplatform/vcs/tests/test_vcslocation' failedmake[2]:
*** [kdevplatform/vcs/tests/test_vcslocation] Error
1CMakeFiles/Makefile2:7389: recipe for target
'kdevplatform/vcs/tests/CMakeFiles/test_vcslocation.dir/all' failedmake[1]:
*** [kdevplatform/vcs/tests/CMakeFiles/test_vcslocation.dir/all] Error
2make[1]: *** Waiting for unfinished
jobs..../usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o:
In function `_start':(.text+0x20): undefined reference to `main'collect2:
error: ld returned 1 exit
statuskdevplatform/vcs/tests/CMakeFiles/test_vcsstatusinfo.dir/build.make:94:
recipe for target 'kdevplatform/vcs/tests/test_vcsstatusinfo'
failedmake[2]: *** [kdevplatform/vcs/tests/test_vcsstatusinfo] Error
1CMakeFiles/Makefile2:7469: recipe for target
'kdevplatform/vcs/tests/CMakeFiles/test_vcsstatusinfo.dir/all'
failedmake[1]: ***
[kdevplatform/vcs/tests/CMakeFiles/test_vcsstatusinfo.dir/all] Error
2/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In
function `_start':(.text+0x20): undefined reference to `main'collect2:
error: ld returned 1 exit
status/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In
function `_start':(.text+0x20): undefined reference to `main'collect2:
error: ld returned 1 exit
statuskdevplatform/vcs/tests/CMakeFiles/test_vcsevent.dir/build.make:94:
recipe for target 'kdevplatform/vcs/tests/test_vcsevent' failedmake[2]: ***
[kdevplatform/vcs/tests/test_vcsevent] Error 1CMakeFiles/Makefile2:7629:
recipe for target 'kdevplatform/vcs/tests/CMakeFiles/test_vcsevent.dir/all'
failedmake[1]: ***
[kdevplatform/vcs/tests/CMakeFiles/test_vcsevent.dir/all] Error
2kdevplatform/vcs/tests/CMakeFiles/test_vcsannotationline.dir/build.make:94:
recipe for target 'kdevplatform/vcs/tests/test_vcsannotationline'
failedmake[2]: *** [kdevplatform/vcs/tests/test_vcsannotationline] Error
1CMakeFiles/Makefile2:7429: recipe for target
'kdevplatform/vcs/tests/CMakeFiles/test_vcsannotationline.dir/all'
failedmake[1]: ***
[kdevplatform/vcs/tests/CMakeFiles/test_vcsannotationline.dir/all] Error
2/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In
function `_start':(.text+0x20): undefined reference to `main'collect2:
error: ld returned 1 exit
statuskdevplatform/vcs/tests/CMakeFiles/test_vcsdiff.dir/build.make:94:
recipe for target 'kdevplatform/vcs/tests/test_vcsdiff' failedmake[2]: ***
[kdevplatform/vcs/tests/test_vcsdiff] Error 1CMakeFiles/Makefile2:7589:
recipe for target 'kdevplatform/vcs/tests/CMakeFiles/test_vcsdiff.dir/all'
failedmake[1]: *** [kdevplatform/vcs/tests/CMakeFiles/test_vcsdiff.dir/all]
Error 2/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o:
In function `_start':(.text+0x20): undefined reference to `main'collect2:
error: ld returned 1 exit
statuskdevplatform/vcs/tests/CMakeFiles/test_vcsrevision.dir/build.make:94:
recipe for target 'kdevplatform/vcs/tests/test_vcsrevision' failedmake[2]:
*** [kdevplatform/vcs/tests/test_vcsrevision] Error
1CMakeFiles/Makefile2:7509: recipe for target
'kdevplatform/vcs/tests/CMakeFiles/test_vcsrevision.dir/all' failedmake[1]:
*** [kdevplatform/vcs/tests/CMakeFiles/test_vcsrevision.dir/all] Error
2/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In
function `_start':(.text+0x20): undefined reference to `main'collect2:
error: ld returned 1 exit
statuskdevplatform/vcs/tests/CMakeFiles/test_vcsitemevent.dir/build.make:94:
recipe for target 'kdevplatform/vcs/tests/test_vcsitemevent' failedmake[2]:
*** [kdevplatform/vcs/tests/test_vcsitemevent] Error
1CMakeFiles/Makefile2:7549: recipe for target
'kdevplatform/vcs/tests/CMakeFiles/test_vcsitemevent.dir/all'
failedmake[1]: ***
[kdevplatform/vcs/tests/CMakeFiles/test_vcsitemevent.dir/all] Error
2/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In
function `_start':(.text+0x20): undefined reference to `main'collect2:
error: ld returned 1 exit
statuskdevplatform/vcs/tests/CMakeFiles/test_vcsannotation.dir/build.make:94:
recipe for target 'kdevplatform/vcs/tests/test_vcsannotation'
failedmake[2]: *** [kdevplatform/vcs/tests/test_vcsannotation] Error
1CMakeFiles/Makefile2:7669: recipe for target
'kdevplatform/vcs/tests/CMakeFiles/test_vcsannotation.dir/all'
failedmake[1]: ***
[kdevplatform/vcs/tests/CMakeFiles/test_vcsannotation.dir/all] Error
2Makefile:140: recipe for target 'all' failedmake: *** [all] Error 2*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180320/00fa4ca4/attachment-0001.html>


More information about the KDevelop-devel mailing list