Post by ***@yahoo.com [nuttx]
LN: include/arch to arch/arm/include
include/arch already exists but is not a symbolic link
make: *** [Makefile.unix:290: include/arch] Error 1
That message comes from tools/link.sh under these circumstances:
The directory include/arch exists and is not a symbolic link. You should remove it via "rm -rf include/arch"
The probable situation is that you not setting up the configurations correctly on you platform and have corrupted the directory structures.. First you need do
And if it complains about being unable to remove a directory, you need to remove those manually.
Then reinstall the configuration. On Linux, you do that like:
tools/configure.sh -l <board>/<config>
Where -l means to configure for the Linux platform. If you are using Cygwin under windows, you would do:
tools/configure.sh -c <board>/<config>
Do 'tools/configure.sh -h' for other options.
Do not enter 'make' with assure that you have the correct configuration for your host platform or you will again corrupt the directory structure. For the case of Cygwin, you also need to check the what kind of toolchain you are using: (1) You might be using a Cygwin native toolchain such as the the NuttX buildroot tool chain built under Cygwin. These tools can follow Cygwin symbolic links. Or (2) a Windows native tool chain that you may have downloaded and installed on windows. These cannot follow Cygwin symbolic links and have to copy directories.
To select the toolchain, do 'make menuconfig' and select the correctly toolchain under the 'System Type' menu.
This is all discussed in excruciating detail in the top-level README.txt. If you keep configuring the board configurations wrong, you will need getting the same result (especially if you don't fix the directory structure after it has been corrupted by trying to make a bad configuration).