This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Problem compiling NONMEM with mingw gfortran 4.3.0 builds
- From: Steve Chapel <steven dot chapel at sbcglobal dot net>
- To: Daniel Franke <franke dot daniel at gmail dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 16 Jul 2007 11:30:35 -0400
- Subject: Re: Problem compiling NONMEM with mingw gfortran 4.3.0 builds
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:X-YMail-OSG:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=XxWGtYNS4Hhc0dC3mANCsNTID4wUGDA2ev/v38ahUNNVtkC7c/c+E4t5/EdNPyHm83I40NA5zJyxcrmqgSKUF479WAkGF0HyF0+8qhwEH9poo4VpYmXLM5YKMXu/xiILMw+y7kuc+ddLy6Knsp0OhTZfAiWvAz82nXYyADFHMHc= ;
- References: <469B7DDE.1050500@sbcglobal.net> <640ad44b0707160735g1161e839gcd20c70b239806a4@mail.gmail.com>
Daniel Franke wrote:
2007/7/16, Steve Chapel <steven.chapel@sbcglobal.net>:
Steve,
I'm trying to compile a Fortran program called NONMEM
[...]
I get errors at the link stage about undefined references to
_fpreset, _fmode,
__cpu_features_init, _gthread_mutex_unlock, and _CR_MT. Does anyone know
why I might be getting these errors?
Did you rebuild all (fortran) libraries your app depends on with
gfortran?
Good catch! It turned out that I was picking up a different version of
ar in my path, and also had a path to different libraries in
LIBRARY_PATH. After fixing all executables and libraries to use
gfortran, the program compiled and ran, but I got a Fortran runtime
error: Bad file descriptor. It also shows the offending source code line
as "(unit=29, file='CONOUT$')". Should CONOUT$ be con instead?
Thanks,
Steve