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
$ cd incubator-nuttx
$ ./tools/ esp32-core:nsh
This program built for x86_64-pc-linux-gnu
Report bugs to
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 apps

Now you can configure it correctly:

$ cd incubator-nuttx
$ ./tools/ 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: Logo

You are commenting using your 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