Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#49257 - gcc internal compiler error when use -dH option.
Attached to Project:
Arch Linux
Opened by wei (ga6840) - Saturday, 07 May 2016, 20:36 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Saturday, 07 May 2016, 23:48 GMT
Opened by wei (ga6840) - Saturday, 07 May 2016, 20:36 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Saturday, 07 May 2016, 23:48 GMT
|
DetailsDescription:
gcc reports internal compiler error when use -dH option, if the processed header includes header which is not found. I report it here because this gcc internal fault cases Arch to prompt a message in terminal: > gcc: internal compiler error: Aborted (program cc1) > Please submit a full bug report, > with preprocessed source if appropriate. > See <https://bugs.archlinux.org/> for instructions. Additional info: my gcc version and info: $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /build/gcc/src/gcc-5.3.0/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release Thread model: posix gcc version 5.3.0 (GCC) Steps to reproduce: 1. edit a hello.h with just one line: $ cat hello.h #include <header-not-existing> 2. type the following gcc command will cause the compiler error: $ $ gcc -dH hello.h hello.h:1:31: fatal error: header-not-existing: No such file or directory gcc: internal compiler error: Aborted (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions. |
This task depends upon
Closed by Gerardo Exequiel Pozzi (djgera)
Saturday, 07 May 2016, 23:48 GMT
Reason for closing: Not a bug
Saturday, 07 May 2016, 23:48 GMT
Reason for closing: Not a bug
-dH Produce a core dump whenever an error occurs.
Isn't this basically working as intended? The compiler errored on the missing header and did what you asked -- produced a core dump.
So I am going to close this task.
I actually use dH to check header issue before compiling, do you know an alternative way to check header validity without produce a core dump?
Thank you!