From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,37d2b72ad0b87d8c,start X-Google-Attributes: gid111c93,public From: Jeff Ballin Subject: Program compiled on Intel linux runs, doesn't on Alpha --Readable , repost Date: 1999/06/04 Message-ID: #1/1 X-Deja-AN: 485777664 Organization: University of Wisconsin, Madison Content-Type: TEXT/PLAIN; charset=US-ASCII Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha 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 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