Failed to Build with Custom Apps Directory
- Dominant language
- C
- Stars
- 4k
- Forks
- 1.7k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 237
Description
I am trying to build with a custom apps directory following this guide:
https://nuttx.apache.org/docs/latest/guides/customapps.html#custom-apps-how-to
Using NuttX Release 12.3.0 in WSL (Linux version 5.15.133.1-microsoft-standard-WSL2), I created the example files listed in the guide and try to build
`> ./tools/configure.sh -E -a ../CustomApps sim:nsh` runs fine
`> make` has a build error:
```
/usr/bin/ld: nuttx.rel: warning: relocation against `g_builtins' in read-only section `.text.builtin_for_index'
/usr/bin/ld: nuttx.rel: in function `builtin_for_index':
/nuttx/libs/libc/builtin/lib_builtin_forindex.c:54: undefined reference to `g_builtin_count'
/usr/bin/ld: /nuttx/libs/libc/builtin/lib_builtin_forindex.c:56: undefined reference to `g_builtins'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
```
Looking in normal Apps directory `g_builtin_count` and `g_builtins` are defined in `builtin/builtin_list.c`, does this or something similar need to be added to custom apps directory as well? Or maybe I have a configuration issue unnecessarily requiring `g_builtin_count` and `g_builtins`?
Also just tested with latest `master` @ 804f713 and see the same issue
Contributor guide
Assessment
This issue has not been assessed yet.