Re: [hatari-devel] error: #error unrecognized CPU type

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,
     I'd like to add that Dan Horák made a similar patch for Fedora to compile hatari under s390(x):
http://pkgs.fedoraproject.org/cgit/rpms/hatari.git/tree/hatari-2.0.0-s390.patch

Bye,

Andrea


On Fri, Jan 13, 2017 at 2:45 PM, Radovan Birdic <Radovan.Birdic@xxxxxxxxxx> wrote:
Hi,

Could you please add initial support for mips architectures in hatari?

Build for hatari package on Debian fails on mips architectures with following error:

> In file included from /«BUILDDIR»/hatari-2.0.0+dfsg/src/msa.c:18:0:
> /«BUILDDIR»/hatari-2.0.0+dfsg/src/cpu/sysdeps.h:60:2: error: #error unrecognized CPU type
>  #error unrecognized CPU type
>   ^~~~~
> src/CMakeFiles/Floppy.dir/build.make:113: recipe for target 'src/CMakeFiles/Floppy.dir/msa.c.o' failed
> make[4]: *** [src/CMakeFiles/Floppy.dir/msa.c.o] Error 1
> make[4]: Leaving directory '/«BUILDDIR»/hatari-2.0.0+dfsg/build'
> CMakeFiles/Makefile2:165: recipe for target 'src/CMakeFiles/Floppy..dir/all' failed
> make[3]: *** [src/CMakeFiles/Floppy.dir/all] Error 2
> make[3]: Leaving directory '/«BUILDDIR»/hatari-2.0.0+dfsg/build'
> Makefile:130: recipe for target 'all' failed
> make[2]: *** [all] Error 2

Full build log:
https://buildd.debian.org/status/fetch.php?pkg=hatari&arch=mipsel&ver=2.0.0%2Bdfsg-1&stamp=1484097209

I have created and attached a patch which adds initial support for mips arches.
With this patch package builds successfully on mips, mipsel and mips64el.

Regards,
Radovan



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/