This is the mail archive of the
crossgcc@sources.redhat.com
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
Problems with different versions of gcc
- From: Daniel Hallgren <x_dah at sectra dot se>
- To: crossgcc <crossgcc at sources dot redhat dot com>
- Date: Wed, 24 Jul 2002 11:17:32 +0200
- Subject: Problems with different versions of gcc
I have successfully built and installed a m68k-linux crosscompiler using
Bill Gatliffs script. Everything is working well and I only have one
problem.
My native compiler (on my i686 machine) is gcc-3.1, which I've used to
build the crosscompiler. The crosscompiler is built from gcc-2.95.3 and
installed in /opt/m68k-linux. In order to make gcc search in the right
dirs I've set the env variable:
GCC_EXEC_PREFIX=/opt/m68k-linux/lib/gcc-lib
as the FAQ says. My cc1, collect2, specs, etc is located in the dir
/opt/m68k-linux/lib/gcc-lib/m68k-linux/2.95.3/
When i invoke gcc to compile a program for m68k-linux, i.e. with
gcc -b m68k-linux -o test test.c
i get the error message:
gcc: installation problem, cannot exec `cc1': No such file or directory
If I rename the dir 2.95.3 to 3.1, it all works fine. How can I make gcc
understand the crosscompiler is of version 2.95.3 and that it therefor
needs to search in
/opt/m68k-linux/lib/gcc-lib/m68k-linux/2.95.3/
and not in
/opt/m68k-linux/lib/gcc-lib/m68k-linux/3.1/
without renaming the directory? Anyone has a clue or had the same problem?
/ Daniel Hallgren
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com