From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,73de85f04958b98f X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,73de85f04958b98f X-Google-Attributes: gid1164f8,public From: dsr@lns598.lns.cornell.edu (Daniel S. Riley) Subject: Re: gcc and dUnix 3.2c Date: 1995/09/17 Message-ID: #1/1 X-Deja-AN: 110289572 sender: dsr@lns100.lns.cornell.edu references: <436o64$psa@amhux3.amherst.edu> <43baqr$7vm@heidelberg.rutgers.edu> organization: Wilson Lab, Cornell U., Ithaca, NY 14853 newsgroups: comp.unix.osf.osf1,comp.sys.dec In article <43baqr$7vm@heidelberg.rutgers.edu> hedrick@heidelberg.rutgers.edu (Charles Hedrick) writes: hedrick> Symptom: hedrick> compile any program with gcc. Get an error from mips-tfile, which hedrick> aborts the compile hedrick> Diagnosis: hedrick> it appears that DEC's "as" has changed between 3.2 and 3.2c. The hedrick> new one produces .o files substantially smaller than the old hedrick> one. mips-tfile is doing some transformation on the .o files hedrick> (whose exact nature I didn't try to figure out. The very hedrick> concept of MIPS-specific postprocessing on an Alpha seems hedrick> wierd. My workaround may be a hack, but it looks like the hedrick> thing that blew up is one too.) Apparently mips-tfile gets hedrick> confused because the .o files produced under 3.2c are not hedrick> in the format it expects mips-tfile is a hack to allow gcc to add some debugging information to the object modules that can't be inserted via the assembler. The Alpha object format is partially derived from the MIPS format, which is why mips-tfile is used. mips-tfile depends on the presence of some basic debugging records which 'as' used to include by default, but doesn't with 3.2c. After analyzing the problem, I came up with this minimal fix (previously posted): *** config/alpha/alpha.h~ Thu Jun 15 09:08:45 1995 --- config/alpha/alpha.h Fri Jun 23 13:09:21 1995 *************** *** 43,49 **** #define SIGNED_CHAR_SPEC "%{funsigned-char:-D__CHAR_UNSIGNED__}" /* No point in running CPP on our assembler output. */ ! #define ASM_SPEC "-nocpp %{pg}" /* Under OSF/1, -p and -pg require -lprof1. */ --- 43,49 ---- #define SIGNED_CHAR_SPEC "%{funsigned-char:-D__CHAR_UNSIGNED__}" /* No point in running CPP on our assembler output. */ ! #define ASM_SPEC "-g3 -nocpp %{pg}" /* Under OSF/1, -p and -pg require -lprof1. */ which has worked for everyone that I have heard from except pdchapin@news.amherst.edu (PAUL D. CHAPIN), who writes: pdchapin> I recently posted a question about a problem with the make pdchapin> of gcc under dUnix 3.2c, and the fact that the supposed fix pdchapin> merely got me to stage 1 before blowing up. which I'm at a loss to explain. I did receive a report from a person that had to re-ftp and unpack the gcc sources and apply the patch to that in order to get a successful build--which I didn't understand either, but then I *never* build GNU utilities in the source tree (VPATH is your friend :-), so our source tree is clean of any artifacts from old builds. Note that restarting the make from where it failed *definitely* won't do the right thing, as the Makefile does not including any dependencies on the machine config files. -- Dan Riley Internet: dsr@lns598.lns.cornell.edu Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr) "Distance means nothing/To me." -Kate Bush