https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103791

            Bug ID: 103791
           Summary: A "segmentation fault" error appears when trying to
                    compile a kernel
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ak47.almank at gmail dot com
  Target Milestone: ---

So I am trying to compile a kernel (the last step of building Linux from
scratch) and when I enter the command 'make mrproper', it just errors and says:

'gcc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report,
with preprocessed source if appropriate.'

The output of the command with the flags -v and -save-temps:

gcc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Using built-in specs.
COLLECT_GCC=gcc
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/usr LD=ld --enable-languages=c,c++
--disable-multilib --disable-bootstrap --with-system-zlib
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-E' '-mtune=generic' '-march=x86-64'
 /usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.0/cc1 -E -quiet -v - -mtune=generic
-march=x86-64 -fpch-preprocess -dumpbase -


I got the output of this from the command:
CFLAGS="-v -save-temps" make mrproper

The options that were used:

Collecting options:
-v -save-temps -E -mtune=generic -march=x86-64

cc1 options (where the error occurred):
-E -quiet -v -mtune=generic -march=x86-64 -fpch-preprocess -dumpbase -

For some reason I can't find a preprocessed file.

Please can you help me with all this information? it will be much appreciated.

Thanks.

Reply via email to