Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Robert Williams <bob@bob.usuf2.usuhs.mil>
To: egcs-bugs@cygnus.com, axp-list@redhat.com
Subject: Re: egcs-980406 g77 bug
Date: Wed, 08 Apr 1998 14:36:59 -0500	[thread overview]
Message-ID: <352BD1DB.BD887230@bob.usuf2.usuhs.mil> (raw)

I'm looking for the reason why I can't
get my little fortran program to compile and run
under axp/Linux
with egcs-980406 when two others apparently can:

      program bomb
      character*15 Message
      Message = 'Hello world!'
        Write(6,1000) Message(1:12)
 1000   Format(A)
      stop
      end

I suspect
I'm linking to the wrong library somewhere.
It's clear that I'm linking to glibc-devel files (crt1.o)
and to glibc.so, both not part of egcs.
This is necessary, no?
The libf2c.a is definitely from egcs-980406.
Does anyone have any suggestions?

Here is my compile/link output:

bob@bob[5] f77 -t -g junk.f -o junk
/usr/bin/ld: mode elf64alpha
/usr/lib/crt1.o
/usr/lib/crti.o
/usr/lib/crtbegin.o
/var/tmp/cca309511.o
(/usr/local/lib/libf2c.a)main.o
(/usr/local/lib/libf2c.a)s_stop.o
(/usr/local/lib/libf2c.a)sig_die.o
(/usr/local/lib/libf2c.a)s_copy.o
(/usr/local/lib/libf2c.a)close.o
(/usr/local/lib/libf2c.a)endfile.o
(/usr/local/lib/libf2c.a)err.o
(/usr/local/lib/libf2c.a)fmt.o
(/usr/local/lib/libf2c.a)open.o
(/usr/local/lib/libf2c.a)sfe.o
(/usr/local/lib/libf2c.a)util.o
(/usr/local/lib/libf2c.a)wsfe.o
(/usr/local/lib/libf2c.a)wrtfmt.o
(/usr/local/lib/libf2c.a)fmtlib.o
(/usr/local/lib/libf2c.a)wref.o
-lm (/usr/lib/libm.so)
/lib/libc.so.6.1
(/usr/lib/libc_nonshared.a)stat.So
(/usr/lib/libc_nonshared.a)fstat.So
/usr/lib/crtend.o
/usr/lib/crtn.o

Also:

bob@bob[40] rpm -qa | grep glibc
rpm-devel-2.4.12-1glibc
rpm-2.4.12-1glibc
glibc-static-0.961212-5
glibc-devel-2.0.7-6
glibc-2.0.7-6
bob@bob[41] rpm -q gcc
gcc-2.7.2.3-8


--
Bob Williams, http://bob.usuf2.usuhs.mil/




             reply	other threads:[~1998-04-08 19:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-08 19:36 Robert Williams [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-04-08 15:31 egcs-980406 g77 bug Robert Williams
1998-04-08 18:06 ` Toon Moene
1998-04-08 18:21   ` Robert Williams
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox