You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "simbit18 (via GitHub)" <gi...@apache.org> on 2024/11/07 14:27:57 UTC
[PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
simbit18 opened a new pull request, #14691:
URL: https://github.com/apache/nuttx/pull/14691
## Summary
Now you can use any of these runners
macos-13
https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
or
macos-14 (arm64)
https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
added autoconf
needed to build kconfig_frontends on macos-14
bloaty
speeded build with cmake + ninja
if we upgrade to macos-14 we need to remember to clear the caches (macOS-tools-xxxxxxxx) first
https://github.com/apache/nuttx/actions/caches
## Impact
Impact on user: No changes to user-facing functionality
Impact on build: Build process remains the same
## Testing
tested only on github workflow with only [macos] because sim01, sim02, sim03 are broken !!!
macos-13
[github macos-13](https://github.com/simbit18/nuttx-testing-ci/actions/runs/11724256583/job/32657844203)
macos-14
[github macos-14](https://github.com/simbit18/nuttx_test_pr/actions/runs/11724364651/job/32658207677
)
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2468027859
Thanks @simbit18, yep just go ahead and create the PR :-)
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2536300325
hi @lupyuen I added added LLVM toolchain for Arm on Apple Intel
release-17.0.1
on Apple Silicon
release-19.1.1
PR https://github.com/apache/nuttx/pull/15146
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2466552852
you can download macOS arm clang from:
https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/tag/release-19.1.1
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464418633
I don't quite understand what the code below is doing. PIP_USER and PYTHONUSERBASE seem to be interfering with the venv? This runs OK:
```python
python_tools() {
#### TODO: Previously failed to install Cython
# # Python User Env
# export PIP_USER=yes
# export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal
# echo "export PIP_USER=yes" >> "${NUTTXTOOLS}"/env.sh
# echo "export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal" >> "${NUTTXTOOLS}"/env.sh
# add_path "${PYTHONUSERBASE}"/bin
# if [ "X$osarch" == "Xarm64" ]; then
# python3 -m venv --system-site-packages /opt/homebrew
# fi
#### TODO: Now it installs Cython OK!
python3 -m venv .venv
source .venv/bin/activate
# workaround for Cython issue
# https://github.com/yaml/pyyaml/pull/702#issuecomment-1638930830
pip3 install "Cython<3.0"
```
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2466554361
Thanks! Need to figure out how to add this to our macOS CI Job 🤔
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464144948
> Now it fails while installing Cython:
>
> ```
> + python3 -m venv --system-site-packages /opt/homebrew
> + pip3 install 'Cython<3.0'
> [notice] A new release of pip is available: 24.2 -> 24.3.1
> [notice] To update, run: python3.13 -m pip install --upgrade pip
> error: externally-managed-environment
> × This environment is externally managed
> ╰─> To install Python packages system-wide, try brew install
> ```
@lupyuen for this problem i try to test on runner macos-14
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2462649082
@lupyuen maybe related to this ?
https://stackoverflow.com/a/77630733
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464424843
CI Build on Mac M2 Pro works OK yay! (with the above fixes)
```bash
$ ./cibuild.sh -i -c -A -R testlist/macos.dat
...
====================================================================================
Configuration/Tool: stm32f4discovery/nsh,CONFIG_ARM_TOOLCHAIN_GNU_EABI
2024-11-08 19:04:16
------------------------------------------------------------------------------------
Cleaning...
Configuring...
Disabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
Enabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
Building NuttX...
```
https://gist.github.com/lupyuen/6d25cfa16b8920b515dcc14835e7a479
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2462583245
Thanks @simbit18! On my Mac Mini M2 Pro, it fails while building gperf:
```text
g++ -g -O2 -I. -I./../lib -c ./main.cc
g++ -g -O2 -o gperf version.o positions.o options.o keyword.o keyword-list.o input.o bool-array.o hash-table.o search.o output.o main.o ../lib/libgp.a -lm
ld: archive member '/' not a mach-o file in '/Users/luppy/simbit18-macos-arm64/tools/gperf-3.1/lib/libgp.a'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```
https://gist.github.com/lupyuen/9e49ad8f91e2f2e9b76c41eb583664d9
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2462394909
@simbit18 I don't have an Intel Mac though. This will work on M1 Mac?
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2466712674
Our [macOS Build Farm](https://github.com/lupyuen/nuttx-build-farm) is up! We skipped these CI Jobs for macOS: [run-ci-macos.sh](https://github.com/lupyuen/nuttx-build-farm/blob/main/run-ci-macos.sh#L74-L96)
```bash
## Repeat forever for All CI Jobs, excluding:
## arm-05: "nrf5340-dk/rpmsghci_nimble_cpuapp: apps/wireless/bluetooth/nimble/mynewt-nimble/nimble/host/services/gatt/src/ble_svc_gatt.c:174:9: error: variable 'rc' set but not used"
## arm-07: "ucans32k146/se05x: mv: illegal option -- T"
## xtensa-02: "xtensa-esp32s2-elf-gcc: Command not found"
## arm64-01: "imx93-evk/bootloader: ld: library not found for -lcrt0.o"
## sim-01, 02, 03: "clang: error: invalid argument 'medium' to -mcmodel="
## other: "micropendous3/hello: make: avr-objcopy: Bad CPU type in executable"
for (( ; ; )); do
for job in \
arm-01 arm-02 arm-03 arm-04 \
arm-06 arm-08 arm-09 arm-10 \
arm-11 arm-12 arm-13 arm-14 \
risc-v-01 risc-v-02 risc-v-03 \
risc-v-04 risc-v-05 risc-v-06 \
xtensa-01 \
x86_64-01
do
## Run the CI Job and find errors / warnings
run_job $job
clean_log
find_messages
```
And we skipped all clang targets: [run-job-macos.sh](https://github.com/lupyuen/nuttx-build-farm/blob/main/run-job-macos.sh#L78-L99)
```bash
## Exclude clang Targets from macOS Build, because they will fail due to unknown arch
## "/arm/lpc54xx,CONFIG_ARM_TOOLCHAIN_CLANG"
## https://github.com/apache/nuttx/pull/14691#issuecomment-2466518544
tmp_file=$tmp_dir/rewrite-testlist.dat
for file in nuttx-patched/tools/ci/testlist/*.dat; do
grep -v "CLANG" \
$file \
>$tmp_file
mv $tmp_file $file
done
## Run the CI Job in "nuttx-patched"
## ./cibuild.sh -i -c -A -R testlist/macos.dat
## ./cibuild.sh -i -c -A -R testlist/arm-01.dat
pushd nuttx-patched/tools/ci
(
./cibuild.sh -i -c -A -R testlist/$job.dat \
|| echo '***** BUILD FAILED'
)
popd
```
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464437462
> I don't quite understand what the code below is doing. PIP_USER and PYTHONUSERBASE seem to be interfering with the venv? This runs OK:
>
> ```python
> python_tools() {
> #### TODO: Previously failed to install Cython
> # # Python User Env
> # export PIP_USER=yes
> # export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal
> # echo "export PIP_USER=yes" >> "${NUTTXTOOLS}"/env.sh
> # echo "export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal" >> "${NUTTXTOOLS}"/env.sh
> # add_path "${PYTHONUSERBASE}"/bin
>
> # if [ "X$osarch" == "Xarm64" ]; then
> # python3 -m venv --system-site-packages /opt/homebrew
> # fi
>
> #### TODO: Now it installs Cython OK!
> python3 -m venv .venv
> source .venv/bin/activate
>
> # workaround for Cython issue
> # https://github.com/yaml/pyyaml/pull/702#issuecomment-1638930830
> pip3 install "Cython<3.0"
> ```
This should be used for caches on github
https://github.com/simbit18/nuttx/blob/5609c3d4166905b224020ef70c5847367616889a/.github/workflows/build.yml#L227C7-L234C103
- name: Restore Tools Cache
id: cache-tools
uses: actions/cache@v4
env:
cache-name: ${{ runner.os }}-cache-tools
with:
path: ./sources/tools
key: ${{ runner.os }}-tools-${{ hashFiles('./sources/nuttx/tools/ci/platforms/darwin.sh') }}
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #14691:
URL: https://github.com/apache/nuttx/pull/14691
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2462890758
I just restarted the job so it will pick up the fix from https://github.com/apache/nuttx-apps/pull/2829. And it won't run all 6 hours :-)
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2466518544
Hmmm macOS fails to build arm-05, arm-08 ... arm-13 because of clang. I'll have to disable the clang builds for our macOS Build Farm:
```text
Configuration/Tool: mps3-an547/clang,CONFIG_ARM_TOOLCHAIN_CLANG
clang++: error: configuration file 'armv8.1m.main_hard_fp.cfg' cannot be found
clang++: note: was searched for in the directory: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang++: error: unsupported argument '-mthumb' to option '-Wa,'
clang++: error: unsupported argument '-mimplicit-it=always' to option '-Wa,'
clang++: error: unsupported argument 'armv8.1-m.main+mve.fp+fp.dp' to option '-march='
clang++: error: configuration file 'armv8.1m.main_hard_fp.cfg' cannot be found
```
https://gist.github.com/lupyuen/f5eb30774e7359b0bfd07100a07eb252#file-gistfile1-txt-L1374
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2467989882
hi @lupyuen I made some changes see branch
https://github.com/simbit18/nuttx/tree/simbit18-macos14
added the darwin_arm64.sh shell script only for macOS Apple Silicon (macos-14)
updated the toolchains for macOS on Apple Silicon
- arm64
- aarch64
- xpack-riscv
- xtensa-esp32
these will lighten your patch
https://github.com/lupyuen/nuttx-build-farm/blob/main/patch-ci-macos.sh
let me know if it is ok so I will create a new PR
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464210753
this is what I use locally (msys2)
python3 -m venv --system-site-packages /usr/local
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2465891220
FYI I'm running the script below to patch `darwin.sh` for my Mac Mini M2 Pro:
1. Change the toolchains from x86_64 macOS to Arm64 macOS
2. Remove Homebrew `ar` from PATH
3. Fix the Python Environment
The patched `darwin.sh` looks like this: [darwin.sh.txt](https://github.com/user-attachments/files/17685007/darwin.sh.txt)
```bash
## How to run CI Build:
## rm -rf NUTTX_PARENT_FOLDER/tools
## ./cibuild.sh -i -c -A -R testlist/macos.dat
## ./cibuild.sh -i -c -A -R testlist/arm-01.dat
set -e # Exit when any command fails
set -x # Echo commands
## Create the Temp Folder
tmp_dir=/tmp/macos-build-farm
rm -rf $tmp_dir
mkdir $tmp_dir
## We shall rewrite darwin.sh
file=tools/ci/platforms/darwin.sh
tmp_file=$tmp_dir/darwin.yml
## Search and replace in the file
function rewrite_file {
cat $file \
| sed "s/$search/$replace/g" \
>$tmp_file
mv $tmp_file $file
}
## Change: basefile=arm-gnu-toolchain-13.2.rel1-darwin-x86_64-arm-none-eabi
## To: basefile=arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi #### TODO
search='-darwin-x86_64-arm-none-eabi'
replace='-darwin-arm64-arm-none-eabi #### TODO: We changed to Arm64 macOS'
rewrite_file
## Change: basefile=arm-gnu-toolchain-13.2.Rel1-darwin-x86_64-aarch64-none-elf
## To: basefile=arm-gnu-toolchain-13.2.Rel1-darwin-arm64-aarch64-none-elf #### TODO
search='-darwin-x86_64-aarch64-none-elf'
replace='-darwin-arm64-aarch64-none-elf #### TODO: We changed to Arm64 macOS'
rewrite_file
## Change: basefile=xpack-riscv-none-elf-gcc-13.2.0-2-darwin-x64
## To: basefile=xpack-riscv-none-elf-gcc-13.2.0-2-darwin-arm64 #### TODO
search='-darwin-x64'
replace='-darwin-arm64 #### TODO: We changed to Arm64 macOS'
rewrite_file
## Change: basefile=xtensa-esp32-elf-12.2.0_20230208-x86_64-apple-darwin
## To: basefile=xtensa-esp32-elf-12.2.0_20230208-aarch64-apple-darwin #### TODO
search='-x86_64-apple-darwin'
replace='-aarch64-apple-darwin #### TODO: We changed to Arm64 macOS'
rewrite_file
## Change: add_path() {
## To: add_path() { ... } \r NOTUSED_add_path() {
search='^add_path() {'
replace=$(
cat <<'EOF' | tr '\n' '\r'
set -x # Echo commands
add_path() {
PATH=$1:${PATH}
#### TODO: We removed Homebrew ar from PATH
PATH=$(
echo $PATH \\
| tr ':' '\\n' \\
| grep -v "\/opt\/homebrew\/opt\/make\/libexec\/gnubin" \\
| grep -v "\/opt\/homebrew\/opt\/coreutils\/libexec\/gnubin" \\
| grep -v "\/opt\/homebrew\/opt\/binutils\/bin" \\
| tr '\\n' ':'
)
echo "**** PATH=$PATH" | tr ':' '\\n'
which ar ## Should show \/usr\/bin\/ar
}
NOTUSED_add_path() {
EOF
)
rewrite_file
## Change: python_tools() {
## To: NOTUSED_python_tools() {
search='^python_tools() {'
replace='NOTUSED_python_tools() {'
rewrite_file
## Change: # workaround for Cython issue
## To: } \r python_tools() { \r ... \r # workaround for Cython issue
search='^ # workaround for Cython issue'
replace=$(
cat <<'EOF' | tr '\n' '\r'
}
python_tools() {
#### TODO: We fixed the Python Environment
python3 -m venv .venv
source .venv\/bin\/activate
# workaround for Cython issue
EOF
)
rewrite_file
## Change \r back to \n
cat $file \
| tr '\r' '\n' \
>$tmp_file
mv $tmp_file $file
chmod +x $file
```
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2462411461
Today, GitHub is excited to announce the launch of a new M1 macOS runner!
https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464452581
OK the CI Build is done! https://gist.github.com/lupyuen/6d25cfa16b8920b515dcc14835e7a479
The downloading wasn't that slow, and the GitHub Cache won't work on my Mac anyway. I'll probably disable that chunk of code when I run my Mac Build Farm :-)
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464152675
Thank you so much! I see 3 different styles of `venv` in our CI Workflows, wondering which one we should use: https://github.com/search?q=repo%3Aapache%2Fnuttx%20venv&type=code
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464342987
If you change path the test on github macos-14 is ok
https://github.com/simbit18/nuttx_test_pr/actions/runs/11740209647/workflow
https://github.com/simbit18/nuttx_test_pr/actions/runs/11740209647/job/32706315729
we need to define a path that is ok for both (github and real macOS devices)
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464745664
I'm super impressed: arm-01 will actually build on Mac M2 Pro!
```bash
$ ./cibuild.sh -i -c -A -R testlist/arm-01.dat
Enabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
Building NuttX...
Normalize pcduino-a10/nsh
```
https://gist.github.com/lupyuen/e2babbcad9a102fcb002ca6dcf361895
Finally all my CPUs are getting purposefully busy :-)

--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2498108429
hi @lupyuen I added toolchains xtensa-esp32s2 and xtensa-esp32s3 for macOS on Apple Intel and Silicon
PR https://github.com/apache/nuttx/pull/14934
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2462390594
Hi @lupyuen can you run a test on real macOS devices ?
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] tools/ci/platforms/darwin.sh: Port NuttX CI Job to macOS-14 [nuttx]
Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2463622784
OK making good progress! I changed this in tools/ci/platforms/darwin.sh
```bash
add_path() {
PATH=$1:${PATH}
## TODO: Remove Homebrew ar from PATH
PATH=$(
echo $PATH \
| tr ':' '\n' \
| grep -v "/opt/homebrew/opt/make/libexec/gnubin" \
| grep -v "/opt/homebrew/opt/coreutils/libexec/gnubin" \
| grep -v "/opt/homebrew/opt/binutils/bin" \
| tr '\n' ':'
)
echo "**** PATH=$PATH" | tr ':' '\n'
## Should show /usr/bin/ar
which ar
}
```
Now it fails while installing Cython:
```text
+ python3 -m venv --system-site-packages /opt/homebrew
+ pip3 install 'Cython<3.0'
[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: python3.13 -m pip install --upgrade pip
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
```
https://gist.github.com/lupyuen/012515d912b8524d29a01793a256b485
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org