This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

Re: Problem cross compiling for arm


On Wed, Jul 19, 2000 at 04:14:51PM +0200, Nicolas Gerber wrote:
> Hi there,
> 
> I have some problems when i try to configure the kaffe VM for an ARM processor.
> I use a cygwin emulator on windows NT, and when i type :
> CC=arm-elf-gcc ./configure
> I get the following error message:
> configure: error: installation or configuration problem: C compiler cannot create executables.
> 
> This is the log file:
> configure:595: checking for a BSD compatible install
> configure:648: checking whether build environment is sane
> configure:715: checking whether make sets ${MAKE}
> configure:829: checking whether to enable maintainer-specific portions of Makefiles
> configure:894: checking for gcc
> configure:1007: checking whether the C compiler (/f/tools_arm/H-i686-pc-cygwin/bin/arm-elf-gcc  ) works
> configure:1023: /f/tools_arm/H-i686-pc-cygwin/bin/arm-elf-gcc -o conftest   -I/usr/local/include  conftest.c  -L/usr/local/lib  1>&5
> cpp: installation problem, cannot exec `cpp': No more processes
> configure: failed program was:
> 
> #line 1018 "configure"
> #include "confdefs.h"
> 
> So, the problems seems to come from cpp.exe ?

i think the configure script has the idea that it can try running executables
built with arm-elf-gcc on the cygwin platform, which will obviously fail.  try
adding --host=<arm-alias> --target=<arm-alias> --build=<x86-alias> to the
configure line.  

this configure line produces arm executables for me, adjust for your platform
as required

	prefix=/opt/dev

	host=arm-linux
	target=arm-linux
	build=i686-linux

	${prefix}/cvs/kaffe/configure \
		--prefix=${prefix}/${target} \
		--target=${target} \
		--host=${host} \
		--build=${build} \
		--without-x


--without-x is needed since i didn;t build xfree86 for arm yet



-- 
-----------------------------------------------------------------------------
  Ray Lehtiniemi (rayl@mail.com) (rayl@optitech.com)


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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