delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/17/11:01:51

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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=MJD6RGCDEEMoNmcP
pmWLB7pDSPWbHwyGqU7l8Prcr1K3mftGkoG9I4JL1Vds57CLEq0/UY4Hb3IBT/Dv
y55H2iLUecJ3tKHRpQEexc3z4iziwMrYZ3X7Za71xbIwTYkmxQPLlMF0C4j7TXig
0D6F1+lB3RXRYkRHU0lWS6SDoQY=
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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=hjnb0M6QNAh7wLN1JVX/8D
zUZZ8=; b=sRd6VHf8n8LTkgbB3Pivry3UM/ml/90BGz3faKCdNrfKHVEjD4CLtT
+yobLnWzyISuhtz+tuj0E45pFUrG6Vf6q1oeRpf5tZD8QsuaIpiiO0z63Onvlv9G
ib2J1Nzzun0UIo1lsphYvxbiLv+O63GxNepVm8B3fuSvACAF4qxvY=
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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: csmail.cs.umass.edu
Message-ID: <54412F4B.6000806@cs.umass.edu>
Date: Fri, 17 Oct 2014 11:01:31 -0400
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT edu
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Running a program in Cygwin that was compiled in Linux
References: <loom DOT 20141017T153243-245 AT post DOT gmane DOT org> <CAMCbSMp62juUxOrL89VC-oHtZpr8+oGtK5z5dau6s_SvF130cg AT mail DOT gmail DOT com>
In-Reply-To: <CAMCbSMp62juUxOrL89VC-oHtZpr8+oGtK5z5dau6s_SvF130cg@mail.gmail.com>
X-IsSubscribed: yes

On 10/17/2014 10:06 AM, Arjen Markus wrote:
> Hi Linda,
>
> I doubt very much that you can just copy the object files and get a
> working program that way. Does g77 have a cross-compile option?

I will go farther and say the objects simply will not work.
The object format is different, among other things.  Cygwin
is not a pure emulation -- it is a *Windows* library that tries
to make Windows look like Linux (Posix, actually), mostly.

> An alternative is to identify the problem areas in the programs and
> adjust them to standard Fortran (g77 does allow a number of
> non-standard constructs, but these date back some 30 years). If you
> need help with that, you can ask on comp.lang.fortran (or perhaps on
> the gfortran mailing list, though that is more for the compiler itself
> than for the programs you want to build with it).

Either you need to make the program build under cygwin, using
cygwin compilers, or port the program to Windows, or run inside
a virtual machine, such as Virtual Box.  Maybe a virtual machine
is your best bet here.

Regards -- Eliot Moss

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