Subject: toolchain/35964: SHAREDSTRINGS breaks build
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <scotte@warped.com>
List: netbsd-bugs
Date: 03/09/2007 23:10:03
>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
>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:
	

>Unformatted: