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

编译Mac库时报错 #252

Open
tikejc opened this issue Jan 18, 2024 · 3 comments
Open

编译Mac库时报错 #252

tikejc opened this issue Jan 18, 2024 · 3 comments

Comments

@tikejc
Copy link

tikejc commented Jan 18, 2024

运行命令: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 tikejc changed the title 编译Mac库时保存 编译Mac库时报错 Jan 18, 2024
@DeHby
Copy link

DeHby commented Jan 22, 2024

+1

@qiushuitian
Copy link

qiushuitian commented Jan 25, 2024

+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

@tcc0lin
Copy link

tcc0lin commented Feb 23, 2024

+1

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

4 participants