Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

bigsur build issue #21

Closed
P5-2005 opened this issue Dec 1, 2022 · 7 comments
Closed

bigsur build issue #21

P5-2005 opened this issue Dec 1, 2022 · 7 comments

Comments

@P5-2005
Copy link

P5-2005 commented Dec 1, 2022

hello,
tried to build it on bigsur, after 02hours got this :

Doing Post-Run Cleanup
Hikari Out
[126/5905] Building C object CMakeFiles/clang_rt.builtins_x86_64_osx.dir/ashrti3.c.o
FAILED: CMakeFiles/clang_rt.builtins_x86_64_osx.dir/ashrti3.c.o 
/Users/p5/Desktop/Hikari-LLVM15-llvm-15.0.2-ported/build/./bin/clang --target=x86_64-apple-darwin20.6.0   -Os -DNDEBUG -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.5 -fPIC -O3 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer -arch x86_64 -MD -MT CMakeFiles/clang_rt.builtins_x86_64_osx.dir/ashrti3.c.o -MF CMakeFiles/clang_rt.builtins_x86_64_osx.dir/ashrti3.c.o.d -o CMakeFiles/clang_rt.builtins_x86_64_osx.dir/ashrti3.c.o -c /Users/p5/Desktop/Hikari-LLVM15-llvm-15.0.2-ported/compiler-rt/lib/builtins/ashrti3.c
std::mt19937_64 seeded with current timestamp: 1669881112058
Initializing Hikari Core with Revision ID:
Failed To Link PreCompiled AntiHooking IR From:/Users/p5/Hikari/PrecompiledAntiHooking-x86_64-macosx.bc
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /Users/p5/Desktop/Hikari-LLVM15-llvm-15.0.2-ported/build/./bin/clang --target=x86_64-apple-darwin20.6.0 -Os -DNDEBUG -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.5 -fPIC -O3 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer -arch x86_64 -MD -MT CMakeFiles/clang_rt.builtins_x86_64_osx.dir/ashrti3.c.o -MF CMakeFiles/clang_rt.builtins_x86_64_osx.dir/ashrti3.c.o.d -o CMakeFiles/clang_rt.builtins_x86_64_osx.dir/ashrti3.c.o -c /Users/p5/Desktop/Hikari-LLVM15-llvm-15.0.2-ported/compiler-rt/lib/builtins/ashrti3.c
1.	<eof> parser at end of file
2.	Optimizer
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  clang                    0x0000000102a5b5de llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  clang                    0x0000000102a5b0af llvm::sys::CleanupOnSignal(unsigned long) + 180
2  clang                    0x00000001029cb219 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) + 97
3  clang                    0x00000001029cb40a CrashRecoverySignalHandler(int) + 135
4  libsystem_platform.dylib 0x00007fff203ddd7d _sigtramp + 29
5  libdyld.dylib            0x00007fff203b2ce8 _dyld_fast_stub_entry(void*, long) + 65
6  clang                    0x00000001035f781b llvm::AntiHook::doInitialization(llvm::Module&) + 2267
7  clang                    0x0000000103601fe7 llvm::Obfuscation::runOnModule(llvm::Module&) + 47
8  clang                    0x0000000103601dcf llvm::ObfuscationPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 37
9  clang                    0x000000010354d6fa llvm::detail::PassModel<llvm::Module, llvm::ObfuscationPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 18
10 clang                    0x0000000102524d88 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 398
11 clang                    0x0000000102c719d6 (anonymous namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>) + 7496
12 clang                    0x0000000102c6f25b clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>) + 1615
13 clang                    0x0000000102ece93d clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 1713
14 clang                    0x0000000103b30046 clang::ParseAST(clang::Sema&, bool, bool) + 715
15 clang                    0x00000001030e2c15 clang::FrontendAction::Execute() + 75
16 clang                    0x0000000103091a7f clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 465
17 clang                    0x00000001031367c4 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 516
18 clang                    0x0000000101a89569 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1575
19 clang                    0x0000000101a88618 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) + 259
20 clang                    0x0000000102fa6929 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const::$_1>(long) + 23
21 clang                    0x00000001029cb196 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 226
22 clang                    0x0000000102fa63e8 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const + 234
23 clang                    0x0000000102f84810 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const + 548
24 clang                    0x0000000102f84924 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&, bool) const + 104
25 clang                    0x0000000102f93297 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&) + 349
26 clang                    0x0000000101a8823b clang_main(int, char**) + 7190
27 libdyld.dylib            0x00007fff203b3f3d start + 1
28 libdyld.dylib            0x000000000000001c start + 18446603339975409888
clang-15: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 15.0.2
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Users/p5/Desktop/Hikari-LLVM15-llvm-15.0.2-ported/build/./bin
clang-15: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/ashrti3-645c71.c
clang-15: note: diagnostic msg: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/ashrti3-645c71.sh
clang-15: note: diagnostic msg: Crash backtrace is located in
clang-15: note: diagnostic msg: /Users/p5/Library/Logs/DiagnosticReports/clang-15_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang-15: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
clang-15: note: diagnostic msg: 

@61bcdefg
Copy link
Owner

61bcdefg commented Dec 1, 2022

What's your build command?

@P5-2005
Copy link
Author

P5-2005 commented Dec 1, 2022

What's your build command?

got it from you here :

cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_CREATE_XCODE_TOOLCHAIN=ON -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64" -DLLVM_ENABLE_RUNTIMES="compiler-rt" -DLLVM_INCLUDE_TESTS=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 -DLLVM_INCLUDE_EXAMPLES=OFF ../llvm

installed llvm from homebrew

@61bcdefg
Copy link
Owner

61bcdefg commented Dec 1, 2022

I don't understand this:

4  libsystem_platform.dylib 0x00007fff203ddd7d _sigtramp + 29
5  libdyld.dylib            0x00007fff203b2ce8 _dyld_fast_stub_entry(void*, long) + 65

Why did this happen?It seems dyld was having problems binding symbols.I have no idea and I don't have a BigSur Mac.
I will try to build on Monterey Mac and see if I get this error.

@P5-2005
Copy link
Author

P5-2005 commented Dec 1, 2022

no idea, but i build hikari 8 no issue on same mac

@61bcdefg
Copy link
Owner

61bcdefg commented Dec 1, 2022

I'm starting to build and will reply to you in about 15 or 20 minutes.

@61bcdefg
Copy link
Owner

61bcdefg commented Dec 1, 2022

Sorry, I didn't encounter the error you described and I built it in MacOS Monterey(MacBook Pro 2020th 13-inch) and I'm not sure how to solve your issue, maybe you could try updating your Xcode or MacOS.

@P5-2005
Copy link
Author

P5-2005 commented Dec 2, 2022

thanks, xcode is the last build for bigsur, i cannot install monterey(need bigsur on my setup)

@P5-2005 P5-2005 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants