apache / apache/nuttx

Failed to build simulator

Open
#11,163 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

I tried to build simulator on my M2 MBA, It produce error like below.
```
➞ ./tools/configure.sh -m sim:nsh
No configuration change.
➞ make clean
➞ make -j8
Create version.h
CC: misc/lib_fnmatch.c sched/sched_cpuload.c:109:25: error: use of undeclared identifier 'CONFIG_SCHED_CPULOAD_TIMECONSTANT'
if (g_cpuload_total > CPULOAD_TIMECONSTANT)
^
sched/sched_cpuload.c:59:7: note: expanded from macro 'CPULOAD_TIMECONSTANT'
CONFIG_SCHED_CPULOAD_TIMECONSTANT * \
^
1 error generated.
make[1]: *** [sched_cpuload.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [sched/libsched.a] Error 2
make: *** Waiting for unfinished jobs....
```
I fetched master branch before I build.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with ./tools/configure.sh -m sim:nsh, make clean, and make -j8. Start with sched/sched_cpuload.c and the reported CONFIG_SCHED_CPULOAD_TIMECONSTANT error, then trace how the simulator configuration is generated. Done means the simulator build completes without this undeclared-identifier error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.