public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "simeon.pilgrim at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/56453] New: Gcc segmentation fault building argz_add.c for xcompiler newlib for fr30-elf
Date: Tue, 26 Feb 2013 04:50:00 -0000	[thread overview]
Message-ID: <bug-56453-4@http.gcc.gnu.org/bugzilla/> (raw)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56453

             Bug #: 56453
           Summary: Gcc segmentation fault building argz_add.c for
                    xcompiler newlib for fr30-elf
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: simeon.pilgrim@gmail.com


Created attachment 29538
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29538
saved temp state files

I'm building a cross compiler tool chain, for the fr30-elf system.

binutils-2.23.1
gcc-4.7.2
newlib-2.0.0

under cygwin on Windows 7 64bit system.

using:
export TARGET=fr30-elf
export PREFIX=/user/local/$TARGET
export PATH=$PATH:$PREFIX/bin

I build binutils (../binutils-2.23.1/configure --target=$TARGET
--prefix=$PREFIX
)

then built bootstrap GCC (../gcc-4.7.2/configure --target=$TARGET
--prefix=$PREFIX --without-headers --with-newlib --with-gnu-as --with-gnu-ld)

then started build newlib (../newlib-2.0.0/configure --target=$TARGET
--prefix=$PREFIX)

and "make all" crashed gcc on /newlib-2.0.0/newlib/libc/argz/argz_add.c:7:0

full command for crash is:
$ fr30-elf-gcc -B/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/ -isystem
/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/targ-include -isystem
/home/SPILGRIM/tmp/build/newlib-2.0.0/newlib/libc/include
-B/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/libgloss/fr30
-L/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/libgloss/libnosys
-L/home/SPILGRIM/tmp/build/newlib-2.0.0/libgloss/fr30   
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"newlib\ 2.0.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I../../../../../newlib-2.0.0/newlib/libc/argz -fno-builtin -v -save-temps     
-g -Os -c -o lib_a-argz_add.o `test -f 'argz_add.c' || echo
'../../../../../newlib-2.0.0/newlib/libc/argz/'`argz_add.c




with the output:

$ fr30-elf-gcc -B/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/ -isystem
/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/targ-include -isystem
/home/SPILGRIM/tmp/build/newlib-2.0.0/newlib/libc/include
-B/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/libgloss/fr30
-L/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/libgloss/libnosys
-L/home/SPILGRIM/tmp/build/newlib-2.0.0/libgloss/fr30   
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"2.0.0\" -DPACKAGE_STRING=\"newlib\ 2.0.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I../../../../../newlib-2.0.0/newlib/libc/argz -fno-builtin -v -save-temps     
-g -Os -c -o lib_a-argz_add.o `test -f 'argz_add.c' || echo
'../../../../../newlib-2.0.0/newlib/libc/argz/'`argz_add.c
Using built-in specs.
COLLECT_GCC=fr30-elf-gcc
Target: fr30-elf
Configured with: ../gcc-4.7.2/configure --target=fr30-elf
--prefix=/user/local/fr30-elf --without-headers --with-newlib --with-gnu-as
--with-gnu-ld
Thread model: single
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-B' '/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/'
'-isystem' '/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/targ-include'
'-isystem' '/home/SPILGRIM/tmp/build/newlib-2.0.0/newlib/libc/include' '-B'
'/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/libgloss/fr30'
'-L/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/libgloss/libnosys'
'-L/home/SPILGRIM/tmp/build/newlib-2.0.0/libgloss/fr30' '-D'
'PACKAGE_NAME="newlib"' '-D' 'PACKAGE_TARNAME="newlib"' '-D'
'PACKAGE_VERSION="2.0.0"' '-D' 'PACKAGE_STRING="newlib 2.0.0"' '-D'
'PACKAGE_BUGREPORT=""' '-D' 'PACKAGE_URL=""' '-I' '.' '-I'
'../../../../../newlib-2.0.0/newlib/libc/argz' '-fno-builtin' '-v'
'-save-temps' '-g' '-Os' '-c' '-o' 'lib_a-argz_add.o'
 /user/local/FR30-elf/bin/../libexec/gcc/fr30-elf/4.7.2/cc1.exe -E -quiet -v -I
