编译Mac库时报错
tikejc opened this issue · 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
+1
+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 52cc028 (HEAD)
Author: jmpews jmpews@gmail.com
Date: Fri Mar 3 12:54:12 2023 +0800
Cleanup code, and fix build script
+1