delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/02/12:17:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 2 Nov 2000 12:02:57 -0500 (EST)
From: Simon Cooke <cooke AT mmace DOT nrl DOT navy DOT mil>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: g77 -mno-cygwin
Message-ID: <Pine.HPX.4.21.0011021141030.109-100000@mmace.nrl.navy.mil>
MIME-Version: 1.0

I tried to use g77 from the latest net release (GNU Fortran 0.5.25 19991024)
with the -mno-cygwin flag, and a trivial example fails to compile:

      program testg77
      end

gives

$ g77 -mno-cygwin testg77.f
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(s_stop.o)(.text+0x2f):s_stop.c: undefined
reference to `_impure_ptr'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(s_stop.o)(.text+0x51):s_stop.c: undefined
reference to `_impure_ptr'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(s_stop.o)(.text+0x6d):s_stop.c: undefined
reference to `_impure_ptr'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(err.o)(.text+0x49f):err.c: undefined
reference to `_impure_ptr'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(err.o)(.text+0x4c1):err.c: undefined
reference to `_impure_ptr'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(err.o)(.text+0x50b):err.c: more
undefined references to `_impure_ptr' follow
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(err.o)(.text+0x76f):err.c: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(err.o)(.text+0x83d):err.c: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(err.o)(.text+0x8ab):err.c: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(endfile.o)(.text+0x5d):endfile.c: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(endfile.o)(.text+0x368):endfile.c: undefined
reference to `__errno'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(open.o)(.text+0x28a):open.c: more
undefined references to `__errno' follow
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(sig_die.o)(.text+0x16):sig_die.c: undefined
reference to `_impure_ptr'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(sig_die.o)(.text+0x30):sig_die.c: undefined
reference to `_impure_ptr'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(sig_die.o)(.text+0x46):sig_die.c: undefined
reference to `_impure_ptr'
collect2: ld returned 1 exit status                                                                                                   
$

A similar problem with gcc was reported in the mailing list

  http://sources.redhat.com/ml/cygwin/2000-05/msg00834.html

and reportedly fixed

  http://sources.redhat.com/ml/cygwin/2000-06/msg00938.html

Must I use a mingw32 version of libg2c.a, or would a similar fix be possible
for g77?

Thanks for any help,
Simon






--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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