Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* egcs-980406 g77 bug
@ 1998-04-08 15:31 Robert Williams
  1998-04-08 18:06 ` Toon Moene
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Williams @ 1998-04-08 15:31 UTC (permalink / raw)
  To: egcs-bugs, axp-list

g77 still can't run this little program
on axp/Linux:

 bob@bob[44] more junk2.f
      program bomb
      character*10 Name
      Name = 'X'
        Write(6,1000) Name(1:1)
 1000   Format(' Name = ',A)
      stop
      end

bob@bob[45] gdb junk2
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for
details.
GDB 4.16 (alpha-redhat-linux), Copyright 1996 Free Software Foundation,
Inc...
(gdb) run
Starting program: /usr/local/src/g94-linux/g94/junk2

Program received signal SIGSEGV, Segmentation fault.
0x120002794 in f_s (s=0x0, curloc=0) at fmt.c:95
95              skip(s);
(gdb) bt
#0  0x120002794 in f_s (s=0x0, curloc=0) at fmt.c:95
#1  0x1200030c0 in pars_f (s=0x0) at fmt.c:370
#2  0x120004650 in s_wsfe (a=0x120107030) at wsfe.c:72
#3  0x12000119c in MAIN__ () at junk2.f:4
#4  0x12000146c in main (argc=0, argv=0x0) at main.c:128


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




^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: egcs-980406 g77 bug
@ 1998-04-08 19:36 Robert Williams
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Williams @ 1998-04-08 19:36 UTC (permalink / raw)
  To: egcs-bugs, axp-list

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/




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-04-08 19:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
1998-04-08 19:36 Robert Williams

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