This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Problems building gcc-2.95 as cross compiler.
- To: 'Robert Drehmel' <robert at gizmo dot quizbot dot org>, gcc-help at gcc dot gnu dot org
- Subject: RE: Problems building gcc-2.95 as cross compiler.
- From: David Korn <dkorn at pixelpower dot com>
- Date: Mon, 12 Feb 2001 10:27:37 -0000
>Hi.
>I have some problems building a gcc-2.95 cross compiler from sources
>on a FreeBSD/i386 5.0-CURRENT system. Target should be mips (r3000).
>The build directory I use is 'gcc_build', so I did a
>
>$ cd gcc_build
>$ ../gcc-2.95/configure --target=mips-ecoff
>--prefix=~robert/gcc_install
>[...]
>$ make
>
>After a while, I get complains from xgcc that as does not accept a
>'-G' parameter. I did a binutils 2.10 build with the same target
>before, so I backed up the original and moved binutils_build/gas/as-new
>to /usr/libexec/elf/as.
Rule #1: Always use the same --prefix for your cross-binutils as you
want for the cross-compiler
>$ cd gcc
>$ make mips-tfile
>
>gcc -c -DCROSS_COMPILE -DIN_GCC -g -DHAVE_CONFIG_H -I.
>-I../../gcc-2.95/gcc -I../../gcc-2.95/gcc/config
>-I../../gcc-2.95/gcc/../include ../../gcc-2.95/gcc/mips-tfile.c
>../../gcc-2.95/gcc/mips-tfile.c:673: mips/a.out.h: No such
>file or directory
>*** Error code 1
You have got your target headers installed, haven't you?
DaveK
--
we are not seats or eyeballs or end users or consumers.
we are human beings - and our reach exceeds your grasp.
deal with it. - cluetrain.org
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************