NetBSD Problem Report #49456

From diro@nixsyspaus.org  Sun Dec  7 16:50:17 2014
Return-Path: <diro@nixsyspaus.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 60062A654D
	for <gnats-bugs@gnats.netbsd.org>; Sun,  7 Dec 2014 16:50:17 +0000 (UTC)
Message-Id: <20141207165000.E632D2041E4@asche.nixsyspaus.org>
Date: Sun,  7 Dec 2014 16:50:00 +0000 (UTC)
From: diro@nixsyspaus.org
Reply-To: diro@nixsyspaus.org
To: gnats-bugs@gnats.netbsd.org
Subject: lang/gcc46 fails during build on Linux and OpenBSD
X-Send-Pr-Version: 3.95

>Number:         49456
>Category:       pkg
>Synopsis:       lang/gcc46 fails during build on Linux and OpenBSD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sevan
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 07 16:55:00 +0000 2014
>Last-Modified:  Mon Sep 12 12:50:00 +0000 2016
>Originator:     diro@nixsyspaus.org
>Release:        OpenBSD 5.6
>Organization:
>Environment:
System: OpenBSD catcher.nixsyspaus.org 5.6 GENERIC.MP#194 sparc64
Architecture: sparc64
Machine: sparc64
>Description:
Same deal on CentOS 6.5/x86_64 as OpenBSD 5.6/sparc64:

cc -c   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/build
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../include
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../libcpp/include
-I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../libdecnumber
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../libdecnumber/dpd
-I../libdecnumber   -I/usr/pkgsrc/lang/gcc46/work/.buildlink/include
-I/usr/pkg/include \
        -o build/gengtype-state.o
/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/gengtype-state.c
cc -c   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/build
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../include
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../libcpp/include
-I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../libdecnumber
-I/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../libdecnumber/dpd
-I../libdecnumber   -I/usr/pkgsrc/lang/gcc46/work/.buildlink/include
-I/usr/pkg/include \
-DBASEVER="\"4.6.4\"" -DDATESTAMP="\"\"" \
-DREVISION="\"\"" \
-DDEVPHASE="\"\"" -DPKGVERSION="\"(GCC) \"" \
-DBUGURL="\"<http://gcc.gnu.org/bugs.html>\"" -o build/version.o
/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/version.c
cc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
-DHAVE_CONFIG_H -DGENERATOR_FILE -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o
build/gengtype \
    build/gengtype.o build/errors.o build/gengtype-lex.o
build/gengtype-parse.o build/gengtype-state.o build/version.o
../build-sparc64-unknown-openbsd5.6/libiberty/libiberty.a
build/gengtype.o(.text+0x12918): In function `input_file_by_name':
/usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/gengtype.c:4790: warning: strcpy()
is almost always misused, please use strlcpy()
../build-sparc64-unknown-openbsd5.6/libiberty/libiberty.a(xstrerror.o)(.text+0x40):
In function `xstrerror':
: warning: sprintf() is often misused, please use snprintf()
/usr/pkg/bin/bash /usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc/../move-if-change
tmp-gi.list gtyp-input.list
echo timestamp > s-gtyp-input
build/gengtype  \
                    -S /usr/pkgsrc/lang/gcc46/work/gcc-4.6.4/gcc -I
gtyp-input.list -w gtype.state
build/gengtype  \
                    -r gtype.state
gengtype: Internal error: abort in get_output_file_with_visibility, at
gengtype.c:1998
Makefile:3826: recipe for target 's-gtype' failed
gmake[3]: *** [s-gtype] Error 1
gmake[3]: Leaving directory '/usr/pkgsrc/lang/gcc46/work/obj/gcc'
Makefile:5512: recipe for target 'all-stage1-gcc' failed
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/lang/gcc46/work/obj'
Makefile:19969: recipe for target 'stage1-bubble' failed
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/lang/gcc46/work/obj'
Makefile:890: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/lang/gcc46
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package
Makefile.
*** Error code 1
>How-To-Repeat:
	Build anything that requires gcc46 in pkgsrc-2014Q3.
>Fix:
	Make boost and friends use gcc47, although that's not a "fix".

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->take
Responsible-Changed-By: sevan@NetBSD.org
Responsible-Changed-When: Tue, 15 Dec 2015 22:05:54 +0000
Responsible-Changed-Why:
take


Responsible-Changed-From-To: take->sevan
Responsible-Changed-By: sevan@NetBSD.org
Responsible-Changed-When: Tue, 15 Dec 2015 22:06:42 +0000
Responsible-Changed-Why:
derp


From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/49456: lang/gcc46 fails during build on Linux and OpenBSD
Date: Mon, 12 Sep 2016 12:48:29 +0000

 Hi,

 This is the same as debian bug #637236
 https://lists.debian.org/debian-bsd/2012/10/msg00013.html

 Anyone who can reproduce the bug interested in trying the suggested
 change? Unfortunately I cannot reproduce the issue on NetBSD.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.