NetBSD Problem Report #46356
From www@NetBSD.org Thu Apr 19 06:51:18 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id A6B6C63B915
for <gnats-bugs@gnats.NetBSD.org>; Thu, 19 Apr 2012 06:51:18 +0000 (UTC)
Message-Id: <20120419065118.064C863B86B@www.NetBSD.org>
Date: Thu, 19 Apr 2012 06:51:18 +0000 (UTC)
From: kuehro@gmx.de
Reply-To: kuehro@gmx.de
To: gnats-bugs@NetBSD.org
Subject: lang/gcc46: patch for NetBSD current i386
X-Send-Pr-Version: www-1.0
>Number: 46356
>Category: pkg
>Synopsis: lang/gcc46: patch for NetBSD current i386
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: sbd
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 19 06:55:00 +0000 2012
>Closed-Date: Sun Apr 14 01:36:45 +0000 2013
>Last-Modified: Sun Apr 14 01:36:45 +0000 2013
>Originator: Kai-Uwe Eckhardt
>Release: 6.0_BETA (GENERIC) i386 (from 20120714)
>Organization:
>Environment:
NetBSD 6.0_BETA (GENERIC) i386
>Description:
Building lang/gcc46 on NetBSB current i386 fails due to a bug in
gcc-4.5 while building libiberty/physmem.c (see toolchain/45673 for
details).
>How-To-Repeat:
Build lang/gcc46 on NetBSD current (6.0, 6.99 and older ones with
gcc-4.5 as system compiler).
>Fix:
Changing -g to -g -O2 emits the correct assembler code for i386.
It builds and and gives good testresults with the following patch
file patches/patch-libiberty_Makefile.in :
$NetBSD$
--- libiberty/Makefile.in.orig 2012-04-18 13:01:41.000000000 +0000
+++ libiberty/Makefile.in
@@ -908,7 +908,7 @@ $(CONFIGURED_OFILES): stamp-picdir
./physmem.$(objext): $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
$(INCDIR)/libiberty.h
if [ x"$(PICFLAG)" != x ]; then \
- $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \
+ $(COMPILE.c) $(PICFLAG) -g -O2 $(srcdir)/physmem.c -o pic/$@; \
else true; fi
$(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->sbd
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 19 Apr 2012 07:38:21 +0000
Responsible-Changed-Why:
Over to maintainer.
From: "Kai-Uwe Eckhardt" <kuehro@gmx.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/46356 Please close PR
Date: Sat, 13 Apr 2013 16:12:56 +0200 (CEST)
We can close pkg/46356 because it has been patched in pkgsrc and the reason for the
bug is in toolchain/45673 which has been fixed in netbsd-6.
Kai-Uwe
State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sun, 14 Apr 2013 01:36:45 +0000
State-Changed-Why:
Fixed. Thanks for your notice!
>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.