m68k Toolchain issues

Corrin Meyer Corrin.Meyer@dornerworks.com
Thu Aug 14 14:14:00 GMT 2008


> Hi All,
> 
> I'm using the most recent crosstools to make a m68k toolchain.  It 
> compiles successfully and I then go about using it to compile a
Macintosh > bootloader called EMILE (http://emile.sourceforge.net/).
When it reaches 
> an assembly source file, it dies with an odd error:
> 
> make -C first TARGET=m68k-linux
> as -I/home/g1powermac/Desktop/emile-0.12/first --defsym SCSI_SUPPORT=1
-o > first_scsi.o first.S
> first.S: Assembler messages:
> first.S:7: Error: unknown pseudo-op: `.cpu'
> first.S:23: Error: no such instruction: `bra start'
> first.S:62: Error: no such instruction: `moveal SysZone,%a0'
> first.S:63: Error: no such instruction: `addal %pc@(SysHeapSize),%a0'
> first.S:65: Error: no such instruction: `movel SysZone,TheZone'
> first.S:69: Error: no such instruction: `movea.l ROMBase,%a0'
> first.S:69: Error: no such instruction: `move.w 8(%a0),%d1'
> first.S:69: Error: no such instruction: `cmp.w '
> first.S:69: Error: no such instruction: `bls.s bit32_ok'
> first.S:69: Error: no such instruction: `cmp.w '
> first.S:69: Error: no such instruction: `bls.s bit32_ok'
> first.S:69: Error: no such instruction: `move.l '
> . . .
> 
> It's as if the assembler doesn't recognize the m68k assembly code.
Does
> anyone know the reason why this is happening?
> 
> Thanks,
> J Silverman

It looks like the assembler being called in 'as' which is typically your
native assembler.  Most cross-compiler toolchains (that I have seen)
would name it something like 'm68k-elf-as'.  Are you sure you are
calling the correct assembler?

C Meyer


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list