This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problem in compiling gcc 2.9.5 on unixware 7.1.1
- From: Robert Lipe <robertlipe at usa dot net>
- To: TaoFengmei <taofengmei at huawei dot com>
- Cc: "gcc at gnu dot org" <gcc at gnu dot org>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "gnu at gnu dot org" <gnu at gnu dot org>
- Date: Tue, 26 Feb 2002 01:13:21 -0600
- Subject: Re: problem in compiling gcc 2.9.5 on unixware 7.1.1
- References: <200202260512.XAA04859@monsoon.nj.caldera.com>
TaoFengmei wrote:
> i want to install gcc in unixware 7.1.1,compiling succed.But when i install it to system,meet such problem:
>
> # make install
> /bin/sh ../mkinstalldirs /usr/local /usr/local
> (cd intl && make all)
> cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/
> config -I../../gcc/../include ../../gcc/genattr.c
> cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/
> config -I../../gcc/../include ../../gcc/rtl.c
> cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/
> config -I../../gcc/../include ../../gcc/bitmap.c
> cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/
> config -I../../gcc/../include ../../gcc/print-rtl.c
> cc -DIN_GCC -g -DHAVE_CONFIG_H -o genattr \
> genattr.o rtl.o bitmap.o print-rtl.o ` case "obstack.o" in ?*) echo obs
> tack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case "" in ?
> *) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;;
> esac `
> Undefined first referenced
> symbol in file
> alloca genattr.o
> UX:ld: ERROR: genattr: fatal error: Symbol referencing errors. No output written
> to genattr
This is sometimes caused by running configure with one compiler and
doing the bootstrap with another. Since you aren't very far into the
build at all, I suggest completely removing this build area and
configuring and building with an explictit path to eliminate confusion.
rm -fr your work area to eliminate config.cache and friends
CC=/bin/cc .../path/to/configure
make bootstrap
Alternately, simply get the installable binaries of GCC 2.95 that have
been exercised on UnixWare 7 from the caldera web site.