05-17-2023, 05:07 AM
Wow thanks @WhiteHexagon , that sounds awesome! I'm also using a very old MacBook Pro, macOS 10.15.7.
My Arm64 GCC version is 11.3.1, downloaded from here (look for "AArch64 Bare-Metal Target aarch64-none-elf")
Remember to add Arm64 GCC to the PATH after installing the DMG:
I used these steps to install kconfig-frontends: https://lupyuen.github.io/articles/nuttx...requisites
And I'm using a rather old version of Zig:
Lemme know if this works for building NuttX on macOS. Thanks! :-)
My Arm64 GCC version is 11.3.1, downloaded from here (look for "AArch64 Bare-Metal Target aarch64-none-elf")
Code:
→ aarch64-none-elf-gcc -v
Using built-in specs.
COLLECT_GCC=aarch64-none-elf-gcc
COLLECT_LTO_WRAPPER=/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin/../libexec/gcc/aarch64-none-elf/11.3.1/lto-wrapper
Target: aarch64-none-elf
Configured with: /Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/src/gcc/configure --target=aarch64-none-elf --prefix=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/install --with-gmp=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/host-tools --with-mpfr=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/host-tools --with-mpc=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/host-tools --with-isl=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/host-tools --disable-shared --disable-nls --disable-threads --disable-tls --enable-checking=release --enable-languages=c,c++,fortran --with-newlib --with-gnu-as --with-gnu-ld --with-sysroot=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/install/aarch64-none-elf --with-pkgversion='Arm GNU Toolchain 11.3.Rel1' --with-bugurl=https://bugs.linaro.org/
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 11.3.1 20220712 (Arm GNU Toolchain 11.3.Rel1)
Remember to add Arm64 GCC to the PATH after installing the DMG:
Code:
export PATH="$PATH:/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin"
I used these steps to install kconfig-frontends: https://lupyuen.github.io/articles/nuttx...requisites
Code:
## For macOS:
brew install automake
## Build "kconfig-frontends" because the "brew install" version doesn't work
pushd /tmp
git clone https://bitbucket.org/nuttx/tools.git
cd tools/kconfig-frontends
patch < ../kconfig-macos.diff -p 1
./configure --enable-mconf --disable-shared --enable-static --disable-gconf --disable-qconf --disable-nconf
## Needed because "make" requires "aclocal-1.15" and "automake-1.15"
sudo ln -s /usr/local/bin/aclocal /usr/local/bin/aclocal-1.15
sudo ln -s /usr/local/bin/automake /usr/local/bin/automake-1.15
make
## Install "kconfig-frontends"
make install
popd
And I'm using a rather old version of Zig:
Code:
→ zig version
0.10.0-dev.2351+b64a1d5ab
Lemme know if this works for building NuttX on macOS. Thanks! :-)