This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cpp segfaults during bootstrap on ARM... (fwd)
- To: gcc at gcc dot gnu dot org
- Subject: cpp segfaults during bootstrap on ARM... (fwd)
- From: Philip Blundell <pb at labs dot futuretv dot com>
- Date: Thu, 27 Apr 2000 08:35:56 +0100
------- Forwarded Message
Date: Wed, 26 Apr 2000 17:30:04 -0400
From: Scott Bambrough <scottb@netwinder.org>
Organization: Rebel.com
X-Mailer: Mozilla 4.7 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Phil Blundell <pb@futuretv.com>
Subject: cpp segfaults during bootstrap on ARM...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Phil,
netwinder.org seems to have made it into ORBS. Could you pass this on to the
gcc list for me while I get that straigbtened out.
Scott
I've been unable to build the mainline on a NetWinder for the last two daysd.
CPP segfaults during the bootstrap. I configured with:
CFLAGS="-g -O0" ../gcc-2.96/configure --with-cpu=strongarm --enable-shared.
and did a
make bootstrap-lean
do \
echo ${name}; \
./xgcc -B/usr/local/armv4l-unknown-linux-gnu/bin/ -B./ -isystem
/usr/local/armv4l-unknown-linux-gnu/include -O2 -DIN_GCC -g -W -Wall
- -Wtraditional -isystem ./include -fomit-frame-pointer -fPIC -g0
- -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I.
- -I../../gcc-2.96/gcc -I../../gcc-2.96/gcc/config
- -I../../gcc-2.96/gcc/../include -c -DL${name} \
../../gcc-2.96/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
cpp: memory violation at pc=0x4006ff54, lr=0x02073eb0 (bad
address=0x0207471c, code 0)
xgcc: Internal compiler error: program cpp got fatal signal 11
To date I have not had any success in debugging this problem. cpp is failing in
chunk_alloc in libc. The return address (lr) and the bad address are way
outside the valid range for code and data for cpp. I have not been able to get
the CPP command to run from the prompt or gdb. I always get:
/bin/bash: -c: line 1: syntax error near unexpected token `-Asystem(u'
/bin/bash: -c: line 1: `exec /home/scottb/cvstree/gcc-2.96-build/gcc/./cpp
I'm using bash 2.04 ATM. I've also tried 2.03.
Starting program: /home/scottb/cvstree/gcc-2.96-build/gcc/./cpp -lang-c -v
-I. -I../../gcc-2.96/gcc -I../../gcc-2.96/gcc/config
-I../../gcc-2.96/gcc/../include
-iprefix ./../lib/gcc-lib/armv4l-unknown-linux-gnu/2.96/ -isystem ./include
-isystem /usr/local/armv4l-unknown-linux-gnu/bin/include -D__GNUC__=2
-D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -Dunix -D__arm__ -Dlinux
-D__ELF__ -D__unix__ -D__arm__ -D__linux__ -D__ELF__ -D__unix -D__linux
-Asystem(unix) -Asystem(posix) -Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__
-D__OPTIMIZE__ -g -g0 -W -Wall -Wtraditional -D__ARM_ARCH_4__ -D__APCS_32__
-D__ARMEL__ -D__PIC__ -D__pic__ -Darm -D__arm__ -DIN_GCC -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -DL_muldi3 -isystem
/usr/local/armv4l-unknown-linux-gnu/include -isystem ./include
../../gcc-2.96/gcc/libgcc2.c /tmp/s.i
/bin/bash: -c: line 1: syntax error near unexpected token `-Asystem(u'
/bin/bash: -c: line 1: `exec /home/scottb/cvstree/gcc-2.96-build/gcc/./cpp
-lang-c -v -I. -I../../gcc-2.96/gcc -I../../gcc-2.96/gcc/config
-I../../gcc-2.96/gcc/../include -iprefix
./../lib/gcc-lib/armv4l-unknown-linux-gnu/2.96/ -isystem ./include -isystem
/usr/local/armv4l-unknown-linux-gnu/bin/include -D__GNUC__=2
-D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -Dunix -D__arm__ -Dlinux
-D__ELF__ -D__unix__ -D__arm__ -D__linux__ -D__ELF__ -D__unix -D__linux
-Asystem(unix) -Asystem(posix) -Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__
-D__OPTIMIZE__ -g -g0 -W
-Wall -Wtraditional -D__ARM_ARCH_4__ -D__APCS_32__ -D__ARMEL__ -D__PIC__
-D__pic__ -Darm -D__arm__ -DIN_GCC -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -DL_muldi3 -isystem
/usr/local/armv4l-unknown-linux-gnu/include -isystem ./include
../../gcc-2.96/gcc/libgcc2.c /tmp/s.i'
Program exited with code 02.
You can't do that without a process to debug.
(gdb)
Does anyone have a suggestion about how to get around this so I can investigate
further? Any pointers or tips would be appreciated.
Scott
--
Scott Bambrough - Software Engineer
REBEL.COM http://www.rebel.com
NetWinder http://www.netwinder.org
------- End of Forwarded Message