This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: problem in compiling gcc 2.9.5 on unixware 7.1.1


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.



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