Dobby icon indicating copy to clipboard operation
Dobby copied to clipboard

编译Mac库时报错

Open tikejc opened this issue 1 year ago • 3 comments

运行命令:python3 scripts/platform_builder.py --platform=macos --arch=all 报错:source/core/assembler/assembler-x64.h:8:10: fatal error: 'MemoryAllocator/CodeBuffer/code_buffer_x64.h' file not found 、pac_kit.h:11:1: error: unknown type name 'template', 编译不通过

cmake version 3.28.1

tikejc avatar Jan 18 '24 00:01 tikejc

+1

DeHby avatar Jan 22 '24 04:01 DeHby

+1

/Users/dengjian/project/xxxx/poc/Dobby/./source/core/assembler/assembler-x64.h:8:10: fatal error: 'MemoryAllocator/CodeBuffer/code_buffer_x64.h' file not found #include "MemoryAllocator/CodeBuffer/code_buffer_x64.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [CMakeFiles/dobby.dir/build.make:202: CMakeFiles/dobby.dir/source/InstructionRelocation/x86/InstructionRelocationX86Shared.cc.o] Error 1 2 errors generated. make[3]: *** [CMakeFiles/dobby.dir/build.make:216: CMakeFiles/dobby.dir/source/InstructionRelocation/x64/InstructionRelocationX64.cc.o] Error 1 14 errors generated. make[3]: *** [CMakeFiles/dobby.dir/build.make:230: CMakeFiles/dobby.dir/source/InstructionRelocation/x86/x86_insn_decode/x86_insn_decode.c.o] Error 1 make[2]: *** [CMakeFiles/Makefile2:144: CMakeFiles/dobby.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:151: CMakeFiles/dobby.dir/rule] Error 2 make: *** [Makefile:124: dobby] Error 2 Traceback (most recent call last): File "/Volumes/devSSD/project/xxxx/poc/Dobby/scripts/platform_builder.py", line 243, in builder.build() File "/Volumes/devSSD/project/xxxx/poc/Dobby/scripts/platform_builder.py", line 75, in build subprocess.run("cmake --build . --clean-first --target dobby --target dobby_static -- -j8", cwd=self.cmake_build_dir, shell=True, check=True) File "/opt/anaconda3/lib/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'cmake --build . --clean-first --target dobby --target dobby_static -- -j8' returned non-zero exit status 2.

and I use this commit instand:

commit 52cc0286d9709ede91ac84d7260de21d2273b0af (HEAD) Author: jmpews [email protected] Date: Fri Mar 3 12:54:12 2023 +0800

Cleanup code, and fix build script

qiushuitian avatar Jan 25 '24 12:01 qiushuitian

+1

tcc0lin avatar Feb 23 '24 15:02 tcc0lin