Сбой KDevelop при импорте проекта C ++ на основе cmake - PullRequest
0 голосов
/ 28 февраля 2020

У меня есть проект C ++ на основе cmake (около 25 исходных файлов и файлов заголовков), который компилируется и запускается без проблем ("cd build && cmake ../src && make && sudo make install"). В проекте есть каталог 'sr c', в котором находится самый верхний файл CMakeLists.txt. Когда я запускаю KDevelop и выбираю «Открыть / импортировать проект», а затем выбираю этот файл CMakeLists.txt, KDevelop начинает импортировать проект, но вылетает, прежде чем индикатор выполнения в правом нижнем углу достигает 98%. Выход KDevelop ниже; Я не могу понять это. Должен отметить, что я могу импортировать этот же проект в Qt Creator без проблем.

Использование KDevelop 5.5.0.2 на Fedora 31 с KDE / Plasma и gcc / g ++ 9.2.1.

========================== KDevelop Output ====================== ====

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.2.1 20190827 (Red Hat 9.2.1-1) (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" "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.2.1 20190827 (Red Hat 9.2.1-1) (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" "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.2.1 20190827 (Red Hat 9.2.1-1) (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" "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.2.1 20190827 (Red Hat 9.2.1-1) (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" "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.2.1 20190827 (Red Hat 9.2.1-1) (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" "gcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: Permission denied\ncompilation terminated.\n"

QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
QSocketNotifier: Invalid socket 60 and type 'Read', disabling...
QSocketNotifier: Invalid socket 75 and type 'Read', disabling...

KCrash: Application 'kdevelop' crashing...

QSocketNotifier: Invalid socket 67 and type 'Read', disabling...
QSocketNotifier: Invalid socket 70 and type 'Exception', disabling...
KCrash: Attempting to start /usr/libexec/drkonqi from kdeinit
QSocketNotifier: Invalid socket 72 and type 'Read', disabling...
QSocketNotifier: Invalid socket 23 and type 'Read', disabling...

sock_file=/run/user/2327/kdeinit5__0

QSocketNotifier: Invalid socket 24 and type 'Read', disabling...
QSocketNotifier: Invalid socket 30 and type 'Read', disabling...
QSocketNotifier: Invalid socket 31 and type 'Read', disabling...
QSocketNotifier: Invalid socket 32 and type 'Read', disabling...
QSocketNotifier: Invalid socket 43 and type 'Read', disabling...
QSocketNotifier: Invalid socket 34 and type 'Read', disabling...
QSocketNotifier: Invalid socket 36 and type 'Read', disabling...
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
QSocketNotifier: Invalid socket 56 and type 'Read', disabling...
...