Skip to content

detect apple silicon as arm64 instead of arm

When I try to build gstreamer on apple silicon without explicitly specifying a config, the host architecture and target architecture are resolved as arm.

geordanneukum@Geordans-MacBook-Air cerbero % git rev-parse HEAD                           
4b4519b9a95b1bd03823b7c311e6230b0ba1fe1a
geordanneukum@Geordans-MacBook-Air cerbero % ./cerbero-uninstalled show-config | grep -E "arch :|target_arch :"
objc[76766]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20fdc4188) and ?? (0x1141a02b8). One of the two will be used. Which one is undefined.
objc[76766]: Class AMSupportURLSession is implemented in both ?? (0x20fdc41d8) and ?? (0x1141a0308). One of the two will be used. Which one is undefined.
objc[76767]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20fdc4188) and ?? (0x1161a02b8). One of the two will be used. Which one is undefined.
objc[76767]: Class AMSupportURLSession is implemented in both ?? (0x20fdc41d8) and ?? (0x1161a0308). One of the two will be used. Which one is undefined.
                     arch : arm
              target_arch : arm
geordanneukum@Geordans-MacBook-Air cerbero % 

This is incorrect, as my machine is arm64.

geordanneukum@Geordans-MacBook-Air cerbero % uname -a                                     
Darwin Geordans-MacBook-Air.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64

With the patches applied, I see that cerbero resolves my architecture as arm64 as expected.

geordanneukum@Geordans-MacBook-Air cerbero % ./cerbero-uninstalled show-config | grep -E "arch :|target_arch :"
objc[76755]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20fdc4188) and ?? (0x1144502b8). One of the two will be used. Which one is undefined.
objc[76755]: Class AMSupportURLSession is implemented in both ?? (0x20fdc41d8) and ?? (0x114450308). One of the two will be used. Which one is undefined.
objc[76756]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20fdc4188) and ?? (0x114ac02b8). One of the two will be used. Which one is undefined.
objc[76756]: Class AMSupportURLSession is implemented in both ?? (0x20fdc41d8) and ?? (0x114ac0308). One of the two will be used. Which one is undefined.
                     arch : arm64
              target_arch : arm64

Merge request reports