delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/12/03:37:30

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:date:from:to:subject:message-id:mime-version
:content-type; q=dns; s=default; b=RBZneJAH+WJIu04g4TUjpE0wVH2Yq
JKtqThKMtqARsxbTgnEXBF7GKaH8yBgNSYGp4RjEgGnGgw85rsjSdm6Ql2l9EEsU
YyuQlUJ6Td0QSnoMik6wvS/Bm+RVq1N0D9bj6MJ/gBPMceK9NnCcTlPYXAr/MGaO
OVbdZxLqfv5Mt0=
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:mime-version
:content-type; s=default; bh=XQdrMuZA8MjSLX17g6C1MmL6fMc=; b=PwP
m7tfhcL3pJnUBMsynraOdcRhN/EADjPoeuxzmOQVO+/dYzThhjDEkisyMCzFLuiR
PT0/WVtbk5GX5zPkymh6rz29v9Ia4XzOTfBCv9wiai2gIIYuPUGTTjjlXP8J+SmS
SGZuI89bdqjMLHAC3qAvQ/zutplhYPgTTsX4jd6I=
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
X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD autolearn=ham version=3.3.1
Date: Wed, 12 Jun 2013 08:37:05 +0100 (GMT Daylight Time)
From: Arthur Norman <acn1 AT cam DOT ac DOT uk>
To: cygwin AT cygwin DOT com
Subject: [64bit] Xlib.h not available in cross-compile-to-self usage
Message-ID: <alpine.WNT.2.00.1306120819310.1460@panamint>
User-Agent: Alpine 2.00 (WNT 1167 2008-08-23)
MIME-Version: 1.0

On a 32-bit cygwin I get
$ uname -a
CYGWIN_NT-6.1-WOW64 panamint 1.7.20(0.266/5/3) 2013-06-07 11:11 i686 Cygwin
$ find /usr -name Xlib.h -print
/usr/include/X11/Xlib.h
/usr/x86_64-pc-cygwin/sys-root/usr/include/X11/Xlib.h
/usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int/Tk/pTk/Xlib.h

and using either gcc or x86_64-pc-cygwin-gcc I can build X apps, but if I 
use i686-pc-cygwin-gcc I have some of the X headers but not (eg) Xlib.h.

On 64-bit cygwin despite having installed every packaged with cygwin32 in 
its name as per the setup serach box I get
CYGWIN_NT-6.1 panamint 1.7.21(0.266/5/3) 2013-06-10 17:39 x86_64 Cygwin
$ find /usr -name Xlib.h -print
/usr/include/X11/Xlib.h
acn1 AT panamint usr
and so while gcc works i686-pc-cygwin-gcc will build console but not X 
apps. However it "wants" to:
$ find /usr -name X.h -print
/usr/i686-pc-cygwin/sys-root/usr/include/X11/X.h
/usr/include/X11/X.h
since a cygwin32 X.h is provided.

My presumption is that this is just a transitory feature of the 64-bit 
release (which is very welcome indeed - thanks so much) getting sorted 
out. I had been trying using an explicit "--host=.." with a view to being 
able to build both 32 and 64-bit versions of my code regardless of whether 
I was on a 32 or 64-bit shell platform.

    Arthur

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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