You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compiled the bash executable on an intel Mac and had no issues running on other intel mac, M1, M2 processor macs. When I run the executable on an M2 Pro I receive the error:
unable to execute ./myprogram: Bad CPU type in executable
The text was updated successfully, but these errors were encountered:
If it's related to a 32bit/64bit architecture, know that you can set compiler flags in the environment. (CFLAGS/LDDFLAGS/...). So then you could set -m32 (I believe that's the option) to compile.
I compiled the bash executable on an intel Mac and had no issues running on other intel mac, M1, M2 processor macs. When I run the executable on an M2 Pro I receive the error:
unable to execute ./myprogram: Bad CPU type in executable
The text was updated successfully, but these errors were encountered: