Skip to content

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

Open

Description

@DevkanKafkas

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.

Activity

  1. xiaobias commented on Dec 24, 2025

    @xiaobias

    使用这个版本: #237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions