NuttX failing with dirlinks error

This is common error on NuttX, but unfortunately the build system is not clear to explain to the user about it.

$ git clone https://github.com/apache/incubator-nuttx
$ cd incubator-nuttx
$ ./tools/configure.sh esp32-core:nsh
...
This program built for x86_64-pc-linux-gnu
Report bugs to bug-make@gnu.org
make: *** [tools/Makefile.unix:319: dirlinks] Error 2
ERROR: failed to refresh

This problem happens because you missed to clone the apps/ repository:

$ cd ..
$ git clone https://github.com/apache/incubator-nuttx-apps apps

Now you can configure it correctly:

$ cd incubator-nuttx
$ ./tools/configure.sh esp32-core:nsh
...
#
# configuration written to .config
#

2 thoughts on “NuttX failing with dirlinks error

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s