Undefined symbols for architecture arm64: "_OBJC_CLASS_$_CrashReport"
georgexploit opened this issue · 6 comments
Hello,
I'm trying to make
the project on M1 Max macOS Version 13.3.
I'm getting the next error:
georgexploit@Georges-MBP honggfuzz % make
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o honggfuzz cmdline.o display.o fuzz.o honggfuzz.o input.o mangle.o report.o sanitizers.o socketfuzzer.o subproc.o mac/arch.o mac/mach_excServer.o mac/mach_excUser.o libhfcommon/libhfcommon.a -pthread -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lm -F/System/Library/PrivateFrameworks -framework CoreSymbolication -framework IOKit -F/System/Library/Frameworks -F/System/Library/PrivateFrameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/System/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/System/Library/PrivateFrameworks -framework Foundation -framework ApplicationServices -framework Symbolication -framework CoreServices -framework CrashReporterSupport -framework CoreFoundation -framework CommerceKit third_party/mac/CrashReport_Sierra.o
ld: warning: ignoring file third_party/mac/CrashReport_Sierra.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_CrashReport", referenced from:
objc-class-ref in arch.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [honggfuzz] Error 1
how can I fix it?
Thanks
If you type file -b third_party/mac/CrashReport_Sierra.o
, there goes your answer why it fails.
If you type
file -b third_party/mac/CrashReport_Sierra.o
, there goes your answer why it fails.
Thank you for the quick response,
is there a way to fix this issue or is the project not updated for apple's new chips?
Could POSIX code work instead?
OS=POSIX make clean all
?
Could POSIX code work instead?
OS=POSIX make clean all
?
Unfortunately, now it has problems with different variable types and finding included headers that don't exist for macOS.
but thanks for the try to help
Same issue over here unfortunately. @georgexploit were you able to fix it since then ?