Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: dsr@lns598.lns.cornell.edu (Daniel S. Riley)
Subject: Re: gcc and dUnix 3.2c
Date: 1995/09/17	[thread overview]
Message-ID: <sh7n37r70i.fsf@lns100.lns.cornell.edu> (raw)
In-Reply-To: 43baqr$7vm@heidelberg.rutgers.edu


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



  reply	other threads:[~1995-09-17  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
1995-09-17  4:00   ` Daniel S. Riley [this message]
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