This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95.2 on alphaev6-dec-osf5.1
- To: gcc at gcc dot gnu dot org
- Subject: gcc-2.95.2 on alphaev6-dec-osf5.1
- From: psz at maths dot usyd dot edu dot au (Paul Szabo)
- Date: Thu, 15 Mar 2001 13:17:54 +1100 (EST)
Dear GCC people,
I successfully built gcc-2.95.2 on:
% ./config.guess
alphaev6-dec-osf5.1
I did have a few problems though, please see below: hopefully you can fix
these for the next release. (Please let me know if you need more details.)
Cheers,
Paul Szabo - psz@maths.usyd.edu.au http://www.maths.usyd.edu.au:8000/u/psz/
School of Mathematics and Statistics University of Sydney 2006 Australia
-----
### Builds only with a working gcc!!
# Need to install gcc-2.8.1 first (which I can build with DEC CC), use that
# to build this...
gzcat gcc-2.95.2.tar.gz | tar xf -
# Fix un-parseable sed commands:
perl -i.bak -pe 's/\*\*/\*/ if m/s%/' gcc-2.95.2/gcc/fixinc/fixincl.x gcc-2.95.2/gcc/fixinc/inclhack.sh
mkdir gbuild
cd gbuild
../gcc-2.95.2/configure --prefix=/usr/local/lib/gcc-2.95.2
make
# Dies with "ld: Unresolved: ASM_FILE_START" in toplev.o for 'cc ... -o cc1 ...')
# Re-make gcc/toplev.o with osf.h added to config.h:
cd gcc; rm toplev.o; cp -p config.h config.h.SAV; echo '#include "alpha/osf.h"' >> config.h; make toplev.o; mv config.h.SAV config.h; cd ..
make
# Dies with "../../gcc-2.95.2/gcc/gcc.c:482: `CPP_PREDEFINES' undeclared here (not in a function)"
# Re-make gcc/gcc.o with osf.h added to config.h:
cd gcc; cp -p config.h config.h.SAV; echo '#include "alpha/osf.h"' >> config.h; make gcc.o; mv config.h.SAV config.h; cd ..
make
# Dies with "mips-tfile, /tmp/ccc8Mdil.s:156 Segmentation fault".
# Clobber mips-tfile:
perl -e 'print "#\x21/bin/ksh -\nexit 0\nprint \"Not doing: \$0 \$*\"\n"' > gcc/mips-tfile
# What is mips-tfile meant to do???
make
# "xgcc ... chmod_.c" dies with "as" error "Assertion failed".
# Re-do that with plain gcc:
cd alphaev6-dec-osf5.1/libf2c/libU77; gcc -c -DSkip_f2c_Undefs -I. -I../../../../gcc-2.95.2/libf2c/libU77 -I../../../../gcc-2.95.2/libf2c/libU77/../libI77 -I.. -I../../../../gcc-2.95.2/libf2c/libU77/.. -DHAVE_CONFIG_H -g -O2 ../../../../gcc-2.95.2/libf2c/libU77/chmod_.c; cd ../../..
make
# "xgcc ... chmod_.c" dies again in another directory.
# Re-do that too with plain gcc:
cd alphaev6-dec-osf5.1/ieee/libf2c/libU77; gcc -c -DSkip_f2c_Undefs -I. -I../../../../../gcc-2.95.2/libf2c/libU77 -I../../../../../gcc-2.95.2/libf2c/libU77/../libI77 -I.. -I../../../../../gcc-2.95.2/libf2c/libU77/.. -DHAVE_CONFIG_H -g -O2 ../../../../../gcc-2.95.2/libf2c/libU77/chmod_.c; cd ../../../..
make
####
## Get root to:
# mkdir /usr/local/lib/gcc-2.95.2
# chown psz /usr/local/lib/gcc-2.95.2
make install
## Get root to:
# chown -Rh bin.bin /usr/local/lib/gcc-2.95.2
# chmod -R go+rX /usr/local/lib/gcc-2.95.2
# ln -s /usr/local/lib/gcc-2.95.2/bin/* /usr/local/bin
# ln -s /usr/local/lib/gcc-2.95.2/man/man1/* /usr/local/man/man1
# ln -s /usr/local/lib/gcc-2.95.2/info/* /usr/local/info