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

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


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
--- hatari-2.0.0+dfsg.orig/src/cpu/sysdeps.h
+++ hatari-2.0.0+dfsg/src/cpu/sysdeps.h
@@ -56,6 +56,8 @@ using namespace std;
 #define CPU_arm 1
 #elif defined(__powerpc__) || defined(_M_PPC) || defined(__ppc__) || defined(__ppc64__)
 #define CPU_powerpc 1
+#elif defined(__mips__) || defined(mips) || defined(__mips64)
+#define CPU_mips 1
 #else
 #error unrecognized CPU type
 #endif


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