* gcc and dUnix 3.2c
@ 1995-09-13 4:00 PAUL D. CHAPIN
1995-09-15 4:00 ` Charles Hedrick
0 siblings, 1 reply; 4+ messages in thread
From: PAUL D. CHAPIN @ 1995-09-13 4:00 UTC (permalink / raw)
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.
--
Paul Chapin
A) Unix Systems Manager
B) User Services Coordinator
C) Information Coordinator
D) All of the above
Amherst College
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc and dUnix 3.2c
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
0 siblings, 1 reply; 4+ messages in thread
From: Charles Hedrick @ 1995-09-15 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc and dUnix 3.2c
1995-09-15 4:00 ` Charles Hedrick
@ 1995-09-17 4:00 ` Daniel S. Riley
1995-09-21 4:00 ` PAUL D. CHAPIN
0 siblings, 1 reply; 4+ messages in thread
From: Daniel S. Riley @ 1995-09-17 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: gcc and dUnix 3.2c
1995-09-17 4:00 ` Daniel S. Riley
@ 1995-09-21 4:00 ` PAUL D. CHAPIN
0 siblings, 0 replies; 4+ messages in thread
From: PAUL D. CHAPIN @ 1995-09-21 4:00 UTC (permalink / raw)
Daniel S. Riley (dsr@lns598.lns.cornell.edu) wrote:
: 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.
I went back and cleaned out all old gcc files, unpacked the tar file
again, applied the patch, and the installation appears to have worked.
Apparently it was lifting something from one of the old versions.
Given that I found a lot of old files lying around from some very old
versions , it was probably just as good to take the time to clean them
out anyway. And since gcc wasn't working, I didn't have to worry about
making things worse.
--
Paul Chapin
Unix Systems Manager
Amherst College
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-09-21 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1995-09-21 4:00 ` PAUL D. CHAPIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox