google / honggfuzz

Security oriented software fuzzer. Supports evolutionary, feedback-driven fuzzing based on code coverage (SW and HW based)
https://honggfuzz.dev
Apache License 2.0
3.04k stars 511 forks source link

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_CrashReport" #485

Closed georgexploit closed 1 year ago

georgexploit commented 1 year ago

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

devnexen commented 1 year ago

If you type file -b third_party/mac/CrashReport_Sierra.o, there goes your answer why it fails.

georgexploit commented 1 year ago

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?

devnexen commented 1 year ago

no update so far since https://github.com/google/honggfuzz/issues/477

robertswiecki commented 1 year ago

Could POSIX code work instead?

OS=POSIX make clean all

?

georgexploit commented 1 year ago

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

kevin-valerio commented 1 year ago

Same issue over here unfortunately. @georgexploit were you able to fix it since then ?