[hatari-devel] Re: Error compiling Hatari on Arch Linux ARM

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


This seems to be the solution:

diff --git a/src/cpu/memory.h b/src/cpu/memory.h
index bc9b1653..ff6a13d9 100644
--- a/src/cpu/memory.h
+++ b/src/cpu/memory.h
@@ -510,7 +510,7 @@ extern addrbank *get_mem_bank_real(uaecptr);

 #ifdef WINUAE_FOR_HATARI
 extern bool memory_region_bus_error ( uaecptr addr );
-extern void memory_map_Standard_RAM ( Uint32 MMU_Bank0_Size , Uint32 MMU_Bank1_Size );
+extern void memory_map_Standard_RAM ( uint32_t MMU_Bank0_Size , uint32_t MMU_Bank1_Size );
 #endif
 extern void memory_init(uae_u32 NewSTMemSize, uae_u32 NewTTMemSize, uae_u32 NewRomMemStart);
 extern void memory_uninit (void);

On Sun, Aug 18, 2019 at 4:11 PM Christer Solskogen <christer.solskogen@xxxxxxxxx> wrote:
[alarm@alarmpi4 hatari]$ make V=1
[  3%] Built target Floppy
[  5%] Built target build68k
[  8%] Built target gencpu
[  8%] Building C object src/cpu/CMakeFiles/UaeCpu.dir/disasm.c.o
In file included from /home/alarm/hatari/src/cpu/disasm.c:7:
/home/alarm/hatari/src/cpu/memory.h:513:39: error: unknown type name ‘Uint32’; did you mean ‘uint’?
 extern void memory_map_Standard_RAM ( Uint32 MMU_Bank0_Size , Uint32 MMU_Bank1_Size );
                                       ^~~~~~
                                       uint
/home/alarm/hatari/src/cpu/memory.h:513:63: error: unknown type name ‘Uint32’; did you mean ‘uint’?
 extern void memory_map_Standard_RAM ( Uint32 MMU_Bank0_Size , Uint32 MMU_Bank1_Size );
                                                               ^~~~~~
                                                               uint
make[2]: *** [src/cpu/CMakeFiles/UaeCpu.dir/build.make:377: src/cpu/CMakeFiles/UaeCpu.dir/disasm.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:448: src/cpu/CMakeFiles/UaeCpu.dir/all] Error 2
make: *** [Makefile:141: all] Error 2


On x86_64 it does not appear to be a problem.


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