diablodiab / scummvm

ScummVM main repository
https://www.scummvm.org
GNU General Public License v2.0
6 stars 0 forks source link

Unable to compile for aarch64 #6

Open n-i-x opened 2 years ago

n-i-x commented 2 years ago

I'm getting the following error:

Compiling px_capri_maths.cpp...
../../../../engines/icb/common/ptr_util.cpp: In function ‘uint32 ICB::MemoryUtil::encodePtr(uint8*)’:
../../../../engines/icb/common/ptr_util.cpp:44:2: error: ‘ptrdiff_t’ was not declared in this scope
  ptrdiff_t diff = ptr - (uint8 *)0;
  ^
../../../../engines/icb/common/ptr_util.cpp:44:2: note: suggested alternative:
In file included from /usr/include/c++/5/new:39:0,
                 from ../../../../backends/platform/libretro/portdefs.h:32,
                 from ../../../../common/scummsys.h:44,
                 from ../../../../engines/icb/common/px_common.h:31,
                 from ../../../../engines/icb/common/ptr_util.cpp:28:
/usr/include/aarch64-linux-gnu/c++/5/bits/c++config.h:197:28: note:   ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^
../../../../engines/icb/common/ptr_util.cpp:45:24: error: ‘diff’ was not declared in this scope
  ptrRef.ref = (uint32)(diff & 0xFFFFFFFF);
                        ^
Makefile:561: recipe for target 'engines/icb/common/ptr_util.o' failed
make: *** [engines/icb/common/ptr_util.o] Error 1
make: *** Waiting for unfinished jobs....

Do you have a known-good commit hash I can compile off of for aarch64?

dhwz commented 2 years ago

@n-i-x See my package.mk this commit compiles. https://github.com/351ELEC/351ELEC/blob/main/packages/games/libretro/scummvm/package.mk