From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199705230735.AAA25228@wasatch.ps.uci.edu> Date: Fri, 23 May 1997 00:35:33 -0700 From: Christopher J. Grayce Subject: g77 0.5.20 Alpha/ELF => compiles, wrong output I have reluctantly concluded that gcc 2.7.2.2 and (more importantly for me) g77 0.5.20 do not work on Alpha/ELF -- is this true?? I can compile both without error by using the hack suggested by sundiver@hellfire.dusers.drexel.edu in this list on 13 March 1997 (see details below), but the resulting compilers do not produce correct object code. This is obvious in the Fortran case: if the source contains FORMAT statements or a write statement of the form WRITE(6,FMT='("foo = ",i2)') INTEGER, then the object code gets a SIGSEGV as soon as it reaches this statement. (Code that produces no output to stdout may work correctly, however.) I can compile and run the same code without error using g77 on a DEC 600 AlphaStation running Digital Unix 3.2C (g77 0.5.20 installs without error on this system using the standard build method that comes with the package). Any suggestions would be appreciated. Christopher Grayce (cgrayce@uci.edu) hardware = PC164 motherboard, SCSI drive (NCR53c875 adapter), IDE ATAPI CD, 128 Mb RAM, DEC 450 ethernet card, ARC firmware. software = plain RH 4.1 installation from CD plus kernel-headers-2.0.30-2.alpha.rpm kernel-source-2.0.30-2.alpha.rpm (which were used to build a 2.0.30 kernel with gcc-2.7.2.1) build method: (1) obtained gcc-2.7.2.1-2.src.rpm from a Redhat mirror (2) rpm -i gcc-2.7.2.1-2.src.rpm rpm -bp redhat/SPECS/gcc-2.7.2.1.spec (3) obtained gcc-2.7.2.2.tar.gz and g77-0.5.20.tar.gz from prep.ai.mit.edu. Followed g77 INSTALL instructions up to running configure. (4) Copied config/alpha/elf.h from gcc-2.7.2.1 source tree to gcc-2.7.2.2 source tree. (5) Changed line 552 of "configure" in gcc-2.7.2.2 source top directory from "tm_file=alpha/linux.h" to "tm_file=alpha/elf.h". (6) Added "HAVE_STRERROR" to alpha/config/xm-linux.h. (7) Changed line 48 of config/alpha/xm-alpha.h from "#ifndef __alpha__" to "#ifndef alloca". (8) ./configure --prefix=/usr (9) make bootstrap [no errors] (10) make compare [no errors except for expected f/zzz.o] (11) make install [no errors] -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com