This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g77 -mno-cygwin



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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]