Subject: Re: cross compile i386 -> macppc dies
To: Christopher SEKIYA <wileyc@rezrov.net>
From: Charlie Allom <charlie@rubberduck.com>
List: current-users
Date: 09/18/2002 17:41:32
On Wed, Sep 18, 2002 at 04:29:35PM +0900, Christopher SEKIYA wrote:
> On Tue, Sep 17, 2002 at 10:58:29AM +1000, Charlie Allom wrote:
> 
> > cc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA   -O   -DHAVE_CONFIG_H    -I.
> > -I/usr/src/current/src/tools/toolchain/../../gnu/dist/toolchain/gcc
> > -I/usr/src/current/src/tools/toolchain/../../gnu/dist/toolchain/gcc/config
> > -I/usr/src/current/src/tools/toolchain/../../gnu/dist/toolchain/gcc/../include
> > /usr/src/current/src/tools/toolchain/../../gnu/dist/toolchain/gcc/gencheck.c
> > /var/tmp/cckBlWoN.s: Assembler messages:
> > /var/tmp/cckBlWoN.s:658: Error: Unrecognized opcode: `pushl'
> 
> (snip)
> 
> I, too, have been experiencing this problem while crosscompiling from an i386
> host for vax, sparc, sparc64, and sgimips.
> 
> It's a path problem.  Remove "." from your path, or ensure that /usr/bin
> appears first.  cc is invoking the as in that directory, which is symlinked
> to as-new, which is the cross-assembler rather than the native assembler.

Thanks Chris. The dreaded ./ problem!

  C.
-- 
 charlie@rubberduck.com
 http://rubberduck.com/yeled/pgp.txt