Subject: pkg/15639: devel/gcc does not build on sparc
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 02/16/2002 17:57:46
>Number: 15639
>Category: pkg
>Synopsis: devel/gcc does not build on sparc
>Confidential: no
>Severity: critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 16 14:58:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Greg A. Woods
>Release: pkgsrc approx 2002/01/28
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 1.5W
Architecture: sparc
Machine: sparc
>Description:
similarly to PR #15625 for lang/gcc-ssp , and I suppose as
expected given they use the same patch set, etc., lang/gcc does
not build either....
the only hint I've sussed out about the cause so far is that
there might be some problem with the patches that from my
understanding are intended to support sparc64.....
>How-To-Repeat:
These are actually the identical errors as reported for
lang/gcc-ssp in PR #15625:
cc -c -DIN_GCC -DHAIFA -O2 -pipe -DHAVE_CONFIG_H -I. -I/var/package-obj/lang/gcc/work/gcc-2.95.3/gcc -I/var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/config -I/var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/../include \
/var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/gencheck.c
In file included from tm.h:6,
from /var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/config/sparc/xm-sparc.h:40,
from hconfig.h:8,
from /var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/gencheck.c:21:
/var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/config/sparc/netbsd-elf.h:25: sparc/netbsd-elf-common.h: No such file or directory
gmake[1]: *** [gencheck.o] Error 1
gmake[1]: Leaving directory `/build/package-obj/lang/gcc/work/objdir/gcc'
gmake: *** [all-gcc] Error 2
*** Error code 2
Stop.
make: stopped in /proven/work/woods/m-NetBSD-pkgsrc/lang/gcc
*** Error code 1
Stop.
make: stopped in /proven/work/woods/m-NetBSD-pkgsrc/lang/gcc
ksh: exit code: 1
Deleting/commenting-out the #include for the missing file allows the
compilation to continue until the following happens:
gmake[2]: Entering directory `/build/package-obj/lang/gcc/work/objdir/gcc'
/build/package-obj/lang/gcc/work/objdir/gcc/xgcc -B/build/package-obj/lang/gcc/work/objdir/gcc/ -B/usr/gcc-2.95.3/sparc--netbsdelf/bin/ -I/usr/gcc-2.95.3/sparc--netbsdelf/include -O2 -DIN_GCC -DHAIFA -O2 -pipe -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -O2 -I. -I/var/package-obj/lang/gcc/work/gcc-2.95.3/gcc -I/var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/config -I/var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/../include \
-c /var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/cp/tinfo.cc
In file included from /var/package-obj/lang/gcc/work/gcc-2.95.3/gcc/cp/tinfo.cc:32:
include/new:28: `operator new' takes type `size_t' as first parameter
include/new:29: `operator new' takes type `size_t' as first parameter
include/new:32: `operator new' takes type `size_t' as first parameter
include/new:33: `operator new' takes type `size_t' as first parameter
include/new:38: `operator new' takes type `size_t' as first parameter
include/new:39: `operator new' takes type `size_t' as first parameter
gmake[2]: *** [tinfo.o] Error 1
gmake[2]: Leaving directory `/build/package-obj/lang/gcc/work/objdir/gcc'
gmake[1]: *** [libgcc2.a] Error 1
gmake[1]: Leaving directory `/build/package-obj/lang/gcc/work/objdir/gcc'
gmake: *** [all-gcc] Error 2
*** Error code 2
Stop.
make: stopped in /proven/work/woods/m-NetBSD-pkgsrc/lang/gcc
*** Error code 1
Stop.
make: stopped in /proven/work/woods/m-NetBSD-pkgsrc/lang/gcc
ksh: exit code: 1
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: