Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Program compiled on Intel linux runs, doesn't on Alpha --Readable , repost
@ 1999-06-04  4:00 Jeff Ballin
  1999-06-05  4:00 ` Toon Moene
  1999-06-08  4:00 ` b_duke
  0 siblings, 2 replies; 3+ messages in thread
From: Jeff Ballin @ 1999-06-04  4:00 UTC (permalink / raw)



This is the second time I posted this....The first time I used Netscape,
and things got mangled.  This is sent from pine.  Have a good day.


Hello All,

A have fortran sources which compile and run fine on an Intel box using
egcs-2.91.60 (1.1.1 release).  When I take the same sources and try to
compile on an Alpha LX164 running Redhat 6.0 using egcs 2.91.66 (1.1.2
release), it compiles but seg faults and dumps core when dynamic arrays 
are addressed, deleted, created, etc.  Though I do not have personal
experience to say this, the documentation states that the program
compiles successfully on VAX/VMS, Ultrix V4.2+, IRIX, OSF/1, OpenVMS,
and SunOS.  Alpha Linux is not officially supported as the developers
do not have access to a machine.  Since the compilers are almost the
same (downgrading egcs on the Alpha is not an option), and since the
source code seems to be fairly portable, I am wondering if perhaps
 there is a compiler flag that is missing or incorrect for this program.
I am certainly open to other suggestions.

The compiler flags currently in use are


for g77: -funroll-all-loops -fomit-frame-pointer -fno-second-underscore \
-fno-automatic -static

<Note: -malign-double was in the original Makefile declaration, but  is
not supported by egcs on Alpha machines (or at least this one).  Thus it 
was deleted.>

for gcc: -fno-second-underscore -fno-automatic -I/usr/X11R6/include


The final link step was

 g77 -Wl,-u,MAIN__ /usr/X11R6/lib/libX11.a prog.a grfx.a
				       	   \-program libraries--/


If this is the wrong news group to be asking, my apologies.  In that
case, please direct me to an appropriate group.

Thank you for your time.

Jeff Ballin
jeff@biochem.wisc.edu





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

* Re: Program compiled on Intel linux runs, doesn't on Alpha --Readable , repost
  1999-06-04  4:00 Program compiled on Intel linux runs, doesn't on Alpha --Readable , repost Jeff Ballin
@ 1999-06-05  4:00 ` Toon Moene
  1999-06-08  4:00 ` b_duke
  1 sibling, 0 replies; 3+ messages in thread
From: Toon Moene @ 1999-06-05  4:00 UTC (permalink / raw)


Jeff Ballin wrote:

> A have fortran sources which compile and run fine on an Intel box using
> egcs-2.91.60 (1.1.1 release).  When I take the same sources and try to
> compile on an Alpha LX164 running Redhat 6.0 using egcs 2.91.66 (1.1.2
> release), it compiles but seg faults and dumps core when dynamic arrays
> are addressed, deleted, created, etc. 

The easiest way to get this looked into is to send a bug report to
egcs-bugs@egcs.cygnus.com.

See http://egcs.cygnus.com/faq.html#bugreport for details on what we
need to investigate it.

Cheers,

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://world.std.com/~burley/g77.html



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

* Re: Program compiled on Intel linux runs, doesn't on Alpha --Readable , repost
  1999-06-04  4:00 Program compiled on Intel linux runs, doesn't on Alpha --Readable , repost Jeff Ballin
  1999-06-05  4:00 ` Toon Moene
@ 1999-06-08  4:00 ` b_duke
  1 sibling, 0 replies; 3+ messages in thread
From: b_duke @ 1999-06-08  4:00 UTC (permalink / raw)


In article
<Pine.LNX.3.96.990604142000.1588D-100000@enthalpy.biochem.wisc.edu>,
  Jeff Ballin <jeff@enthalpy.biochem.wisc.edu> wrote:
>
> This is the second time I posted this....The first time I used
Netscape,
> and things got mangled.  This is sent from pine.  Have a good day.
>
> Hello All,
>
> A have fortran sources which compile and run fine on an Intel box
using
> egcs-2.91.60 (1.1.1 release).  When I take the same sources and try to
> compile on an Alpha LX164 running Redhat 6.0 using egcs 2.91.66 (1.1.2
> release), it compiles but seg faults and dumps core when dynamic
arrays
> are addressed, deleted, created, etc.

This is similar to an experience I have had. What do you
mean by dynamic arrays? How are these set up in your f77
code? You may have to shift all the integers that are
being used to access your dynamic arrays to integer*8.
If you are using malloc it gives very large numbers in
alpha linux and you need integer *8 to hold them. This
is not the case with PC linux.

Cheers, Brian Salter-Duke

> Though I do not have personal
> experience to say this, the documentation states that the program
> compiles successfully on VAX/VMS, Ultrix V4.2+, IRIX, OSF/1, OpenVMS,
> and SunOS.  Alpha Linux is not officially supported as the developers
> do not have access to a machine.  Since the compilers are almost the
> same (downgrading egcs on the Alpha is not an option), and since the
> source code seems to be fairly portable, I am wondering if perhaps
>  there is a compiler flag that is missing or incorrect for this
program.
> I am certainly open to other suggestions.
>
> The compiler flags currently in use are
>
> for g77: -funroll-all-loops -fomit-frame-pointer
-fno-second-underscore \
> -fno-automatic -static
>
> <Note: -malign-double was in the original Makefile declaration, but
is
> not supported by egcs on Alpha machines (or at least this one).  Thus
it
> was deleted.>
>
> for gcc: -fno-second-underscore -fno-automatic -I/usr/X11R6/include
>
> The final link step was
>
>  g77 -Wl,-u,MAIN__ /usr/X11R6/lib/libX11.a prog.a grfx.a
> 				       	   \-program libraries--/
>
> If this is the wrong news group to be asking, my apologies.  In that
> case, please direct me to an appropriate group.
>
> Thank you for your time.
>
> Jeff Ballin
> jeff@biochem.wisc.edu
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



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

end of thread, other threads:[~1999-06-08  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-04  4:00 Program compiled on Intel linux runs, doesn't on Alpha --Readable , repost Jeff Ballin
1999-06-05  4:00 ` Toon Moene
1999-06-08  4:00 ` b_duke

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