Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* how to build g77-0.5.18 for alpha?
@ 1996-06-17 15:00 Harald Koenig
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Koenig @ 1996-06-17 15:00 UTC (permalink / raw)


Hi,

I've tried to build g77-0.5.18 using plain gcc-2.7.2 sources.
for that I've copied config/alpha/*linux* from the Red Hat gccaxp-2.7.1-1
sources only needing this one more patch:

--- config/alpha/xm-alpha.h~    Thu Aug 31 23:52:27 1995
+++ config/alpha/xm-alpha.h     Mon Jun 17 13:53:29 1996
@@ -45,6 +45,7 @@
 #if !defined(__GNUC__) && !defined(_WIN32)
 #include <alloca.h>
 #else
+#undef alloca
 extern void *alloca ();
 #endif

but trying to compile a hello-world program I get 

	# ./g77 --driver=./xgcc -B./ -c hello.f
	f/com.c:10566: failed assertion `ffetype_size (type) == sizeof (ffetargetInteger1)'
	xgcc: Internal compiler error: program f771 got fatal signal 6

are there any patches to build g77 in AXP (or a newer g77 version) ?  
or is there a complete binary package ?

any rough time scale for g77-0.6 ?

I've tried the g77 binary from Craftwork (thanks to Mauro DePalma for the CDROM!)
which is based on g77-0.5.17.  this g77 works but I found at least two
problem which is shown by the small program below:

- the variable "S" is not set to the correct value for all optimization levels
  above "-O0"
- tarray doesn't get initialized to zero for everything above "-O0"

	# g77 -O0 t.f
	 -0.250107944  0.937445998  0.968217969  0.968217969
	  0.  0.
	# g77 -O1 t.f
	 -0.250107944  0.937445998  0.  0.
	  2.12366486IOT trap/Abort (core dumped)
	# g77 -O2 t.f
	 -0.250107944  0.937445998  0.968217969  0.
	  2.12366486IOT trap/Abort (core dumped)

Harald
-------------------------------------------------------------------------------
      program t

      real a(10), fc(10), ff(10)
      real tarray(2)

      a(5) = 1
      a(6) = 1.5
      a(7) = 2

      DO 4 I=5,7
         FF(I)=SIN(.0174533*A(I))
         FC(I)=COS(.0174533*A(I))
 4    CONTINUE
      Q=(FC(7)-FC(5)*FC(6))/(FF(5)*FF(6))

      S=SQRT(AMAX1(0.,1.-Q**2))

      print *,q,AMAX1(0.,1.-Q**2),SQRT(AMAX1(0.,1.-Q**2)),s

      print *,tarray(1),tarray(2)
      
      end
-------------------------------------------------------------------------------

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

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

* Re: how to build g77-0.5.18 for alpha?
@ 1996-06-17 17:28 Craig Burley
  0 siblings, 0 replies; 2+ messages in thread
From: Craig Burley @ 1996-06-17 17:28 UTC (permalink / raw)


[koenig@tat.physik.uni-tuebingen.de writes:]

>are there any patches to build g77 in AXP (or a newer g77 version) ?  
>or is there a complete binary package ?
>
>any rough time scale for g77-0.6 ?

[Note, I am on axp-list already, so you don't have to email me
separately.  (I think the same goes for mauro.)  OTOH, maybe
axp-list as a whole isn't too interested in this, in which case
you could just email me directly (but I'm following up to this
list in case there is interest in answers to your questions).]

There are some patches being tested by a small group of g77
developers that have made a big dent in getting g77 to work on
Alphas.  I've been too busy the past couple of weeks to get
further, plus, I didn't have any actual failing cases to
investigate until about a week ago.  But, I now have two in
my in-box, which I hope to get to this weekend, if not earlier.

The timing on g77/Alpha is that, although I'm still wrapping
up work on a temp job, I'm using weekends and other spare time
to continue work on this.  0.6 won't be started until sometime
after I finish the temp work, which puts it no earlier than
July, and I doubt earlier than August.  (We're probably going
to finish our basement in July, which will yield a more workable
office for me, plus we're taking a vacation in late July.)

Dunno how long 0.6 will take.  Having an Alpha to do the work on,
if I'm able to keep this loaner for a while longer, will make a
big difference.  (Thanks again to Craftworks, Carrera, and DCG
for making this machine available to me!  ;-)

        tq vm, (burley)

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

end of thread, other threads:[~1996-06-17 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-17 15:00 how to build g77-0.5.18 for alpha? Harald Koenig
  -- strict thread matches above, loose matches on Subject: below --
1996-06-17 17:28 Craig Burley

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