NetBSD Problem Report #50042
From www@NetBSD.org Thu Jul 9 21:08:02 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id EA6B0A6551
for <gnats-bugs@gnats.NetBSD.org>; Thu, 9 Jul 2015 21:08:02 +0000 (UTC)
Message-Id: <20150709210801.B89CEA65B7@mollari.NetBSD.org>
Date: Thu, 9 Jul 2015 21:08:01 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: lang/gcc46 build fails on netbsd-6/i386
X-Send-Pr-Version: www-1.0
>Number: 50042
>Category: pkg
>Synopsis: lang/gcc46 build fails on netbsd-6/i386
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: maya
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 09 21:10:01 +0000 2015
>Closed-Date: Wed Oct 05 06:57:44 +0000 2016
>Last-Modified: Wed Oct 05 06:57:44 +0000 2016
>Originator: John D. Baker
>Release: NetBSD/i386-6.1_STABLE, pkgsrc-2015Q2
>Organization:
>Environment:
NetBSD verthandi 6.1_STABLE NetBSD 6.1_STABLE (VERTHANDI) #5: Sat May 9 17:35:20 CDT 2015 sysop@skuld.technoskunk.fur:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/VERTHANDI i386
>Description:
Attempting to build "lang/gcc46" (dependency of "misc/libreoffice4"
fails with:
[...]
gmake[3]: Entering directory '/d0/build/pkgsrc/lang/gcc46/work/obj/libiberty'
if [ x"-fpic" != x ]; then \
/d0/build/pkgsrc/lang/gcc46/work/obj/./prev-gcc/xgcc -B/d0/build/pkgsrc/lang/gcc46/work/obj/./prev-gcc/ -B/usr/pkg/gcc46/i386-unknown-netbsdelf6.1./bin/ -B/usr/pkg/gcc46/i386-unknown-netbsdelf6.1./bin/ -B/usr/pkg/gcc46/i386-unknown-netbsdelf6.1./lib/ -isystem /usr/pkg/gcc46/i386-unknown-netbsdelf6.1./include -isystem /usr/pkg/gcc46/i386-unknown-netbsdelf6.1./sys-include -c -DHAVE_CONFIG_H -g -O2 -fomit-frame-pointer -gtoggle -I/d0/build/pkgsrc/lang/gcc46/work/.buildlink/include -I/usr/pkg/include -I/usr/include -I. -I/d0/build/pkgsrc/lang/gcc46/work/gcc-4.6.4/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic /d0/build/pkgsrc/lang/gcc46/work/gcc-4.6.4/libiberty/cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
In file included from /d0/build/pkgsrc/lang/gcc46/work/gcc-4.6.4/libiberty/cp-demangle.c:128:0:
/d0/build/pkgsrc/lang/gcc46/work/gcc-4.6.4/libiberty/../include/libiberty.h:88:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PARAMS'
/d0/build/pkgsrc/lang/gcc46/work/gcc-4.6.4/libiberty/../include/libiberty.h:92:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PARAMS'
Makefile:595: recipe for target 'cp-demangle.o' failed
gmake[3]: *** [cp-demangle.o] Error 1
gmake[3]: Leaving directory '/d0/build/pkgsrc/lang/gcc46/work/obj/libiberty'
Makefile:10497: recipe for target 'all-stage2-libiberty' failed
gmake[2]: *** [all-stage2-libiberty] Error 2
gmake[2]: Leaving directory '/d0/build/pkgsrc/lang/gcc46/work/obj'
Makefile:20080: recipe for target 'stage2-bubble' failed
gmake[1]: *** [stage2-bubble] Error 2
gmake[1]: Leaving directory '/d0/build/pkgsrc/lang/gcc46/work/obj'
Makefile:892: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2
Stop.
make: stopped in /x/pkgsrc/lang/gcc46
*** Error code 1
Stop.
make: stopped in /x/pkgsrc/lang/gcc46
>How-To-Repeat:
Attempt to build "lang/gcc46" either directly, or automatically as
a dependency of another package on netbsd-6/i386
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Mon, 28 Dec 2015 11:48:14 +0000
State-Changed-Why:
Does it work if you try to build a newer GCC?
gcc48 should be fine, gcc 5 may also work.
âˆ
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50042 (lang/gcc46 build fails on netbsd-6/i386)
Date: Mon, 28 Dec 2015 08:21:20 -0600 (CST)
On Mon, 28 Dec 2015, bsiegert@NetBSD.org wrote:
> State-Changed-Why:
> Does it work if you try to build a newer GCC?
> gcc48 should be fine, gcc 5 may also work.
As "www/firefox" requires gcc48, "lang/gcc48" builds just fine.
As noted in "pkg/49025", the "GCC_REQD=" mechanism does not detect
compilers installed from pkgsrc, so packages declaring "GCC_REQD+= 4.6"
will attempt to build "lang/gcc46" on netbsd-6 even if "lang/gcc48" is
already installed. Such packages require manual overriding of their
"GCC_REQD" variable via "mk.conf".
As of pkgsrc-2015Q4, no packages that I normally build required GCC 4.6,
so no build was attempted. A few required GCC 4.7, but I was able to
catch them and override them to GCC 4.8.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 29 Dec 2015 05:35:34 +0000
State-Changed-Why:
A workaround exists, but it is still technically broken so let's leave the
PR open.
Also, it would be nice if GCC_REQD worked better. I can't remember if that
has a PR or if it's just a long-standing item of universal annoyance. :-/
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50042 CVS commit: pkgsrc/lang/gcc46
Date: Tue, 6 Sep 2016 13:57:03 +0000
Module Name: pkgsrc
Committed By: maya
Date: Tue Sep 6 13:57:02 UTC 2016
Modified Files:
pkgsrc/lang/gcc46: Makefile distinfo
Added Files:
pkgsrc/lang/gcc46/patches: patch-gcc_config_netbsd.h
patch-include_libiberty.h patch-libiberty___doprnt.c
patch-libiberty_asprintf.c patch-libiberty_concat.c
patch-libiberty_snprintf.c patch-libiberty_vasprintf.c
patch-libiberty_vsnprintf.c
Log Message:
gcc46: use a more reasonable specfile for netbsd
disable libssp on netbsd - it conflicts with native libssp (PR pkg/47213)
build fix by using stdarg instead of VA_*, cherry picked from
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206881
fixes PR pkg/50042
bump PKGREVISION
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/lang/gcc46/Makefile
cvs rdiff -u -r1.20 -r1.21 pkgsrc/lang/gcc46/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/gcc46/patches/patch-gcc_config_netbsd.h \
pkgsrc/lang/gcc46/patches/patch-include_libiberty.h \
pkgsrc/lang/gcc46/patches/patch-libiberty___doprnt.c \
pkgsrc/lang/gcc46/patches/patch-libiberty_asprintf.c \
pkgsrc/lang/gcc46/patches/patch-libiberty_concat.c \
pkgsrc/lang/gcc46/patches/patch-libiberty_snprintf.c \
pkgsrc/lang/gcc46/patches/patch-libiberty_vasprintf.c \
pkgsrc/lang/gcc46/patches/patch-libiberty_vsnprintf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: pkg-manager->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Tue, 06 Sep 2016 14:03:14 +0000
Responsible-Changed-Why:
Take
State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 06 Sep 2016 14:03:14 +0000
State-Changed-Why:
Fixed for amd64, is it fixed for you too?
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50042: lang/gcc46 build fails on netbsd-6/i386
Date: Wed, 5 Oct 2016 00:24:24 -0500 (CDT)
I'm not really in a position to test this anymore. Possibly in a few
days.
For what it's worth, "lang/gcc46" doesn't show up in the latest bulk
build report for pkgsrc-2016Q3 and NetBSD-6/i386.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: coypu@SDF.ORG
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50042: lang/gcc46 build fails on netbsd-6/i386
Date: Wed, 5 Oct 2016 06:29:27 +0000
Ah, no worries. I just tested in a NetBSD-6.1.5/i386 chroot.
Seems fine. I'll close it, no need for a second person to check if it's trouble.
(It just seems rude to say 'I fixed it' and immediately close it)
State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 05 Oct 2016 06:57:44 +0000
State-Changed-Why:
Seems to work now.
>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-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.