public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Edvardsen Kåre" <kare.edvardsen@uit.no>
To: "moss@cs.umass.edu" <moss@cs.umass.edu>
Cc: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: Problem with execution of binary file
Date: Fri, 04 Nov 2011 12:34:00 -0000	[thread overview]
Message-ID: <1320409986.5480.219.camel@kare-desktop> (raw)
In-Reply-To: <4EB3C378.6060308@cs.umass.edu>

On fr., 2011-11-04 at 05:50 -0500, Eliot Moss wrote:
> On 11/4/2011 3:50 AM, Edvardsen Kåre wrote:
> >
> >> On 11/3/2011 4:56 PM, Eliot Moss wrote:
> >>          Ok, so here's one thing about bash: to get it to
> >>          run an *executable* (as opposed to a *script*),
> >>          you need to say "bash -c FLEXPART_GFORTRAN".
> >>          You might try strace on that. In addition to the
> >>          objdump suggestion.
> >>
> >> I have a moment to expand on this a little. The
> >> 80-byte read we saw was bash looking at the
> >> beginning of what it that was supposed to be a
> >> script (not a binary) and seeing if it really
> >> appeared to be a script. I did not look like a
> >> script, so bash gave up. (It checks whether the
> >> first line is all printable characters or white
> >> space.)
> >>
> >> Best -- Eliot Moss
> >>
> >
> > Hmm, wonder why bash would interpret it as a script. Anyway, I will get
> > back to you later with output from strace and objdump.
> 
> Because you did not specify -c ... EM

I'm still learning :)

Anyway, I've installed two versions of cygwin on the same machine - the
first was installed around Oct. 3 and the second one from a few days
ago. Compiling exactly the same software on both versions gives success
on the older installation and failure on the newer one. Could it be that
newer versions of some libs/compilers have bugs? Something different
between those two versions is for sure causing the problem.
Oviously, I'm using gfortran for building FLEXPART_GFORTRAN but I've
also installed from source the latest version of "jasper" and "grib_api"
libs (required by my FLEXPART software), and I'm not sure in detail what
is involved in building those libs.

Do you have any immediate idea of what could be the potential problem?

Cheers,
Kåre

  reply	other threads:[~2011-11-04 12:34 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03 12:21 Edvardsen Kåre
2011-11-03 12:53 ` Corinna Vinschen
2011-11-03 13:22 ` Eliot Moss
2011-11-03 14:11   ` Edvardsen Kåre
2011-11-03 19:54     ` Mark Geisert
2011-11-03 21:57 ` Eliot Moss
2011-11-04  1:54   ` Eliot Moss
2011-11-04  8:51   ` Edvardsen Kåre
2011-11-04 10:50     ` Eliot Moss
2011-11-04 12:34       ` Edvardsen Kåre [this message]
2011-11-04 17:56         ` Mark Geisert
2011-11-04 18:00           ` Eliot Moss
2011-11-04 18:21             ` Mark Geisert
2011-11-05  9:52               ` David Sastre
     [not found] <1320325271.5480.163.camel@kare-desktop>
2011-11-03 13:19 ` Edvardsen Kåre
2011-11-07  9:55 Edvardsen Kåre
2011-11-07 19:26 ` Mark Geisert
2011-11-08 10:02   ` Mark Geisert
2011-11-08 10:08     ` Mark Geisert
2011-11-08 11:22 Edvardsen Kåre

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=1320409986.5480.219.camel@kare-desktop \
    --to=kare.edvardsen@uit.no \
    --cc=cygwin@cygwin.com \
    --cc=moss@cs.umass.edu \
    /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).