Bug 379454 - Ninja fails for target kdevcmakemanager: cmListFileLexer.c:1842:40: error: implicit
Summary: Ninja fails for target kdevcmakemanager: cmListFileLexer.c:1842:40: error: im...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-02 22:26 UTC by R030t1
Modified: 2017-05-02 23:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.1.1


Attachments
log-C_KDE_.txt, zipped. (369.68 KB, application/x-zip-compressed)
2017-05-02 22:27 UTC, R030t1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R030t1 2017-05-02 22:26:53 UTC
[146/719] Automatic moc for target kdevcmakemanager
Generating moc source moc_cmakeimportjsonjob.cpp

Generating moc source cmakemanager.moc

Generating moc source kdevcmakemanager_automoc.dir/moc_cmakemanager_IJR32UUTKORE4G.cpp

Generating moc source kdevcmakemanager_automoc.dir/moc_cmakeparsejob_Y5ETSAPAHSCGMZ.cpp

Generating moc source kdevcmakemanager_automoc.dir/moc_cmakecachedele_CLBFGZRMUC2KYS.cpp

Generating moc source kdevcmakemanager_automoc.dir/moc_cmakecachemode_DFSVFYI53WLYVC.cpp

Generating moc source kdevcmakemanager_automoc.dir/moc_cmakepreferenc_Y4HHOCCGLJUP73.cpp

Generating moc source kdevcmakemanager_automoc.dir/moc_ctestfindjob_H24WS6OQYECC66.cpp

Generating moc source kdevcmakemanager_automoc.dir/moc_ctestrunjob_QMDOX5FHG25KL4.cpp

Generating moc source kdevcmakemanager_automoc.dir/moc_qttestdelegate_LNPC4G7WHT5QFL.cpp

Generating moc compilation kdevcmakemanager_automoc.cpp

ninja: build stopped: subcommand failed.
Craft encountered an error: make cmd: ninja
Action: compile for extragear/kdevelop FAILED
*** Craft all failed: all of extragear/kdevelop failed after 0:00:40 ***
fatal error: package extragear/kdevelop all failed
Comment 1 R030t1 2017-05-02 22:27:31 UTC
Created attachment 105316 [details]
log-C_KDE_.txt, zipped.
Comment 2 Kevin Funk 2017-05-02 22:30:25 UTC
Real error:
  2017-05-02 17:23:38,642 INFO cmListFileLexer.c:1842:40: error: implicit declaration of function 'isatty' [-Werror=implicit-function-declaration]
Comment 3 Kevin Funk 2017-05-02 22:33:27 UTC
More context:
2017-05-02 17:18:27,695 INFO FAILED: projectmanagers/cmake/CMakeFiles/kdevcmakecommon.dir/parser/cmListFileLexer.c.obj
2017-05-02 17:18:27,696 INFO R:\mingw64\bin\gcc.exe  -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050400 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DQT_WIDGETS_LIB -DQT_XML_LIB -DTRANSLATION_DOMAIN=\"kdevcmake\" -DUNICODE -DWIN32_LEAN_AND_MEAN -DWINVER=0x0600 -DYY_NO_UNISTD_H -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -D_WIN32_IE=0x0600 -D_WIN32_WINNT=0x0600 -Dkdevcmakecommon_EXPORTS -Iprojectmanagers/cmake -IQ:/kdevelop/projectmanagers/cmake -IQ:/kdevelop -I. -IQ:/kdevelop/projectmanagers/cmake/parser -isystem R:/include/KF5/KTextEditor -isystem R:/include/KF5 -isystem R:/include/KF5/KParts -isystem R:/include/KF5/KIOWidgets -isystem R:/include/KF5/KIOCore -isystem R:/include/KF5/KCoreAddons -isystem R:/include/qt5 -isystem R:/include/qt5/QtCore -isystem R:/./mkspecs/win32-g++ -isystem R:/include/KF5/KService -isystem R:/include/KF5/KConfigCore -isystem R:/include/KF5/KJobWidgets -isystem R:/include/qt5/QtWidgets -isystem R:/include/qt5/QtGui -isystem R:/include/qt5/QtNetwork -isystem R:/include/KF5/KCompletion -isystem R:/include/KF5/KWidgetsAddons -isystem R:/include/KF5/KXmlGui -isystem R:/include/qt5/QtDBus -isystem R:/include/qt5/QtXml -isystem R:/include/KF5/KConfigWidgets -isystem R:/include/KF5/KCodecs -isystem R:/include/KF5/KConfigGui -isystem R:/include/KF5/KAuth -isystem R:/include/KF5/KTextWidgets -isystem R:/include/KF5/SonnetUi -isystem R:/include/KF5/KI18n -isystem R:/include/kdevplatform -isystem R:/include -isystem R:/include/KF5/KItemModels -isystem R:/include/KF5/ThreadWeaver -std=iso9899:1990 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration -O2 -g -DNDEBUG -fvisibility=hidden -MD -MT projectmanagers/cmake/CMakeFiles/kdevcmakecommon.dir/parser/cmListFileLexer.c.obj -MF projectmanagers\cmake\CMakeFiles\kdevcmakecommon.dir\parser\cmListFileLexer.c.obj.d -o projectmanagers/cmake/CMakeFiles/kdevcmakecommon.dir/parser/cmListFileLexer.c.obj   -c Q:\kdevelop\projectmanagers\cmake\parser\cmListFileLexer.c
2017-05-02 17:18:27,697 INFO cmListFileLexer.in.l: In function 'cmListFileLexer_yylex':
2017-05-02 17:18:27,697 INFO 
2017-05-02 17:18:27,697 INFO cmListFileLexer.in.l:162:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
2017-05-02 17:18:27,697 INFO 
2017-05-02 17:18:27,697 INFO cmListFileLexer.c: In function 'cmListFileLexer_yy_init_buffer':
2017-05-02 17:18:27,697 INFO 
2017-05-02 17:18:27,697 INFO cmListFileLexer.c:1842:40: error: implicit declaration of function 'isatty' [-Werror=implicit-function-declaration]
2017-05-02 17:18:27,698 INFO 
2017-05-02 17:18:27,698 INFO cmListFileLexer.in.l: At top level:
2017-05-02 17:18:27,698 INFO 
2017-05-02 17:18:27,698 INFO cmListFileLexer.c:1578:17: warning: 'yyunput' defined but not used [-Wunused-function]
2017-05-02 17:18:27,698 INFO 
2017-05-02 17:18:27,698 INFO cmListFileLexer.c:1626:16: warning: 'input' defined but not used [-Wunused-function]
2017-05-02 17:18:27,698 INFO 
2017-05-02 17:18:27,698 INFO cc1.exe: some warnings being treated as errors
Comment 4 Kevin Funk 2017-05-02 22:40:50 UTC
Git commit 6f26b8ea98b86819d1d69f7002290285f1d1c853 by Kevin Funk.
Committed on 02/05/2017 at 22:38.
Pushed by kfunk into branch '5.1'.

Fix build for MinGW

Untested, sorry, but it likely fixes the issue from the bug report
FIXED-IN: 5.1.1

M  +1    -1    projectmanagers/cmake/CMakeLists.txt

https://commits.kde.org/kdevelop/6f26b8ea98b86819d1d69f7002290285f1d1c853
Comment 5 Kevin Funk 2017-05-02 22:41:32 UTC
Please try again & report back
Comment 6 R030t1 2017-05-02 23:13:20 UTC
Issue as reported is resolved, there are still more.