installing gcc 4.1 as secondary compiler problem
Hello, I have just finished setting up my lovly new laptop apart from one thing. I need both the installed gcc 3.4.4 and a 4.x version of gcc. Here is what I did.
1. downloaded gcc-4.1.0 unziped e.t.c
2. Make a directory called making to make gcc in.
3. configure with
~/Desktop/gcc-4.1.0/configure --prefix=/opt/gcc41 --program-suffix=-4.1
So that gcc will be installed in /opt/gcc41 and have the suffix 4.1 (as I said this will be a seconadary compiler).
4. Then
make bootstrap
I get the error
make[2]: *** No rule to make target `../../build-i686-pc-linux-gnu/libiberty/libiberty.a', needed by `build/genmodes'. Stop.
make[2]: Leaving directory `/home/tommy/Desktop/making/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/tommy/Desktop/making/gcc'
make: *** [bootstrap] Error 2
5. So I think maybe I should try and specify the host rather than the configure script guessing so i try
~/Desktop/gcc-4.1.0/configure --prefix=/opt/gcc41 --program-suffix=-4.1 --host=pentium-m
6. Again
make bootstrap
this time my error is
checking build system type... Invalid configuration `pentium-m': system `m' not recognized
configure: error: /bin/sh /home/tommy/Desktop/gcc-4.1.0/libiberty/../config.sub pentium-m failed
make: *** [configure-build-libiberty] Error 1
7. So obvesouly petium-m is not an option. so I try again specifing that
--host=i686-pc-linux-gnu
This of course just takes me straight back to number 4.
I am sure I must be missing something ver obveouse but I need your help.
T
|