Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: 'core/arch/Cpu.h' file not found #237

Open
xiaoxu1234 opened this issue Jun 30, 2023 · 6 comments
Open

fatal error: 'core/arch/Cpu.h' file not found #237

xiaoxu1234 opened this issue Jun 30, 2023 · 6 comments

Comments

@xiaoxu1234
Copy link

-- The C compiler identification is AppleClang 15.0.0.15000029
-- The CXX compiler identification is AppleClang 15.0.0.15000029

-- ********* build environment check ***********
-- Compiler: AppleClang
-- Processor: x86_64
-- System: macOS
-- ***************************************

-- CMAKE_C_COMPILER: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- CMAKE_CXX_COMPILER: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- CMAKE_C_FLAGS: -fvisibility=hidden -fPIC -fno-stack-check -fno-stack-protector -fno-exceptions -fno-rtti -fno-common -fno-zero-initialized-in-bss -O3 -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden
-- CMAKE_CXX_FLAGS: -fvisibility=hidden -fPIC -fno-stack-check -fno-stack-protector -fno-exceptions -fno-rtti -fno-common -fno-zero-initialized-in-bss -O3 -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden
-- CMAKE_SHARED_LINKER_FLAGS:
-- [Dobby] CMAKE_BUILD_TYPE:
-- [Dobby] DOBBY_DEBUG: OFF
-- [Dobby] NearBranch: ON
-- [Dobby] FullFloatingPointRegisterPack: OFF
-- [Dobby] Plugin.SymbolResolver: ON
-- [Dobby] Plugin.ImportTableReplace: OFF
-- [Dobby] Plugin.Android.BionicLinkerUtil: OFF
-- [Dobby] DOBBY_BUILD_EXAMPLE: OFF
-- [Dobby] DOBBY_BUILD_TEST: OFF
-- [Dobby] DOBBY_BUILD_KERNEL_MODE: OFF
-- [Dobby] Private.Obfuscation: OFF
-- [Dobby] Dobby-20230630-d95b5c9

Dobby/./source/core/arch/x64/registers-x64.h:5:10: fatal error: 'core/arch/Cpu.h' file not found
#include "core/arch/Cpu.h"
^~~~~~~~~~~~~~~~~
#include "core/arch/Cpu.h"
^~~~~~~~~~~~~~~~~
#include "core/arch/Cpu.h"
^~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
1 error generated.
make[2]: make[2]: *** [CMakeFiles/dobby_static.dir/source/core/assembler/assembler-x64.cc.o] Error 1
*** [CMakeFiles/dobby.dir/source/core/assembler/assembler-x64.cc.o] Error 1
make[2]: *** [CMakeFiles/DobbyX.dir/source/core/assembler/assembler-x64.cc.o] Error 1
make[1]: *** [CMakeFiles/dobby.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/DobbyX.dir/all] Error 2
make[1]: *** [CMakeFiles/dobby_static.dir/all] Error 2
[ 7%] Linking CXX static library liblogging.a
[ 7%] Built target logging

i use Dobby-dev branch, to build Dobby as follows:

cd Dobby
&cmake "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64" ..
&make -j4

@ghost
Copy link

ghost commented Jan 22, 2024

Same issue

@lducsm
Copy link

lducsm commented Mar 1, 2024

only core/arch/CpuRegister.h

@demoSSD
Copy link

demoSSD commented Apr 24, 2024

The latest version has a problem and cannot be compiled. It requires:
git checkout 0932d69

@Redbeanw44602
Copy link

It seems that some of the refactoring of the architecture is not yet complete...

@AndroidMaster25
Copy link

only core/arch/CpuRegister.h

It fixed the issue, now I got another error.

dobby/source/MemoryAllocator/CodeMemBuffer.h:96:3: error: unknown type name 'arm_inst_t'
   96 |   arm_inst_t LoadARMInst(uint32_t offset) {
      |   ^

How to fix?

@trueToastedCode
Copy link

Latest commit, which is 5dfc854 right now still cannot be compiled due to this error. Even fixing this specific error with from fies from previous commits doesn't work as for me other error appear.

Anyway, the older commit 0932d69 does work. Anyway, I published my build here: https://github.com/trueToastedCode/Dobby/releases if you don't want to go through hesitation of compiling. At this point only android maybe I'll add more later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants