This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/79813] New: Hitting seg fault in cc1


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

            Bug ID: 79813
           Summary: Hitting seg fault in cc1
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: piers at piersandkatie dot com
  Target Milestone: ---

Trying to build gcc family on alpine linux x64 to cross compile for
xtensa-lx106.

Hitting seg fault:

configure:3374: 
/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-core-pass-2/./gcc/xgcc
-B/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-core-pass-2/./gcc/
-B/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/bin/
-B/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/lib/
-isystem
/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/include
-isystem
/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/sys-include
   -o conftest -mlongcalls -g -Os   conftest.c  >&5
xgcc: internal compiler error: Segmentation fault (program cc1)
0x561b02f07064 execute
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:2823
0x561b02f0b90a do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:4615
0x561b02f0f08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x561b02f0eec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x561b02f0da99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x561b02f0f08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x561b02f0eec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x561b02f0da99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x561b02f0df38 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5374
0x561b02f0f08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x561b02f0eec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x561b02f0da99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x561b02f0f08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x561b02f0eec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x561b02f0da99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x561b02f0f08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x561b02f0eec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x561b02f0da99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x561b02f0f08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x561b02f0eec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:3377: $? = 4
configure:3565: checking for suffix of object files
configure:3587: 
/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-core-pass-2/./gcc/xgcc
-B/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-core-pass-2/./gcc/
-B/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/bin/
-B/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/lib/
-isystem
/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/include
-isystem
/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools/xtensa-lx106-elf/sys-include
   -c -mlongcalls -g -Os  conftest.c >&5
xgcc: internal compiler error: Segmentation fault (program cc1)
0x558ff9f23064 execute
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:2823
0x558ff9f2790a do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:4615
0x558ff9f2b08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x558ff9f2aec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x558ff9f29a99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x558ff9f2b08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x558ff9f2aec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x558ff9f29a99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x558ff9f29f38 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5374
0x558ff9f2b08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x558ff9f2aec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x558ff9f29a99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x558ff9f2b08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x558ff9f2aec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x558ff9f29a99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x558ff9f2b08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x558ff9f2aec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
0x558ff9f29a99 do_spec_1
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5269
0x558ff9f2b08e process_brace_body
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5872
0x558ff9f2aec5 handle_braces
        /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/gcc.c:5786
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:3591: $? = 4
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/";
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3605: error: in
`/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-core-pass-2/xtensa-lx106-elf/libgcc':
configure:3608: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

Output of xgcc -v:

Using built-in specs.
COLLECT_GCC=/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-core-pass-2/./gcc/xgcc
Target: xtensa-lx106-elf
Configured with: /opt/esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/configure
--build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu
--target=xtensa-lx106-elf
--prefix=/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools
--with-local-prefix=/opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot
--with-sysroot=/opt/esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot
--with-newlib --enable-threads=no --disable-shared
--with-pkgversion='crosstool-NG crosstool-ng-1.22.0-55-gecfc19a'
--disable-__cxa_atexit
--with-gmp=/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools
--with-mpfr=/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools
--with-mpc=/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools
--with-isl=/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools
--with-cloog=/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools
--with-libelf=/opt/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/buildtools
--enable-lto --enable-target-optspace --without-long-double-128
--disable-libgomp --disable-libmudflap --disable-libssp --disable-libquadmath
--disable-libquadmath-support --disable-nls --disable-multilib
--enable-languages=c
Thread model: single
gcc version 4.8.5 (crosstool-NG crosstool-ng-1.22.0-55-gecfc19a)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]