KDevelop crashes when importing cmake-based C++ project

barcaroller barcaroller at gmail.com
Fri May 15 20:04:02 BST 2020


I have posted this message on the KDE Bug Tracking System, and on StackOverflow, without success.

Basically, I have a simple cmake-based C++ project (of about 25 source and header files) which compiles and runs without problems ("cd build && cmake ../src && make && sudo make install"). The project has a 'src' directory which holds the topmost CMakeLists.txt file. When I run KDevelop, and choose "Open/Import Project", and then choose that CMakeLists.txt file, KDevelop starts importing the project, but crashes before the progress bar at the right bottom reaches 98%. The KDevelop output is below; I can't make sense of it. I should note that I can import that same project into 'Qt Creator' and other IDEs/SDEs without problems.

Using KDevelop 5.5.1 on Fedora 31 with KDE/Plasma and gcc/g++ 9.2.1.

========================== Start of KDevelop Output ==========================

kdevplatform.serialization: version mismatch or no version hint; expected version: 84214017
kdevplatform.serialization: "The data-repository at /home/admin/.cache/kdevduchain/kdevelop-{f0185a88-f053-48c8-8fa5-ec73a252b0a4} has to be cleared."
Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
qrc:/qml/Develop.qml:139:21: QML Heading: Binding loop detected for property "font.pointSize"
qrc:/qml/area_code.qml:87:9: QML Heading: Binding loop detected for property "font.pointSize"
qrc:/qml/area_code.qml:63:9: QML Heading: Binding loop detected for property "font.pointSize"
Running kdevelop instance (PID: 800,271) detected, making this one visible instead of starting a new one
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 9717, resource id: 24194808, major code: 40 (TranslateCoords), minor code: 0
kdevelop.plugins.git: couldn't find the git root for QUrl("file:///home/admin/svnws/trunk/raven/src")
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 10666, resource id: 24195766, major code: 40 (TranslateCoords), minor code: 0
kdevelop.plugins.python.duchain: tuple type object is not available
kdevelop.plugins.python.duchain: tuple type object is not available
kdevelop.plugins.python.duchain: tuple type object is not available
kdevelop.plugins.python.duchain: tuple type object is not available
OverflowError: Python int too large to convert to C long
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "gcc" "Using built-in specs.\nCOLLECT_GCC=/usr/bin/gcc\nOFFLOAD_TARGET_NAMES=nvptx-none\nOFFLOAD_TARGET_DEFAULT=1\nTarget: x86_64-redhat-linux\nConfigured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux\nThread model: posix\ngcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC) \nCOLLECT_GCC_OPTIONS='-std=c99' '-E' '-v' '-mtune=generic' '-march=x86-64'\n cc1obj -E -quiet -v - -mtune=generic -march=x86-64 -std=c99\ngcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: Permission denied\ncompilation terminated.\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "gcc" ("-xobjective-c", "-std=c99", "-dM", "-E", "-") "gcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: Permission denied\ncompilation terminated.\n"
OverflowError: Python int too large to convert to C long
OverflowError: Python int too large to convert to C long
OverflowError: Python int too large to convert to C long
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevplatform.language: invalid item for index 58 0 0
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "gcc" "Using built-in specs.\nCOLLECT_GCC=/usr/bin/gcc\nOFFLOAD_TARGET_NAMES=nvptx-none\nOFFLOAD_TARGET_DEFAULT=1\nTarget: x86_64-redhat-linux\nConfigured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux\nThread model: posix\ngcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC) \nCOLLECT_GCC_OPTIONS='-std=c99' '-E' '-v' '-mtune=generic' '-march=x86-64'\n cc1obj -E -quiet -v - -mtune=generic -march=x86-64 -std=c99\ngcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: Permission denied\ncompilation terminated.\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "gcc" ("-xobjective-c", "-std=c99", "-dM", "-E", "-") "gcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: Permission denied\ncompilation terminated.\n"
TypeError: can't convert complex to int
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "gcc" "Using built-in specs.\nCOLLECT_GCC=/usr/bin/gcc\nOFFLOAD_TARGET_NAMES=nvptx-none\nOFFLOAD_TARGET_DEFAULT=1\nTarget: x86_64-redhat-linux\nConfigured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux\nThread model: posix\ngcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC) \nCOLLECT_GCC_OPTIONS='-std=c99' '-E' '-v' '-mtune=generic' '-march=x86-64'\n cc1obj -E -quiet -v - -mtune=generic -march=x86-64 -std=c99\ngcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: Permission denied\ncompilation terminated.\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "gcc" ("-xobjective-c", "-std=c99", "-dM", "-E", "-") "gcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: Permission denied\ncompilation terminated.\n"
kdevelop.plugins.definesandincludes: error while fetching includes for the compiler: "gcc" "Using built-in specs.\nCOLLECT_GCC=/usr/bin/gcc\nOFFLOAD_TARGET_NAMES=nvptx-none\nOFFLOAD_TARGET_DEFAULT=1\nTarget: x86_64-redhat-linux\nConfigured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux\nThread model: posix\ngcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC) \nCOLLECT_GCC_OPTIONS='-std=c99' '-E' '-v' '-mtune=generic' '-march=x86-64'\n cc1obj -E -quiet -v - -mtune=generic -march=x86-64 -std=c99\ngcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: Permission denied\ncompilation terminated.\n"
kdevelop.plugins.definesandincludes: error while fetching defines for the compiler: "gcc" ("-xobjective-c", "-std=c99", "-dM", "-E", "-") "gcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: Permission denied\ncompilation terminated.\n"
KCrash: Application 'kdevelop' crashing...
KCrash: Attempting to start /usr/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
QSocketNotifier: Invalid socket 51 and type 'Read', disabling...
QSocketNotifier: Invalid socket 64 and type 'Read', disabling...
QSocketNotifier: Invalid socket 67 and type 'Exception', disabling...
QSocketNotifier: Invalid socket 69 and type 'Read', disabling...
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
QSocketNotifier: Invalid socket 18 and type 'Read', disabling...
QSocketNotifier: Invalid socket 24 and type 'Read', disabling...
QSocketNotifier: Invalid socket 23 and type 'Read', disabling...
QSocketNotifier: Invalid socket 26 and type 'Read', disabling...
QSocketNotifier: Invalid socket 28 and type 'Read', disabling...
QSocketNotifier: Invalid socket 29 and type 'Read', disabling...
QSocketNotifier: Invalid socket 62 and type 'Read', disabling...
QSocketNotifier: Invalid socket 32 and type 'Read', disabling...
QSocketNotifier: Invalid socket 50 and type 'Read', disabling...
QSocketNotifier: Invalid socket 72 and type 'Read', disabling...
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
QSocketNotifier: Invalid socket 35 and type 'Read', disabling...
LIBCLANG FATAL ERROR: IO failure on output stream: Bad file descriptor
Unable to start Dr. Konqi

========================== End of KDevelop Output ==========================





More information about the KDevelop mailing list