From: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
Subject: how to build g77-0.5.18 for alpha?
Date: Mon, 17 Jun 1996 17:00:14 +0200 (MET DST) [thread overview]
Message-ID: <b592fd664dd4564d9f818d166aced161.axp-list@archive.invalid> (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 ^^^^^ ^^^^^
next reply other threads:[~1996-06-17 15:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-17 15:00 Harald Koenig [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-06-17 17:28 how to build g77-0.5.18 for alpha? Craig Burley
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