Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Linker ignores lots of files because it builds for macOS-arm64 but it attempts to link for file built for unknown-x86_64

Open mileshenry31 opened this issue 3 years ago • 1 comments

Screenshot of the errors in my terminal. Screen Shot 2022-07-13 at 7 49 05 PM

mileshenry31 avatar Jul 14 '22 02:07 mileshenry31

In the previous issue (https://github.com/beefytech/Beef/issues/1644#issuecomment-1183922830) you mentioned you only changed the libffi include, right? In this case, if you're still using the unchanged BeefRT\CMakeLists.txt you could be linking to x86_64 libffi.

Also, when I was trying to compile for aarch64 (arm64) I was getting other similar errors, maybe these changes that I did in the past in the build files can help you, but you will need to adapt some things for your compiler triplet: https://github.com/beefytech/Beef/issues/1228

disarray2077 avatar Jul 14 '22 05:07 disarray2077