This is the mail archive of the gcc-help@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]

building gcc 2.95.3 as cross compiler


Hello,
I tried to build gcc 2.95.3 on a linux SuSE8.2 distribution. In this
distribution a newer gcc version (3.3) is installed. I need the gcc 2.95.3,
because I want to compile a kernel for an embedded linux. Therefore, I tried
to install the gcc 2.95.3 as a cross compiler in a separated directory. The
problem is that errors occurred during compilation. I preceded the following
steps:

1.) Download and unpack gcc 2.95.3 from gcc.gnu.org
2.) I made a directory for the obj's (e.g. /tmp/build/gcc)
3.) I set the path with: PATH=../myDirectory/gnutools
4.) Changed in the tmp direcotry: cd /tmp/build/gcc
5.) Configuration:
	../myDirectory/gcc2.95.3/configure --target=i686-pc-linux-gnu \
	--prefix=../myDirectory/gnutools --enable-lanugages=c,c++ \
	--with-gnu-as --with-gnu-ld --with-newlib \
	--with-gxx-include-dir=../myDirectory/gnutools/i686-pc-linux-gnu/include \
	-v 2>&1 | tee configure.out
6.) Build and insall gcc:
	make -w all install 2>&1 | tee make.out

During the build the following error occurred:

/usr/include/bits/sys_errlist.h:28 previous declaration of 'sys_errlist'

I hope someone could help me to solve this problem.
Thanks a lot.


Cheers,
Chris



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