This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problems building egcs 1.0.1 on Solaris 2.5.1


Howdy,

I've had some problems building and installing egcs 1.0.1.  I'm on the
Solaris 2.5.1 platform.  Config.guess seems correct, it says:

	21 bane# ./config.guess
	sparc-sun-solaris2.5.1

I was able to get it to install, but not without a little manual
intervention.  I've tried a bunch of experiments and I'll tell you what
I can.

The oddest thing is that when I try to do the build as root, I get
errors during the BUILD phase, but when I do the build as myself, I get
through build but it fails during INSTALL.

I am not building a cross compiler, and the only config flag I used was
--prefix=/usr/egcs.  I tried both with and without and --enable-haifa,
and got the same behavior both times.

When I do the build as myself it fails during "make install" with the
following messages:

----------- begin excerpt from install log -----------------
  rm -f /usr/egcs/man/man1/`t='s,x,x,'; echo gcc | sed -e $t`.1; \
  /bin/sh /opt/egcs-1.0.1/install-sh -c -m 644
../../egcs-1.0.1/gcc/gcc.1 /usr/e
gcs/man/man1/`t='s,x,x,'; echo gcc | sed -e $t`.1; \
  chmod a-x /usr/egcs/man/man1/`t='s,x,x,'; echo gcc | sed -e $t`.1; \
fi
rm -f /usr/egcs/man/man1/cccp.1
/bin/sh /opt/egcs-1.0.1/install-sh -c -m 644 ../../egcs-1.0.1/gcc/cccp.1
/usr/eg
cs/man/man1/cccp.1
chmod a-x /usr/egcs/man/man1/cccp.1
make: Fatal error: Don't know how to make target `f/intdoc.c'
Current working directory /opt/egcs-1.0.1-objdir/gcc
*** Error code 1
make: Fatal error: Command failed for target `install-gcc'
------------ end excerpt from install log -------------------

If I cd to egcs-objdir/gcc/f and manually do:

	bane% cp ../../../egcs-1.0.1/gcc/f/*.c .
	bane% cp ../../../egcs-1.0.1/gcc/f/*.in .
	bane% cp ../../../egcs-1.0.1/gcc/f/*.def .
	bane% cp ../../../egcs-1.0.1/gcc/f/*.h .

It eventually installs fine.  

I thought the problem migh be the fact that I was running as myself and
not as root.
So I tried again, this time as root.  It actually failed during the
build phase this time.  Here is an excerpt from the log:

----------- begin excerpt from install log -----------------
config ../../../egcs-1.0.1/gcc/cp/repo.c
stage1/xgcc -Bstage1/  -DIN_GCC -DSVR4  -O2 -g -O2   -o ../cc1plus \
      call.o decl.o errfn.o expr.o pt.o sig.o typeck2.o  class.o decl2.o
error.o
 lex.o parse.o ptree.o rtti.o spew.o typeck.o cvt.o  except.o friend.o
init.o me
thod.o search.o tree.o xref.o repo.o `cat ../stamp-objlist`
../c-common.o ../c-p
ragma.o `if [ xobstack.o != x ]; then echo ../obstack.o; else true; fi`
`case "s
tage1/xgcc -Bstage1/" in "cc") if [ xalloca.o != x ]; then echo
../alloca.o; els
e true; fi ;; esac` `if [ x != x ]; then echo ../; else true; fi`
make -f f/Makefile "AR_FLAGS=rc" 
"AR_FOR_TARGET=/usr/egcs/sparc-sun-solaris2.5.
1/bin/ar"  "BISON=bison"  "BISONFLAGS="  "CC=stage1/xgcc -Bstage1/" 
"CFLAGS=-O2
 -g -O2"  "CLIB="  "GCC_FOR_TARGET=./xgcc -B./"  "LDFLAGS="  "LEX=flex" 
"LEXFLA
GS="  "LN=ln"  "LN_S=ln -s"  "MAKEINFO=makeinfo"  "MAKEINFOFLAGS=" 
"RANLIB_FOR_
TARGET=/usr/egcs/sparc-sun-solaris2.5.1/bin/ranlib" 
"RANLIB_TEST_FOR_TARGET=[ -
f /usr/egcs/sparc-sun-solaris2.5.1/bin/ranlib ]"  "SHELL=/bin/sh" 
"STAGE_PREFIX
=stage1/"  "exeext="  "objext=.o"  "exec_prefix=/usr/egcs" 
"prefix=/usr/egcs"
"tooldir=/usr/egcs/sparc-sun-solaris2.5.1"  "bindir=/usr/egcs/bin" 
"libsubdir=/
usr/egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.23"
VPATH=../../egcs-1.0.1
/gcc srcdir=../../egcs-1.0.1/gcc f771
make: Fatal error: Don't know how to make target `f/bad.c'
Current working directory /opt/egcs-1.0.1-objdir/gcc
*** Error code 1
make: Fatal error: Command failed for target `f771'
Current working directory /opt/egcs-1.0.1-objdir/gcc
*** Error code 1
make: Fatal error: Command failed for target `bootstrap'
------------ end excerpt from install log -------------------

I hope that this is enough for you to go on.  Let me know if you would
like the complete build logs, or more info about the system I am
building on.

Thanks a lot for egcs, its a big improvement over gcc2.7!

--mike

-- 
+----------------------------------------------------------------+
|  Michael A. Riepe                    | Fill what's empty       |
|  Advanced Computer Architecture Lab  | Empty what's full       |
|  University of Michigan              |                -as      |
|  riepe@eecs.umich.edu                |                         |
|  http://www.eecs.umich.edu/~riepe    |                         |
+----------------------------------------------------------------+


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]