Dobby icon indicating copy to clipboard operation
Dobby copied to clipboard

[Build Failure] fatal error: 'core/arch/Cpu.h' not found when compiling for Android (ARM64)

Open DevkanKafkas opened this issue 3 weeks ago • 0 comments

Hi,

I am trying to compile Dobby for Android (ARM64) using the latest code from the master branch, but the build fails due to a missing header file.

Environment:

Host: Linux (WSL)

NDK Version: r21e

Target ABI: arm64-v8a

Platform: android-24

Steps to Reproduce: I used the standard CMake command:

Bash

cmake -DANDROID_ABI=arm64-v8a \
-DANDROID_PLATFORM=android-24 \
-DCMAKE_TOOLCHAIN_FILE=$NDK_PATH/build/cmake/android.toolchain.cmake \
-DCMAKE_BUILD_TYPE=Release \
-GNinja ..
cmake --build .
The Error: The compiler throws a fatal error in code-patch-tool-posix.cc:

Plaintext

/source/Backend/UserMode/ExecMemory/code-patch-tool-posix.cc:3:10: fatal error: 'core/arch/Cpu.h' file not found
#include "core/arch/Cpu.h"
         ^~~~~~~~~~~~~~~~~
1 error generated.
Observation: I checked the source tree and source/core/arch/Cpu.h does not exist. I noticed there is a source/core/arch/x86/cpu-x86.h, but I am compiling for ARM64, so that file is not relevant, and the filename does not match the include directive anyway.

It seems the master branch is missing the generic Cpu.h header. Is there a specific commit I should be using for Android builds?

Thanks.

DevkanKafkas avatar Dec 07 '25 00:12 DevkanKafkas