This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
building gcc 2.95.3 as cross compiler
- From: "Christian Voegeli" <christian dot voegeli at bbv dot ch>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 14 Oct 2003 09:12:40 +0200
- Subject: building gcc 2.95.3 as cross compiler
- Reply-to: <christian dot voegeli at bbv dot ch>
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