Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hedrick@heidelberg.rutgers.edu (Charles Hedrick)
Subject: Re: gcc and dUnix 3.2c
Date: 1995/09/15	[thread overview]
Message-ID: <43baqr$7vm@heidelberg.rutgers.edu> (raw)
In-Reply-To: 436o64$psa@amhux3.amherst.edu

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.




  reply	other threads:[~1995-09-15  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-09-13  4:00 gcc and dUnix 3.2c PAUL D. CHAPIN
1995-09-15  4:00 ` Charles Hedrick [this message]
1995-09-17  4:00   ` Daniel S. Riley
1995-09-21  4:00     ` PAUL D. CHAPIN
read-only archive

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