. -I ../../../../../newlib-2.0.0/newlib/libc/argz -iprefix
/user/local/FR30-elf/bin/../lib/gcc/fr30-elf/4.7.2/ -D PACKAGE_NAME="newlib" -D
PACKAGE_TARNAME="newlib" -D PACKAGE_VERSION="2.0.0" -D PACKAGE_STRING="newlib
2.0.0" -D PACKAGE_BUGREPORT="" -D PACKAGE_URL="" -isystem
/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/targ-include -isystem
/home/SPILGRIM/tmp/build/newlib-2.0.0/newlib/libc/include
../../../../../newlib-2.0.0/newlib/libc/argz/argz_add.c -fno-builtin -g
-fworking-directory -Os -fpch-preprocess -o argz_add.i
ignoring nonexistent directory
"/user/local/FR30-elf/bin/../lib/gcc/fr30-elf/4.7.2/../../../../fr30-elf/sys-include"
ignoring nonexistent directory
"/user/local/FR30-elf/bin/../lib/gcc/fr30-elf/4.7.2/../../../../fr30-elf/include"
ignoring duplicate directory
"/user/local/fr30-elf/bin/../lib/gcc/../../lib/gcc/fr30-elf/4.7.2/include"
ignoring duplicate directory
"/user/local/fr30-elf/bin/../lib/gcc/../../lib/gcc/fr30-elf/4.7.2/include-fixed"
ignoring nonexistent directory
"/user/local/fr30-elf/bin/../lib/gcc/../../lib/gcc/fr30-elf/4.7.2/../../../../fr30-elf/sys-include"
ignoring nonexistent directory
"/user/local/fr30-elf/bin/../lib/gcc/../../lib/gcc/fr30-elf/4.7.2/../../../../fr30-elf/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../../../newlib-2.0.0/newlib/libc/argz
 /home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/targ-include
 /home/SPILGRIM/tmp/build/newlib-2.0.0/newlib/libc/include
 /user/local/FR30-elf/bin/../lib/gcc/fr30-elf/4.7.2/include
 /user/local/FR30-elf/bin/../lib/gcc/fr30-elf/4.7.2/include-fixed
End of search list.
COLLECT_GCC_OPTIONS='-B' '/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/'
'-isystem' '/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/newlib/targ-include'
'-isystem' '/home/SPILGRIM/tmp/build/newlib-2.0.0/newlib/libc/include' '-B'
'/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/libgloss/fr30'
'-L/home/SPILGRIM/tmp/build/newlib-obj/fr30-elf/libgloss/libnosys'
'-L/home/SPILGRIM/tmp/build/newlib-2.0.0/libgloss/fr30' '-D'
'PACKAGE_NAME="newlib"' '-D' 'PACKAGE_TARNAME="newlib"' '-D'
'PACKAGE_VERSION="2.0.0"' '-D' 'PACKAGE_STRING="newlib 2.0.0"' '-D'
'PACKAGE_BUGREPORT=""' '-D' 'PACKAGE_URL=""' '-I' '.' '-I'
'../../../../../newlib-2.0.0/newlib/libc/argz' '-fno-builtin' '-v'
'-save-temps' '-g' '-Os' '-c' '-o' 'lib_a-argz_add.o'
 /user/local/FR30-elf/bin/../libexec/gcc/fr30-elf/4.7.2/cc1.exe -fpreprocessed
argz_add.i -quiet -dumpbase argz_add.c -auxbase-strip lib_a-argz_add.o -g -Os
-version -fno-builtin -o argz_add.s
GNU C (GCC) version 4.7.2 (fr30-elf)
        compiled by GNU C version 3.4.4 (cygming special, gdc 0.12, using dmd
0.125), GMP version 4.3.2, MPFR version 3.0.1-p4, MPC version 0.8
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C (GCC) version 4.7.2 (fr30-elf)
        compiled by GNU C version 3.4.4 (cygming special, gdc 0.12, using dmd
0.125), GMP version 4.3.2, MPFR version 3.0.1-p4, MPC version 0.8
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 2b3b992f45669b59ce4e55ad82ab7874
In file included from
../../../../../newlib-2.0.0/newlib/libc/argz/argz_add.c:7:0:
/home/SPILGRIM/tmp/build/newlib-2.0.0/newlib/libc/include/argz.h: In function
‘argz_add’:
/home/SPILGRIM/tmp/build/newlib-2.0.0/newlib/libc/include/argz.h:23:9: internal
compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


             reply	other threads:[~2013-02-26  4:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26  4:50 simeon.pilgrim at gmail dot com [this message]
2013-02-26  7:42 ` [Bug c/56453] " simeon.pilgrim at gmail dot com
2013-02-26  7:46 ` simeon.pilgrim at gmail dot com
2013-02-26 14:59 ` [Bug target/56453] " nickc at gcc dot gnu.org
2013-02-26 15:04 ` nickc at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-56453-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).