delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/10/19/21:11:52

X-Recipient: archive-cygwin AT delorie DOT 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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=iOoy
H+J/CXaE1E0R9nnz9L4yp7zXN7OhbVmNQkw4esO6jx8ZwKxX1WMqYYadjKMshMAN
8pkd7uApYH0ks/0VpG5ZgJEtSjDN+Bt8XCzCiE2rHELgjPXbPwU/0iNbTUZvyzRz
J7MY+/LpV2VT15liwLwSs7OPfog5KyPYr7lvRHg=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=s7JdJSt9sr
7JqKkdIy8yWOBkZfc=; b=FqBFELFRQqPsEFGvCUuY+yJLzHb/O+fmm1dj9a+57v
0M1bzQz7PyJ6YkyTDCNH3pgYTRWzMuv0y8VRwDOoFUHsA2M/mTCGPp2LNtKFpI67
5nKKpdEyhvmr9TpKemC4GlKeGyPNCfknxhr9cn/C6djfYWQfoU+unQT6X4XTxHKs
4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, H*M:bc4d, UD:x86_64-unknown-cygwin-gcc.exe, phpsrc
X-HELO: mx1.redhat.com
DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6097D80473
Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=yselkowitz AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6097D80473
Subject: Re: Which is it -pc- or -unknown-
To: cygwin AT cygwin DOT com
References: <a9cce58b-13c4-510e-e93a-188ac407d95c AT gmail DOT com> <59e939fc DOT 21539d0a DOT 6c79e DOT 530e AT mx DOT google DOT com>
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
Message-ID: <54f3b5d4-bc4d-f03e-5c7b-0f983f0783e8@cygwin.com>
Date: Thu, 19 Oct 2017 20:11:33 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <59e939fc.21539d0a.6c79e.530e@mx.google.com>
X-IsSubscribed: yes

--C5dkAfT1BxiR5xGL5xrOiQxEWg53ru4MD
Content-Type: multipart/mixed; boundary="LlthvTuQslB6NSf8o4PCbFbjGrLDWtg2C";
 protected-headers="v1"
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Message-ID: <54f3b5d4-bc4d-f03e-5c7b-0f983f0783e8 AT cygwin DOT com>
Subject: Re: Which is it -pc- or -unknown-
References: <a9cce58b-13c4-510e-e93a-188ac407d95c AT gmail DOT com>
 <59e939fc DOT 21539d0a DOT 6c79e DOT 530e AT mx DOT google DOT com>
In-Reply-To: <59e939fc DOT 21539d0a DOT 6c79e DOT 530e AT mx DOT google DOT com>


--LlthvTuQslB6NSf8o4PCbFbjGrLDWtg2C
Content-Type: text/plain; charset=utf-8
Content-Language: en-CA
Content-Transfer-Encoding: quoted-printable

On 2017-10-19 18:49, Steven Penny wrote:
> On Thu, 19 Oct 2017 17:00:12, cyg Simple wrote:
>> So says you!=C2=A0 The vendor portion has been agreed to be -pc- and it =
isn't
>> -unknown-, a patch then should be created for config.guess to match the
>> agreed upon vendor.=C2=A0 The config.guess script supplies the default to
>> configure for the build and host.=C2=A0 The fact that config.guess suppl=
ies
>> x86_64-unknown-cygwin is used by configure is the reason my assumptions
>> are correct.=C2=A0 If -pc- should be used then config.guess needs to cha=
nge.
>=20
> Let us bring some sanity to this discussion/argument. With this repositor=
y:
>=20
> =C2=A0=C2=A0 git clone --depth 1 git://github.com/php/php-src
> =C2=A0=C2=A0 cd php-src
> =C2=A0=C2=A0 ./buildconf
>=20
> Test 1:
>=20
> =C2=A0=C2=A0 $ ./configure --host x86_64-pc-cygwin
> =C2=A0=C2=A0 checking build system type... x86_64-unknown-cygwin
> =C2=A0=C2=A0 checking host system type... x86_64-pc-cygwin
> =C2=A0=C2=A0 checking for x86_64-pc-cygwin-gcc... x86_64-pc-cygwin-gcc
> =C2=A0=C2=A0 checking whether the C compiler works... yes

Two things wrong with this:

1) If you specify --host, you need to specify --build as well.
2) If you're not cross-compiling or building a toolchain package, you
shouldn't be specifying either.

> Test 2:
>=20
> =C2=A0=C2=A0 $ ./configure --host x86_64-unknown-cygwin
> =C2=A0=C2=A0 checking build system type... x86_64-unknown-cygwin
> =C2=A0=C2=A0 checking host system type... x86_64-unknown-cygwin
> =C2=A0=C2=A0 checking for x86_64-unknown-cygwin-gcc... no
> =C2=A0=C2=A0 checking for cc... cc
> =C2=A0=C2=A0 checking whether the C compiler works... yes
>=20
> So yes, specifying "--host x86_64-unknown-cygwin" causes it to not find
> "x86_64-unknown-cygwin-gcc.exe", which makes sense because that doesnt
> exist.

True, when you *need* to specify --build/--host, then x86_64-pc-cygwin
should be used.  When not (as in this case), then omit them.

--=20
Yaakov


--LlthvTuQslB6NSf8o4PCbFbjGrLDWtg2C--

--C5dkAfT1BxiR5xGL5xrOiQxEWg53ru4MD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHQEARECADQWIQRFYAu5jKh4qpenARn/IK+aZu4flAUCWelNRRYceXNlbGtvd2l0
ekBjeWd3aW4uY29tAAoJEP8gr5pm7h+UPEUAoIGhDFF9X17IQO7HNZJLE9X4/qWS
AJ96q/l4gN1/LZGdgUTss3NDNjCdcA==
=npAJ
-----END PGP SIGNATURE-----

--C5dkAfT1BxiR5xGL5xrOiQxEWg53ru4MD--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019