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

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

Closed
georgexploit opened this issue Apr 8, 2023 · 6 comments
Closed

Comments

@georgexploit
Copy link

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
Copy link
Contributor

devnexen commented Apr 8, 2023

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

@georgexploit
Copy link
Author

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
Copy link
Contributor

devnexen commented Apr 8, 2023

no update so far since #477

@robertswiecki
Copy link
Collaborator

Could POSIX code work instead?

OS=POSIX make clean all

?

@georgexploit
Copy link
Author

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
Copy link

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

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