------- Comment #4 from armin76 at gentoo dot org  2009-09-30 13:49 -------
(In reply to comment #3)
> Can you see what a backtrace gives you in a gdb session ? It sounds like you
> are out of memory. I'll second what Mikael said in Comment #2 with respect to
> being able to bootstrap .
Hrm...well, thats weird. I have 3G of RAM, and with gcc-4.3 i don't have any
problem. Also gcc-4.4 builds fine with -O2 as STAGE1_CFLAGS.
Besides this should show up on dmesg, and i don't have anything regarding that.
IOW, the kernel didn't kill the compile process

> 
> The other question which I have to ask is what was your configure line to
> configure the compiler. I've not been able to find that in your bug report 
> here
> and taking a cursory look at the strace output - it appears as though it might
> be something to do with your environment. 
Sure, sorry i didn't post it.
Here it is:

/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/configure --prefix=/usr
--bindir=/usr/armv5tel-softfloat-linux-gnueabi/gcc-bin/4.4.1
--includedir=/usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.4.1/include
--datadir=/usr/share/gcc-data/armv5tel-softfloat-linux-gnueabi/4.4.1
--mandir=/usr/share/gcc-data/armv5tel-softfloat-linux-gnueabi/4.4.1/man
--infodir=/usr/share/gcc-data/armv5tel-softfloat-linux-gnueabi/4.4.1/info
--with-gxx-include-dir=/usr/lib/gcc/armv5tel-softfloat-linux-gnueabi/4.4.1/include/g++-v4
--host=armv5tel-softfloat-linux-gnueabi
--build=armv5tel-softfloat-linux-gnueabi --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --with-float=soft
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --enable-secureplt --disable-multilib --enable-libmudflap
--disable-libssp --enable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/armv5tel-softfloat-linux-gnueabi/4.4.1/python
--disable-libgcj --enable-languages=c,c++,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion="Gentoo 4.4.1 p1.0"


> 
> 
> wait4(17376, In file included from /usr/include/stdio.h:903,
>                  from test.c:1:
> /usr/include/bits/stdio.h: In function 'getchar':
> /usr/include/bits/stdio.h:47: internal compiler error: Segmentation fault
> Please submit a full bug report,
> 
> I've got access to a Marvell board so if you give your configure line , I can
> try bootstrapping gcc to confirm what you are saying as well as take a look at
> it.
> 
> I usually bootstrap with --enable-languages=c,c++,fortran and disabling stage1
> checking because on some distros , the versions of binutils aren't upto 
> scratch
> with creating huge ARM binaries.
> 
> 
> cheers
> Ramana
> 
> 
> 
> Ramana
> 

This is what i've done as of now:
-build gcc-4.4 using STAGE1_CFLAGS=-O2 with gcc-4.3, then build gcc-4.4 with 
newly-built gcc-4.4 with STAGE1_CFLAGS=-O <---------- segfault
-build gcc-4.4 using STAGE1_CFLAGS=-O with gcc-4.3, then build gcc-4.4 with
newly-built gcc-4.4 with STAGE1_CFLAGS=-O2 <---------- works

ATM i'm trying this:
-build gcc-4.4 using STAGE1_CFLAGS=-O2 with gcc-4.3, then build gcc-4.4 with
newly-built gcc-4.4 with STAGE1_CFLAGS=-O

Will let you know, i'll attach the full build log meanwhile


-- 


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

Reply via email to