NetBSD Problem Report #35964

From root@intrepid.dnsalias.com  Fri Mar  9 23:07:12 2007
Return-Path: <root@intrepid.dnsalias.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 7708F63BBF3
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  9 Mar 2007 23:07:12 +0000 (UTC)
Message-Id: <E1HPoB0-0002bi-OD@intrepid.warped.com>
Date: Fri, 09 Mar 2007 15:07:06 -0800
From: scotte@warped.com
Reply-To: scotte@warped.com
To: gnats-bugs@NetBSD.org
Subject: SHAREDSTRINGS breaks build
X-Send-Pr-Version: 3.95

>Number:         35964
>Category:       toolchain
>Synopsis:       Setting SHAREDSTRINGS=yes causes build to fail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 09 23:10:03 +0000 2007
>Last-Modified:  Sat Mar 10 19:25:01 +0000 2007
>Originator:     Scott Ellis
>Release:        NetBSD 4.99.13
>Organization:

>Environment:


System: NetBSD intrepid 4.99.13 NetBSD 4.99.13 (INTREPID.AMD64) #3: Wed Feb 28 18:37:37 PST 2007 scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/arch/amd64/compile/INTREPID.AMD64 amd64
Architecture: x86_64
Machine: amd64
>Description:

Setting SHAREDSTRINGS=yes in mk.conf, and building using build.sh fails when
building 'dc' with:

/data/scotte/netbsd_build/amd64/tooldir/bin/x86_64--netbsd-gcc -E  -D_POSIX_SOUR
CE -I. -I/nbu/source/netbsd/src/gnu/usr.bin/bc  -I/nbu/source/netbsd/src/gnu/dis
t/bc/dc -I/nbu/source/netbsd/src/gnu/dist/bc/h   -nostdinc -isystem /data/scotte
/netbsd_build/amd64/destdir/usr/include -O2 -pipe  -Werror -march=k8 -fstack-pro
tector -Wstack-protector --param ssp-buffer-size=1  /nbu/source/netbsd/src/gnu/d
ist/bc/lib/number.c | xstr -c -
/nbu/source/netbsd/src/gnu/dist/bc/lib/number.c:1424: error: invalid initializer

This has happened for quite some time, and I never got around to filing a bug
report about it till now (occuring with -current as of March 9, 2007).

Removing SHAREDSTRINGS=yes from mk.conf allows the build to proceed just fine.

>How-To-Repeat:

Build using build.sh and SHAREDSTRINGS=yes .

>Fix:


>Audit-Trail:
From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/35964: SHAREDSTRINGS breaks build
Date: Sat, 10 Mar 2007 08:33:16 +0000

 On Fri, Mar 09, 2007 at 11:10:03PM +0000, scotte@warped.com wrote:
 > >Number:         35964
 > >Category:       toolchain
 > >Synopsis:       Setting SHAREDSTRINGS=yes causes build to fail

 The whole operation is rather pointless.
 Recent versions of gcc and gld consprire to merge strings at the link
 phase, and without making parts of the C source painful to read.

 	David

 -- 
 David Laight: david@l8s.co.uk

From: Scott Ellis <scotte@warped.com>
To: gnats-bugs@NetBSD.org
Cc: toolchain-manager@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: toolchain/35964: SHAREDSTRINGS breaks build
Date: Sat, 10 Mar 2007 11:24:12 -0800

 David Laight wrote:
 >  The whole operation is rather pointless.
 >  Recent versions of gcc and gld consprire to merge strings at the link
 >  phase, and without making parts of the C source painful to read.

 I tend to agree, however it is documented in /usr/share/mk/bsd.README
 (which is referenced from mk.conf(5)).

 We should probably either remove it from bsd.README, or make it work.

>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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.