X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=T4k9WsHzrUP14LLG8+bGGmdhVnUPWSqtccGDATSJ3Y9Rr4AeS5sP6
	oiDpVDgOWhU0WpwXUfj4a6exonwBhcgcyEM2JLUadjhFFMsAAC5ojrFO4qABflwQ
	mgFB093rUeRTwU3LeKgGUf+hC3gF6cUvIOwtq5A61S1JQFcUS3Am38=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=x2hIEEkTDABGNYq5PMr+xVaYJ34=; b=gdY4o45AF2GesLMvunZHjukwwSBF
	rRt52EwLRl3Of/fLmocqXXBwxyhyF72FC3nsmHi44X83GgZnzbf8L7aP68A+q8+o
	THRHyYt8IOBE6JFGRhKNyUz9pXrbl56yKusHGulvsEd4tkoJ8DBya+Z3lABeDS+B
	ay9CQlVU3UbWx3A=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-95.1 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=H*R:D*sourceware.org, Hx-languages-length:1949, H*f:sk:ac2b1ee, H*i:sk:ac2b1ee
X-Spam-User: qpsmtpd, 2 recipients
X-HELO: calimero.vinschen.de
Date: Sun, 21 Aug 2016 20:15:24 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com, newlib@sourceware.org
Subject: Re: GIT source build failure: wcwidth.c::_wcwidth misses __locale_cjk_lang()
Message-ID: <20160821181524.3vwrbss34nt2wwqi@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com, newlib@sourceware.org
Mail-Followup-To: cygwin@cygwin.com, newlib@sourceware.org
References: <9cd85e4f-ac3a-cd76-71bf-445d7676a312@t-online.de> <20160821103028.n7via5q3t4xbusjx@calimero.vinschen.de> <ac2b1ee9-4885-c321-e0f9-678acfda2d95@t-online.de>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="qrft4lod74pqxdqv"
Content-Disposition: inline
In-Reply-To: <ac2b1ee9-4885-c321-e0f9-678acfda2d95@t-online.de>
User-Agent: Mutt/1.6.2-neo (2016-07-23)

--qrft4lod74pqxdqv
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


[CC newlib mailing list since it affects newlib in the first place]

On Aug 21 14:28, Hans-Bernhard Br=C3=B6ker wrote:
> Am 21.08.2016 um 12:30 schrieb Corinna Vinschen:
>=20
> > thanks for the report, but I can't reproduce this.  I can build Cygwin
> > fine natively as well as on Linux, with and without optimization.
>=20
> That's strange.  On Re-examination, it builds here, too, even without the
> added include.  I.e. effectively it took only a `touch` of wcwidth.c to f=
ix
> this.
>=20
> Could there be a problem with the dependency handling in the newlib auto-=
foo
> which caused changes to header files to fail triggering a rebuild?

Yes.  If you just pulled and rebuilt, there's a chance that you got
the new headers without triggering a rebuild of dependent sources.

> And while I'm at it: what _is_ the dependency handling here, anyway?  I
> can't seem to find any.  Which could indeed explain the problem.

That's because dependency handling is basically non-existing in newlib.

Nobody added a patch yet to do that.  Newlib being open-source, there's
of course nothing keeping anybody from adding it (*nudge*, *nudge*).

A big problem for many people keeping them from provide patches to the
configury is that newlib's build system still requires the automake
--cygnus option, which isn't supported by automake for quite some time.
The trick is to use an older versions of automake for rebuilding the
configury.  I'm having goods results with this script, which can be
called from newlib or the libc/libm subdirs:

  #!/bin/bash
  aclocal-1.12.2 -I. -I..
  autoconf
  automake-1.12.2 --cygnus --no-force

The autoconf version actually doesn't matter much so I'm using 2.69.

I'm not automake savvy enough to know what to do to get rid of the
--cygnus requirement :(


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--qrft4lod74pqxdqv
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXue+8AAoJEPU2Bp2uRE+gw4QQAJX4XNKVfxfscmBf6PQE1cap
yOq7BSMyz4DtCo2DW9ZRNjBHO/4Enx1vK2epVLnqEJ7uZ5PpvdMGyHYfsXiV3ASp
9Vl1QjaEmOFloS0kEOwNS4FFNTnpvypzYtjGCR1IAJCHZl8LkPhCb8tLvBA/PQkX
MTY+mjQlpK+vBL5On+KXMIGLxp9Q2MA3N+lvUugEyUZIDuRM4LKD4WWfZkNmKThb
QZw2k89731WD5Du+oEjYLNKY7ZIAwiWxGQE2vtoiwHIlrso/7+zfB6Rq8veKwKbi
3x8oTkFHONFawdoXdJGzb6QALkem3p41GdOKsSnT308uSV9DAw/Vzfte9xyZAXDN
4BKm9H78HRBLXmGgxt2MyBHCwPmlZejhuQI7tu++v/1lPydNDgN3n/kGRtYvate1
cmmMaPwufarwo1QgsK8J//RC1p+eBIRwrr04F6YtSpph0YWzjBOiBalLyuD0013n
hSVUMq/aOxRSgaQf3wa2rPUe9Dl/OLzv6V96P3WM7V+ljCmizag3Ch1BgAstVpnz
qGvp2JWYavrn+SAWfg/6Oc0lYkoWXb+qlnEQ92vm4/xGxZ6lPTO/O007mGsfNbDb
LpYcL4Jbl9tBsl/sG8PbkNwDAZGxDa/ggi+fVlCX8bMJOQmz3EbqS5rkMX/1Tewj
Loxvep/8R5h4QLJNk25l
=j1U9
-----END PGP SIGNATURE-----

--qrft4lod74pqxdqv--
