[BUG] macOS: sim/note and sim/nsh fail to build
Description / Steps to reproduce the issue
macOS sim/note and sim/nsh fails to build with this Error:
====================================================================================
Configuration/Tool: sim/note
2025-02-06 11:39:20
------------------------------------------------------------------------------------
Cleaning...
Configuring...
Building NuttX...
ld: unknown option: --wrap
make[1]: *** [nuttx] Error 1
make: *** [nuttx] Error 2
make: Target `all' not remade because of errors.
/Users/runner/work/nuttx_test_pr/nuttx_test_pr/sources/nuttx/tools/testbuild.sh: line 385: /Users/runner/work/nuttx_test_pr/nuttx_test_pr/sources/nuttx/../nuttx/nuttx.manifest: No such file or directory
[1/1] Normalize sim/note
====================================================================================
Configuration/Tool: sim/nsh
2025-02-06 11:41:27
------------------------------------------------------------------------------------
Cleaning...
Configuring...
Building NuttX...
ld: library not found for -lgcov
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [nuttx] Error 1
make: *** [nuttx] Error 2
make: Target `all' not remade because of errors.
/Users/runner/work/nuttx_test_pr/nuttx_test_pr/sources/nuttx/tools/testbuild.sh: line 385: /Users/runner/work/nuttx_test_pr/nuttx_test_pr/sources/nuttx/../nuttx/nuttx.manifest: No such file or directory
[1/1] Normalize sim/nsh
====================================================================================
https://github.com/simbit18/nuttx_test_pr/actions/runs/13176605326/job/36777402793#logs
On which OS does this issue occur?
[OS: Mac]
What is the version of your OS?
GitHub Actions
NuttX Version
master
Issue Architecture
[Arch: simulator]
Issue Area
[Area: Build System]
Host information
No response
Verification
- [x] I have verified before submitting the report.
I am also encountering the same problem.
macOS 15.5 (24F74)
I've basically done the following:
mkdir nuttx-example && cd nuttx-example
git clone [email protected]:apache/nuttx-apps.git apps
git clone [email protected]:apache/nuttx.git nuttx
cd nuttx
./tools/configure.sh -l sim:nsh
make menuconfig # "Build setup" -> "Build host platform" -> "macOS". Save and exit
make -j
Temporary workaround:
make menuconfig # Library Routines -> Code coverage analysis support -> Disable coverage function
make clean
make -j
I am also encountering the same problem.
macOS 15.5 (24F74)
I've basically done the following:
mkdir nuttx-example && cd nuttx-example git clone [email protected]:apache/nuttx-apps.git apps git clone [email protected]:apache/nuttx.git nuttx cd nuttx ./tools/configure.sh -l sim:nsh make menuconfig # "Build setup" -> "Build host platform" -> "macOS". Save and exit make -j
@trytuna for macOS, you must use -m.
./tools/configure.sh -m sim:nsh
https://github.com/apache/nuttx/blob/63f081cbf2a76b1e00d087ce5416c8c29dfde068/tools/configure.sh#L36-L41
-l selects the Linux (l) host environment.
-m selects the macOS (m) host environment.
-c selects the Windows host and Cygwin (c) environment.
-g selects the Windows host and MinGW/MSYS environment.
-n selects the Windows host and Windows native (n) environment.
-B selects the *BSD (B) host environment.