delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/26/10:27:02

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Fortran Compiler Error CMBFAST
Date: Mon, 26 Jun 2006 10:26:23 -0400
Message-ID: <4C89134832705D4D85A6CD2EBF38AE0F549723@PAUMAILU03.ags.agere.com>
In-Reply-To: <449F7983.7000606@sbcglobal.net>
From: "Williams, Gerald S \(Jerry\)" <gsw AT agere DOT com>
To: <cygwin AT cygwin DOT com>
Cc: "Brad Krane" <brad DOT krane AT gmail DOT com>, "Dave Korn" <dave DOT korn AT artimi DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k5QEQxR4005664

Brad Krane wrote:
> I'm trying to compile the scientific package CMBFAST-4.5.1 in the
> cygwin environment using g77. I get the following error...
> 
> f77 -O2   -c -o jlgen.o jlgen.F
> jlgen.F: In program `jlgen':
> jlgen.F:14:
>         include 'cmbfast.inc'
>         ^
> Unable to open INCLUDE file `cmbfast.inc' at (^)

Tim Prince wrote:
> Normally, you would specify the path to search for include files with
> -I, if it is not in the current working directory.

I looked at the library, and the referenced include file
*is* in the same directory. The library even includes a
configure script, so this isn't simple pilot error--it
looks like there is a bug in the compiler.

For now, you can work around the problem by adding -I. to
the command lines, or more likely to the end of FFLAGS in
the Makefile (after running ./configure).

I don't use FORTRAN enough to say whether the behavior we
are seeing is correct, though from the evidence I've seen
I'd say it isn't.

gsw

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


- Raw text -


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