This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC version 2 on SunOS 4.1.4
- From: Srinivasan Jagannathan <jsrini at cs dot ucsb dot edu>
- To: gcc-bugs at gcc dot gnu dot org, <gcc at gcc dot gnu dot org>
- Date: Tue, 8 Jul 2003 08:59:03 -0700 (PDT)
- Subject: GCC version 2 on SunOS 4.1.4
Hello,
I am trying to install gcc-2.95.3 on SunOS 4.1.4. However, I get the
following error:
-----------------------------
Bootstrapping the compiler
make CC="gcc" libdir=/mnt/newroot/gcc2/lib LANGUAGES="c"
(cd intl && make all)
./genattr ./config/sparc/sparc.md > tmp-attr.h
ld.so: Undefined symbol: _alloca
*** Error code 127
make: Fatal error: Command failed for target `s-attr'
Current working directory /mnt/newroot/home/jsrini/gcc-2.95.3/gcc
*** Error code 1
make: Fatal error: Command failed for target `bootstrap'
Current working directory /mnt/newroot/home/jsrini/gcc-2.95.3/gcc
*** Error code 1
make: Fatal error: Command failed for target `bootstrap'
---------------------------------------------------------
I checked out the gcc online docs and found the following:
"....Warning: there is a bug in alloca in the Sun library. To avoid this
bug, be sure to install the executables of GNU CC that were compiled by
GNU CC. (That is, the executables from stage 2 or 3, not stage 1.) They
use alloca as a built-in function and never the one in the library...."
Where can I find a precompiled Stage-2 binary for SunOS 4.1.4 ? Any
suggestions/pointers (or the pre-compiled binary itself) would be great!!
thanks in advance!
best regards,
-srinivasan
--
***********************************************************************
Dr. Srinivasan Jagannathan, Dept. of Computer Science, UC Santa Barbara
http://www.cs.ucsb.edu/~jsrini
***********************************************************************