Subject: Re: gcc34-ada build fails
To: Berndt Josef Wulf <wulf@ping.net.au>
From: John R. Shannon <john@johnrshannon.com>
List: tech-pkg
Date: 07/10/2006 06:06:15
Berndt Josef Wulf wrote:
> G'day
> 
> build of devel/gcc34-ada fails with following error message
> 
> ./xgcc -B./ -B/usr/pkg/gcc34-ada/i386--netbsdelf3.99.21/bin/ -isystem /usr/pkg/gcc34-ada/i386--netbsdelf3.99.21/include -isystem /usr/pkg/gcc34-ada/i386--netbsdelf3.99.21/sys-include -L/usr/pkgsrc/lang/gcc34-ada/work/obj/gcc/../ld -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I/usr/pkgsrc/lang/gcc34-ada/work/gcc-3.4.6/gcc -I/usr/pkgsrc/lang/gcc34-ada/work/gcc-3.4.6/gcc/. -I/usr/pkgsrc/lang/gcc34-ada/work/gcc-3.4.6/gcc/../include -I../intl  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fPIC 
> \
>            -c /usr/pkgsrc/lang/gcc34-ada/work/gcc-3.4.6/gcc/crtstuff.c -DCRT_BEGIN 
> \
>           -o crtbegin.o
> xgcc: unrecognized option `-isystem'
> xgcc: unrecognized option `-isystem'
> xgcc: unrecognized option `-DIN_GCC'
> xgcc: unrecognized option `-isystem'
> xgcc: unrecognized option `-DCRT_BEGIN'
> cc1: stdout: Bad file descriptor
> <stdin>:1: internal compiler error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> gmake[2]: *** [crtbegin.o] Error 1
> gmake[2]: Leaving directory `/usr/pkgsrc/lang/gcc34-ada/work/obj/gcc'
> gmake[1]: *** [stage1_build] Error 2
> gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc34-ada/work/obj/gcc'
> gmake: *** [bootstrap] Error 2
> *** Error code 2
> 
> Sysinfo:
> 
> NetBSD  3.99.21 NetBSD 3.99.21 (GENERIC) #0: Sat Jun 24 14:27:08 CST 2006  
> root@barossa:/usr/obj/sys/arch/i386/compile/GENERIC i386
> 
> pkgsrc-current (9/7/2006)
> 
> ALT_GCC=/usr/pkg/gccada-bootstrap-netbsd30/bin/gcc
> 
> Any suggestions?
> 
> cheerio Berndt 

I'm unable to duplicate you problem. I just built gcc34-ada-3.4.6 on a 
3.99.21 (Saturday's source). I placed the binary package on my web server:

http://www.johnrshannon.com/NetBSD/pentium4/gcc34-ada-3.4.6.tgz

It's built with COPTS+= -march=pentium4

-- 
John R. Shannon, CISSP
john@johnrshannon.com
jshannon@dsci-usa.com
john.r.shannon@us.army.mil
shannonjr@NetBSD.org