[adtools] Re: Problems building native m68k version of binutils

  • From: Gunther Nikl <gni@xxxxxxxx>
  • To: adtools@xxxxxxxxxxxxx
  • Date: Thu, 24 Nov 2005 10:09:54 +0100

On Wed, Nov 23, 2005 at 09:28:39PM +0100, Josef Wegner wrote:
> I was able to compile a native m68k gcc 3.4.0 version with my
> cross-compiler.

  Congratulation! However, that one already exists as GG package on a GG
  mirrror ;-)

> m68k-amigaos-gcc -DHAVE_CONFIG_H -I. -I../../binutils/bfd -I. -D_GNU_SOURCE 
> -mstackextend -I. -I../../binutils/bfd -I../../binutils/bfd/../include 
> -I../../binutils/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes 
> -Wmissing-prototypes -O2 -c ../../binutils/bfd/libbfd.c -o libbfd.o
> /tmp/cchdZmsV.s: Assembler messages:
> /tmp/cchdZmsV.s:1022: Error: parse error -- statement `orl (mask.0),d0' 
> ignored
> /tmp/cchdZmsV.s:1043: Error: parse error -- statement `orl d2,(mask.0)' 
> ignored
> /tmp/cchdZmsV.s:1059: Error: parse error -- statement `orl d2,(mask.0)' 
> ignored

  Looks like a 2.14 assembler bug... FWIW, 2.9.1 and a very old 1.38.1
  do assemble this properly... Looks like you should go back to 2.9.1
  (to build it with "modern" GCC versions you need to modify its libiberty
  or build with GCC 2.95.x)

  This is a small testcase:

-- cut --
#NO_APP
.lcomm mask.0,4
foo:
        orl (mask.0),d0
        orl d2,(mask.0)
        rts
-- cut --

  To verify if its a generic problem you could build a m68k-aout toolchain
  from *unmodified* 2.14 sources and then check with:

    ./gas/as-new -m68010 foo.s -o foo.o

  I build a m68k-aout toolchain from the modified sources and gas rejected
  the testcase.
  If it doesn't work, then you could try the latest release (2.16.1) to
  see if it works from m68k-aout. If not, then check earlier versions
  from 2.10 to 2.13 to find out when it broke. Of course this is work,
  but I don't have the time doing this search.

  Gunther

-- 
Linux is only free if your time has no value
 - Jamie Zawinski
______________________________________________________________________________
Amiga Development tools ML - //www.freelists.org/list/adtools
Homepage...................: http://www.sourceforge.net/projects/adtools
Listserver help............: mailto:adtools-request@xxxxxxxxxxxxx?Subject=HELP

Other related posts: