lupyuen opened a new issue, #14526:
URL: https://github.com/apache/nuttx/issues/14526

   ### Is your feature request related to a problem? Please describe.
   
   [As suggested by 
Nathan:](https://lists.apache.org/thread/2v0wry8q09st8q8x21cnbzrwh6tfr8xr) We 
seek help to port our NuttX CI Job from Intel Mac to Apple Silicon Mac (M1, M2, 
etc).
   
   Today our [CI Workflow 
build.yml](https://github.com/apache/nuttx/blob/master/.github/workflows/build.yml#L250)
 (on macOS) calls 
[cibuild.sh](https://github.com/apache/nuttx/blob/master/tools/ci/cibuild.sh):
   
   ```bash
   cd nuttx/tools/ci
   ./cibuild.sh -i -c -A -R testlist/macos.dat
   ```
   
   Which runs OK on Intel Mac. But on Apple Silicon Mac, 
[cibuild.sh](https://github.com/apache/nuttx/blob/master/tools/ci/cibuild.sh) 
calls 
[darwin.sh](https://github.com/apache/nuttx/blob/master/tools/ci/platforms/darwin.sh)
 which:
   
   1. [Fails to install 
gperf](https://gist.github.com/lupyuen/1331e5dc941ed5ce4bbaf32ea427694b) and 
kconfig_frontends. So we comment out the script and install gperf, 
kconfig_frontends ourselves.
   
   1. Then it [fails to install 
Cython](https://gist.github.com/lupyuen/caa3a736610261ed6c1710271bbdadee). And 
we're stuck here:
    
      ```bash
      + pip3 install 'Cython<3.0'
      error: externally-managed-environment
      × This environment is externally managed
      ╰─> To install Python packages system-wide, try brew install
      ```
   
   
   
   ### Describe the solution you'd like
   
   We hope to have 
[cibuild.sh](https://github.com/apache/nuttx/blob/master/tools/ci/cibuild.sh) 
and 
[darwin.sh](https://github.com/apache/nuttx/blob/master/tools/ci/platforms/darwin.sh)
 running successfully on Apple Silicon Macs because:
   - Intel Macs are becoming obsolete (Apple still supports them, but doesn't 
sell them)
   - And folks like me can run the NuttX CI Job on [Our Own Build 
Servers](https://lupyuen.codeberg.page/articles/ci2.html)
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Verification
   
   - [X] I have verified before submitting the report.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to