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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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