X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HOSTEUROPE_IXHASH,NIXSPAM_IXHASH,RP_MATCHES_RCVD,TW_BJ X-Spam-Check-By: sourceware.org X-DKIM: Sendmail DKIM Filter v2.8.3 mux2.uit.no pA4CXa6A032044 From: =?utf-8?B?RWR2YXJkc2VuIEvDpXJl?= To: "moss AT cs DOT umass DOT edu" CC: "cygwin AT cygwin DOT com" Subject: Re: Problem with execution of binary file Date: Fri, 4 Nov 2011 12:33:36 +0000 Message-ID: <1320409986.5480.219.camel@kare-desktop> References: <1320322806 DOT 5480 DOT 161 DOT camel AT kare-desktop> <4EB30E21 DOT 3090707 AT cs DOT umass DOT edu> <1320396611 DOT 5480 DOT 196 DOT camel AT kare-desktop> <4EB3C378 DOT 6060308 AT cs DOT umass DOT edu> In-Reply-To: <4EB3C378.6060308@cs.umass.edu> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id pA4CY3Iv014819 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