NetBSD Problem Report #48154
From ryo_on@yk.rim.or.jp Sun Aug 25 11:44:29 2013
Return-Path: <ryo_on@yk.rim.or.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 679E471956
for <gnats-bugs@gnats.NetBSD.org>; Sun, 25 Aug 2013 11:44:29 +0000 (UTC)
Message-Id: <20130825114420.8DAD22027005E@mail.SiriusCloud.jp>
Date: Sun, 25 Aug 2013 20:44:20 +0900 (JST)
From: ryoon@NetBSD.org
Reply-To: ryoon@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: pkgsrc/lang/gcc (gcc 2.95.3) is not built on NetBSD/i386 6.1
X-Send-Pr-Version: 3.95
>Number: 48154
>Category: pkg
>Synopsis: pkgsrc/lang/gcc (gcc 2.95.3) is not built on NetBSD/i386 6.1
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Aug 25 11:45:00 +0000 2013
>Closed-Date: Sun Jul 27 04:09:34 +0000 2014
>Last-Modified: Sun Jul 27 04:09:34 +0000 2014
>Originator: Ryo ONODERA
>Release: NetBSD 6.99.23
>Organization:
>Environment:
System: NetBSD tellurium.elements.tetera.org 6.99.23 NetBSD 6.99.23 (DTRACE) #3: Thu Aug 22 17:34:58 JST 2013 ryo_on@tellurium.elements.tetera.org:/usr/obj/amd64/sys/arch/amd64/compile/DTRACE amd64
Architecture: x86_64
Machine: amd64
>Description:
On NetBSD/i386 6.1, pkgsrc/lang/gcc (gcc-2.95.3nb7) is not built.
Same failure is detected on recent pkgstc-2013Q2 bulk build on nyftp.
src/sys/sys/ansi.h is not suitable for gcc-2.96.3nb3?
Or gcc-2.95.3nb7 has problems?
Error message is here.
/usr/tmp/pkgsrc/lang/gcc/work/objdir/gcc/xgcc -B/usr/tmp/pkgsrc/lang/gcc/work/objdir/gcc/ -B/usr/pkg/gcc-2.95.3/i486--netbsdelf/bin/ -I/usr/pkg/gcc-2.95.3/i486--netbsdelf/include -O2 -DIN_GCC -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I/usr/tmp/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc -I/usr/tmp/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc/config -I/usr/tmp/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc/../include -c -DL${name} \
/usr/tmp/pkgsrc/lang/gcc/work/gcc-2.95.3/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
In file included from /usr/include/sys/types.h:51,
from /usr/include/stdlib.h:41,
from /usr/tmp/pkgsrc/lang/gcc/work/gcc-2.95.3/gcc/libgcc2.c:41:
/usr/include/sys/ansi.h:72: parse error before `__va_list'
/usr/include/sys/ansi.h:72: warning: data definition has no type or storage class
gmake[1]: *** [libgcc2.a] Error 1
gmake[1]: Leaving directory `/usr/tmp/pkgsrc/lang/gcc/work/objdir/gcc'
gmake: *** [all-gcc] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/lang/gcc
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/gcc
>How-To-Repeat:
$ cd /usr/pkgsrc/lang/gcc
$ make
>Fix:
I have no idea. Please fix this problem.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Wed, 28 Aug 2013 12:27:38 +0000
Responsible-Changed-Why:
joerg, any idea how this happened?
Responsible-Changed-From-To: joerg->pkg-manager
Responsible-Changed-By: joerg@NetBSD.org
Responsible-Changed-When: Wed, 28 Aug 2013 12:43:14 +0000
Responsible-Changed-Why:
Assign back. I don't see any valid reason for caring about GCC 2.x.
stdarg.h and friends assume the builtin support in all mildly ancient GCC
versions.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48154 (pkgsrc/lang/gcc (gcc 2.95.3) is not built on
NetBSD/i386 6.1)
Date: Wed, 28 Aug 2013 23:01:43 +0900
On Wed, 28 Aug 2013 21:43:15 +0900, <joerg@netbsd.org> wrote:
> Synopsis: pkgsrc/lang/gcc (gcc 2.95.3) is not built on NetBSD/i386 6.1
>
> Responsible-Changed-From-To: joerg->pkg-manager
> Responsible-Changed-By: joerg@NetBSD.org
> Responsible-Changed-When: Wed, 28 Aug 2013 12:43:14 +0000
> Responsible-Changed-Why:
> Assign back. I don't see any valid reason for caring about GCC 2.x.
> stdarg.h and friends assume the builtin support in all mildly ancient GCC
> versions.
But I could not find "drop support of GCC 2.x" in your commit message,
so I felt that it was dropped accidentally.
How about users for (cross) build tools based on GCC 2.95.x?
For some platforms, GCC-4.x is not supported and useless.
--
OBATA Akio / obache@NetBSD.org
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48154 (pkgsrc/lang/gcc (gcc 2.95.3) is not built on
NetBSD/i386 6.1)
Date: Wed, 28 Aug 2013 18:37:23 +0200
On Wed, Aug 28, 2013 at 02:05:01PM +0000, OBATA Akio wrote:
> On Wed, 28 Aug 2013 21:43:15 +0900, <joerg@netbsd.org> wrote:
>
> > Synopsis: pkgsrc/lang/gcc (gcc 2.95.3) is not built on NetBSD/i386 6.1
> >
> > Responsible-Changed-From-To: joerg->pkg-manager
> > Responsible-Changed-By: joerg@NetBSD.org
> > Responsible-Changed-When: Wed, 28 Aug 2013 12:43:14 +0000
> > Responsible-Changed-Why:
> > Assign back. I don't see any valid reason for caring about GCC 2.x.
> > stdarg.h and friends assume the builtin support in all mildly ancient GCC
> > versions.
>
> But I could not find "drop support of GCC 2.x" in your commit message,
> so I felt that it was dropped accidentally.
I didn't and won't bother with digging into the GCC tree to find out
when they added the builtins.
> How about users for (cross) build tools based on GCC 2.95.x?
> For some platforms, GCC-4.x is not supported and useless.
Cross-GCC doesn't use sys/ansi.h from NetBSD.
Joerg
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48154 (pkgsrc/lang/gcc (gcc 2.95.3) is not built on
NetBSD/i386 6.1)
Date: Thu, 29 Aug 2013 09:46:49 +0900
On Thu, 29 Aug 2013 01:40:00 +0900, Joerg Sonnenberger <joerg@britannica.bec.de> wrote:
> > But I could not find "drop support of GCC 2.x" in your commit message,
> > so I felt that it was dropped accidentally.
> I didn't and won't bother with digging into the GCC tree to find out
> when they added the builtins.
Isn't it clear? because you killed:
#if __GNUC_PREREQ__(2, 96)
--
OBATA Akio / obache@NetBSD.org
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48154: pkgsrc/lang/gcc (gcc 2.95.3) is not built on
NetBSD/i386 6.1
Date: Thu, 29 Aug 2013 05:32:38 +0000
On Sun, Aug 25, 2013 at 11:45:00AM +0000, ryoon@NetBSD.org wrote:
> On NetBSD/i386 6.1, pkgsrc/lang/gcc (gcc-2.95.3nb7) is not built.
> Same failure is detected on recent pkgstc-2013Q2 bulk build on nyftp.
NetBSD's system headers don't support gcc 2.x. What are you trying to
do? That's a really old compiler and it's never been entirely clear to
me why it's still in pkgsrc.
--
David A. Holland
dholland@netbsd.org
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48154: pkgsrc/lang/gcc (gcc 2.95.3) is not built on
NetBSD/i386 6.1
Date: Thu, 29 Aug 2013 15:29:00 +0900
On Thu, 29 Aug 2013 14:35:01 +0900, David Holland <dholland-pbugs@netbsd.org> wrote:
> On Sun, Aug 25, 2013 at 11:45:00AM +0000, ryoon@NetBSD.org wrote:
> > On NetBSD/i386 6.1, pkgsrc/lang/gcc (gcc-2.95.3nb7) is not built.
> > Same failure is detected on recent pkgstc-2013Q2 bulk build on nyftp.
> NetBSD's system headers don't support gcc 2.x. What are you trying to
> do? That's a really old compiler and it's never been entirely clear to
> me why it's still in pkgsrc.
pkgsrc is not just for current NetBSD releases and gcc-2.x is the latest
GCC for some platforms.
For example, it is useful to analyze a issue whether it is particular issue
for such platforms or gcc-2.x.
--
OBATA Akio / obache@NetBSD.org
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48154: pkgsrc/lang/gcc (gcc 2.95.3) is not built on
NetBSD/i386 6.1
Date: Sat, 31 Aug 2013 16:13:44 +0900 (JST)
From: "OBATA Akio" <obache@NetBSD.org>, Date: Thu, 29 Aug 2013 06:30:00 +0000 (UTC)
> The following reply was made to PR pkg/48154; it has been noted by GNATS.
>
> From: "OBATA Akio" <obache@netbsd.org>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/48154: pkgsrc/lang/gcc (gcc 2.95.3) is not built on
> NetBSD/i386 6.1
> Date: Thu, 29 Aug 2013 15:29:00 +0900
>
> On Thu, 29 Aug 2013 14:35:01 +0900, David Holland <dholland-pbugs@netbsd.org> wrote:
>
> > On Sun, Aug 25, 2013 at 11:45:00AM +0000, ryoon@NetBSD.org wrote:
> > > On NetBSD/i386 6.1, pkgsrc/lang/gcc (gcc-2.95.3nb7) is not built.
> > > Same failure is detected on recent pkgstc-2013Q2 bulk build on nyftp.
> > NetBSD's system headers don't support gcc 2.x. What are you trying to
> > do? That's a really old compiler and it's never been entirely clear to
> > me why it's still in pkgsrc.
>
> pkgsrc is not just for current NetBSD releases and gcc-2.x is the latest
> GCC for some platforms.
> For example, it is useful to analyze a issue whether it is particular issue
> for such platforms or gcc-2.x.
Yes.
FeeMiNT's official compiler is gcc 2.95.3.
FreeMiNT has some issues with pkgsrc.
To clarify what is the cause, I want to use gcc 2.95.3.
pkgsrc-2013Q2 release announcement has FreeMiNT as supported platform,
and I am improving FreeMiNT support now (see e-mails in tech-pkg@).
Deleting the official compiler of supported platform is very bad idea.
--
Ryo ONODERA // ryo_on@yk.rim.or.jp
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48154: pkgsrc/lang/gcc (gcc 2.95.3) is not built on
NetBSD/i386 6.1
Date: Tue, 3 Sep 2013 05:26:08 +0000
On Sat, Aug 31, 2013 at 07:15:01AM +0000, Ryo ONODERA wrote:
>> pkgsrc is not just for current NetBSD releases and gcc-2.x is the latest
>> GCC for some platforms.
>> For example, it is useful to analyze a issue whether it is particular issue
>> for such platforms or gcc-2.x.
>
> Yes.
> FeeMiNT's official compiler is gcc 2.95.3.
> FreeMiNT has some issues with pkgsrc.
> To clarify what is the cause, I want to use gcc 2.95.3.
>
> pkgsrc-2013Q2 release announcement has FreeMiNT as supported platform,
> and I am improving FreeMiNT support now (see e-mails in tech-pkg@).
Okay, but that doesn't require running gcc 2.95 on NetBSD, does it?
It isn't going to work unless either we re-add gcc2 stdarg support to
NetBSD (that is going to be a tough sell) or someone implements the
__builtin_va_* stuff for gcc 2.95. I have no idea how hard that would
be.
You'll also find that gcc 2.95 doesn't compile with recent gcc,
although maybe we have patches for that in pkgsrc already.
> Deleting the official compiler of supported platform is very bad idea.
Surely FreeMiNT doesn't depend on the copy in pkgsrc...
--
David A. Holland
dholland@netbsd.org
From: Aleksej Saushev <asau@inbox.ru>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48154: pkgsrc/lang/gcc (gcc 2.95.3) is not built on NetBSD/i386 6.1
Date: Tue, 03 Sep 2013 19:37:13 +0400
David Holland <dholland-pbugs@netbsd.org> writes:
> Okay, but that doesn't require running gcc 2.95 on NetBSD, does it?
You forget that it is useful when updating some software that lagged behind.
> You'll also find that gcc 2.95 doesn't compile with recent gcc,
> although maybe we have patches for that in pkgsrc already.
It can be built with gcc 3, which builds fine currently.
--
BCE HA MOPE!
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 27 Jul 2014 04:09:34 +0000
State-Changed-Why:
I have marked lang/gcc NOT_FOR_PLATFORM on netbsd-6+, because the support
for stdarg.h as a non-compiler-builtin has been removed and isn't likely
to come back.
If anyone wants it to come back, please get a consensus from tech-toolchain
and provide a patch (and file the patch as a PR against netbsd base)... if
anyone wants to add __builtin_stdarg support to gcc 2.95 be my guest but it
seems like tilting at windmills.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.