From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,73de85f04958b98f X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,73de85f04958b98f X-Google-Attributes: gidfee84,public From: hedrick@heidelberg.rutgers.edu (Charles Hedrick) Subject: Re: gcc and dUnix 3.2c Date: 1995/09/15 Message-ID: <43baqr$7vm@heidelberg.rutgers.edu>#1/1 X-Deja-AN: 110289567 references: <436o64$psa@amhux3.amherst.edu> organization: Rutgers University LCSR newsgroups: comp.unix.osf.osf1,comp.sys.dec pdchapin@news.amherst.edu (PAUL D. CHAPIN) writes: >I recently posted a question about a problem with the make of gcc >under dUnix 3.2c, and the fact that the supposed fix merely got me to >stage 1 before blowing up. Due to a problem with our newsfeed, if >there has been any follow since Friday, I wouldn't have gotten it. >I'd appreciate it if you would repeat it. We've recently upgraded from 3.2 to 3.2c. Suddenly I found that gcc was blowing up. We are using 2.6.3, which by now is fairly old. I hoped that a newer version of GCC would fix the problem, but haven't had time to rebuild. On the chance that the problem I saw is the same one that you're seeing, let me explain: Symptom: compile any program with gcc. Get an error from mips-tfile, which aborts the compile Diagnosis: it appears that DEC's "as" has changed between 3.2 and 3.2c. The new one produces .o files substantially smaller than the old one. mips-tfile is doing some transformation on the .o files (whose exact nature I didn't try to figure out. The very concept of MIPS-specific postprocessing on an Alpha seems wierd. My workaround may be a hack, but it looks like the thing that blew up is one too.) Apparently mips-tfile gets confused because the .o files produced under 3.2c are not in the format it expects Workaround: copy the 3.2 version of /usr/lib/cmplrs/cc/as1 to the place where the various passes of GCC are kept (e.g. cc1). This may differ from site to site, but will be something like /usr/local/gnu/lib/gcc-lib/alpha-dec-osf3.2/2.6.3. create in the same directory a script called as, containing #!/bin/sh /usr/ucb/as -tb -h/usr/local/gnu/lib/gcc-lib/alpha-dec-osf3.2/2.6.3/ -B "$@" This causes GCC to use the 3.2 version of as1, the second pass of as. Actually what it does is cause it to run this script when it's looking for as. This script calls the normal as with some funny arguments that point it at the saved copy of as1 for that pass. -tb means to redirect the second pass of as. -h specifies the directory where it should get as1. -B is needed in order for those options to work. This is a disgusting hack, which I sincerely hope will be fixed by going to a newer version of GCC or rebuilding under 3.2c. I provide it only in case you absolutely need it.