Bug 449999 - fetching includes breaks on strange characters
Summary: fetching includes breaks on strange characters
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 5.6.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-11 10:12 UTC by Adrian Sevcenco
Modified: 2022-02-11 12:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Sevcenco 2022-02-11 10:12:40 UTC
While trying to solve the problem of having a parsing report of "No type named 'string_view' in namespace 'std' "
and setting in the project configuration -> Laguage support -> C/C++ parser c++ profile to c++17 and Compiler for path = GCC 
i started the kdevelop in the terminal and i seen this:
```
python code checker error: "The `pycodestyle` (previously `pep8`) module is not installed."
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=/builddir/build/BUILD/gcc-11.2.1-20211203/obj-x86_64-redhat-linux/isl-install --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 --with-build-config=bootstrap-lto --enable-link-serialization=1\nThread model: posix\nSupported LTO compression algorithms: zlib zstd\ngcc version 11.2.1 20211203 (Red Hat 11.2.1-7) (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 -dumpbase -\ngcc: fatal error: cannot execute \xE2\x80\x98""cc1obj\xE2\x80\x99: execvp: No such file or directory\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: No such file or directory\ncompilation terminated.\n"
kdevelop.plugins.clang: Unhandled type: ExtVector float __attribute__((ext_vector_type(4)))
kdevelop.plugins.clang: Unhandled type: ExtVector float __attribute__((ext_vector_type(4)))
```

beside the fact that pycode is installed, the gcc error is repeated many times.
even more puzzling is that  --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto
why in the world is that whole list there?  

EXPECTED RESULT
no breakage

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Fedora 35

(available in About System)
I do not have a About system in this kdevelop but it seem that i have:
KDE Frameworks Version 5.90.0
Qt Version 5.15.2 (built against 5.15.2)
Comment 1 Adrian Sevcenco 2022-02-11 12:21:57 UTC
actually, removing the project to clean up the parsing with KDEV_CLANG_DISPLAY_ARGS=1 i get this for the application that i actually work on:
Invocation: clang -ferror-limit=100 -fspell-checking  -Wunused-parameter -Wunreachable-code -Wall -std=c++11 -nostdinc -nostdinc++ -xc++ -isystem/home/physics-tools/ROOT/v6-26-00-patches/include -isystem/usr/include/c++/11 -isystem/usr/include/c++/11/x86_64-redhat-linux -isystem/usr/include/c++/11/backward -isystem/usr/local/include -isystem/usr/include -isystem /usr/lib64/llvm12/lib/clang/12.0.1/include -imacros /home/adrian/tmp/kdevelop.AjWwlc /home.hdd/adrian/work/AO2Dproto/ao2d_process.C

that -std=c++11 is just wrong, so why is there, and how can it be customized?
Thanks a lot!