public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: difference between cygwin32 and cygwin64 mounts breaks libtool
Date: Thu, 24 Nov 2016 15:09:00 -0000	[thread overview]
Message-ID: <e2cb5172-aaed-5f80-9eb9-2e379f16ff22@SystematicSw.ab.ca> (raw)
Message-ID: <20161124150900.IFV8leHiDW2el71Wj0O5smJAvdCOwFUA6qBchsZ12Kk@z> (raw)
In-Reply-To: <3665755.JgPNNTvVxA@linuix.haible.de>

On 2016-11-23 10:09, Bruno Haible wrote:
> Brian Inglis wrote in https://cygwin.com/ml/cygwin/2016-11/msg00259.html:
>> Have you got LT_CYGPATH pointing to cygwin32 cygpath
> Thanks for the suggestion, but alas:
> - There is no cygwin32 cygpath in
> /usr/i686-pc-cygwin/sys-root/usr/bin.
> - Letting LT_CYGPATH point to /usr/bin/cygpath.exe or
> C:\cygwin64\usr\bin\cygpath.exe does not change the symptom or fix
> the problem.

If you want to run 32 bit code, you need to install cygwin32 in a
different directory e.g. c:/cygwin32/ and point LT_CYGPATH to
/proc/cygdrive/c/cygwin32/bin/cygpath. That is how you can use
cygwin32 cygwin1.dll, and access its 32 bit mount table, which was
part of your original question, and run 32 bit builds.

As the libtool docs explain, Cygwin64 cygpath is used to produce
the canonical Windows file name, then that is converted with
Cygwin32 cygpath to a POSIX filename in that environment.
You can not just magically run Cygwin32 code under Cygwin64
without the cygwin32 runtime dll(s) linked to the WoW dlls.

You could also run a straight build in that cygwin32 environment
without cross-compilation, using the same cygport build file as
64 bit. You are using cygport to simplify your Cygwin builds,
right?

In Linux environments, cygwin32 has to be installed under Wine,
and everything adapted to run Cygwin32 code under Wine, as
explained in the libtool docs mentioned:
https://www.gnu.org/software/libtool/manual/html_node/Cygwin_002fWindows-File-Name-Conversion.html#Cygwin_002fWindows-File-Name-Conversion
The alternative the docs say is to move the binaries to a
Cygwin32 environment for testing.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
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

  reply	other threads:[~2016-11-24  3:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-19  1:48 Bruno Haible
2016-11-21  8:26 ` cyg Simple
2016-11-21 16:57   ` Brian Inglis
2016-11-24  3:33 ` Bruno Haible
2016-11-24 10:47   ` Brian Inglis [this message]
2016-11-24 15:09     ` Brian Inglis
2016-11-24 16:25     ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e2cb5172-aaed-5f80-9eb9-2e379f16ff22@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).