This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Simple question.


On Wed, Jan 02, 2002 at 03:06:43PM -0800, Sir Ace wrote:
> 
>   I am having a very rough time trying to figure out something do to the
> poor documentation on gcc.  What I need to do is build a native compiler
> with a cross compiler.
> /bin/sh: ./gengenrtl: cannot execute binary file

I have no clue actually - never used a cross compiler.
But after looking at gengenrtl in the Makefiles, I'd guess
that it is build with the cross compiler and thus won't
run on the box that is compiling the new compiler.

They use HOST_CC for that.  When HOST_CC is not set,
it is set to the value of CC.  So I suppose you need to
set HOST_CC somehow.  Maybe setting an environment variable
would work, not sure if then make will use that value.

Hope this helps.

-- 
Carlo Wood <carlo@alinoe.com>


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