Subject: pkg/11187: cross-i386-cygwin32 package doesn't build
To: None <gnats-bugs@gnats.netbsd.org>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-bugs
Date: 10/10/2000 07:13:10
>Number:         11187
>Category:       pkg
>Synopsis:       cross-i386-cygwin32 package doesn't build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 10 07:13:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Frederick Bruckman
>Release:        1.5_ALPHA2
>Organization:
	
>Environment:
	
System: NetBSD fiona.home 1.5.ALPHA2 NetBSD 1.5.ALPHA2 (FIONA) #9:
Fri Sep 22 15:28:04 CDT 2000

>Description:
	
In file included from include/syslimits.h:7,
                 from include/limits.h:11,
                 from ./libgcc2.c:1101:
/usr/tmp/pkgsrc/cross/i386-cygwin32/work.i386/egcs-1.1.1/gcc/include/limits.h:117: limits.h: No such file or directory
		  gmake: *** [libgcc2.a] Error 1
		  *** Error code 2

		  Stop.

	The egcs cross build mechanism evidently needs to frob the
	host includes for the benefit of the first stage compiler.
	This mechanism fails for NetBSD, because the script doesn't
	quite understand that NetBSD's sys/syslimits.h is distinct
	from limits.h, and it doesn't know about sys/featuretest.h
	at all. This problem should probably affect some other cross
	targets as well, although this seems to be the only _packaged_
	cross-compiler affected.
>How-To-Repeat:
	
	Try to build the package.
>Fix:
	
	I'm able to get it to build by coping sys/syslimits.h and
	sys/featuretest.h into the private includes directory. I'm
	still at a loss as to what the "right" solution should look
	like, and I have no way of testing the resulting binaries.
	[The headers for the target system aren't installed by this
	package, and my web search on "cygwin32" came up empty.]

	Might be worthwile to try this with gcc-2.95.2.

>Release-Note:
>Audit-Trail:
>Unformatted: