Re: Build issue "Error: operands mismatch -- statement `movec %d2,%caar' ignored" on m68k

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Finn,

On Mon, Dec 30, 2024 at 9:30 AM Finn Thain <fthain@xxxxxxxxxxxxxx> wrote:
You may want to try,

$ output/host/bin/m68k-buildroot-linux-gnu-gcc -v -c /tmp/a.s

As that will print the full assembler command line, among other things.
E.g.

...
/usr/libexec/gcc/m68k-unknown-linux-musl/as -v -mcpu=68020 --pcrel -o a.o a.s

Thanks, so it fails when -mcpu=68040 is passed to the assembler.

Oh, I misread "caar" as "cacr". The latter exists on MC68040, the
former does not. However, that doesn't explain the failures for pflusha,
which is supported on 68040.

After disabling CONFIG_680[236]0 in the kernel config, I can build
it fine using the buildroot toolchain.

Conclusion: make sure your toolchain supports (a superset of) the
CPUs supported by your kernel config.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds





[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux