Subject: Re: cross compile i386 -> macppc dies
To: current-users <>
From: Christopher SEKIYA <>
List: current-users
Date: 09/18/2002 16:29:35
On Tue, Sep 17, 2002 at 10:58:29AM +1000, Charlie Allom wrote:

> -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'


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.

-- Chris
	GPG key FEB9DE7F (91AF 4534 4529 4BCC 31A5  938E 023E EEFB FEB9 DE7F)