Open mildsky opened 12 months ago
@mildsky there is something wrong on your config! sched_cpuload.c is only compiled when CONFIG_SCHED_CPULOAD is enabled and by default it is disabled:
$ cat .config | grep CONFIG_SCHED_CPULOAD
# CONFIG_SCHED_CPULOAD is not set
Did you run "make menuconfig" and added it manually? Anyway is it strange because when I enable CONFIG_SCHED_CPULOAD into menuconfig, it automatically defines that symbol that is missing on your setup:
$ cat .config | grep CONFIG_SCHED_CPULOAD_TIMECONSTANT
CONFIG_SCHED_CPULOAD_TIMECONSTANT=2
BTW, I'm using Linux, not sure if it could be something specific to MacOS M2
I didn't add manually, but after I tried to add it, CONFIG_SCHED_CPULOAD_TIMECONSTANT
was properly setted as 2. But, there are still some bugs that I can't understand.
here are my console output.
$ make clean
$ ./tools/configure.sh -m sim:nsh
No configuration change.
$ cat .config | grep CONFIG_SCHED_CPULOAD
# CONFIG_SCHED_CPULOAD_NONE is not set
CONFIG_SCHED_CPULOAD_SYSCLK=y
# CONFIG_SCHED_CPULOAD_EXTCLK is not set
CONFIG_SCHED_CPULOAD_TIMECONSTANT=2
$ cat .config | grep CONFIG_SCHED_CPULOAD_TIMECONSTANT
CONFIG_SCHED_CPULOAD_TIMECONSTANT=2
$ make -j8
LD: nuttx
ld: Undefined symbols:
_nxsched_process_cpuload_ticks, referenced from:
_main in nuttx.rel
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [nuttx] Error 1
make: *** [nuttx] Error 2
I think that simulator not yet supported on apple silicon machine. Thank you.
I tried to build simulator on my M2 MBA, It produce error like below.
I fetched master branch before I build.