patacongo commented on pull request #39:
URL:
https://github.com/apache/incubator-nuttx-testing/pull/39#issuecomment-699679541
These all look like toolchain-related issues? Which toolchain are you
using? I recommend the ARM embedded toolchain which is a windows native
toolchain. All of the problems that I see could be explained if
CONFIG_CYGWIN_WINTOOL were not set:
The -I and -isystem arguments would be wrong in this case:
ERROR: arm-none-eabi-gcc failed: 1
command: arm-none-eabi-gcc -MT
./cle.cygdrive.d.a.incubator-nuttx-testing.incubator-nuttx-testing.apps.system.cle.o
-M '-fno-builtin' '-Wall' '-Wstrict-prototypes' '-Wshadow' '-Wundef' '-g'
'-mcpu=cortex-m7' '-mthumb' '-mfloat-abi=soft' '-isystem'
'/cygdrive/d/a/incubator-nuttx-testing/incubator-nuttx-testing/nuttx/include'
'-D__KERNEL__' '-Wno-cpp' '-Werror' '-pipe' '-I'
'/cygdrive/d/a/incubator-nuttx-testing/incubator-nuttx-testing/apps/graphics/lvgl'
'-I'
'/cygdrive/d/a/incubator-nuttx-testing/incubator-nuttx-testing/apps/graphics/lvgl/lvgl'
'-I'
'/cygdrive/d/a/incubator-nuttx-testing/incubator-nuttx-testing/apps/include'
./cle.c
The following error often happens in that case:
make[1]: *** [Makefile:63:
/cygdrive/d/a/incubator-nuttx-testing/incubator-nuttx-testing/apps/platform_depend]
Error 2
./cle.c:40:10: fatal error: nuttx/config.h: No such file or directory
40 | #include <nuttx/config.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
That is because the windows toolchain cannot follow the cygwin paths.
Can you verify that `CONFIG_CYGWIN_WINTOOL` is selected after running `make
olddefconfig`? It will not be selected in the `defconfig` file, but should be
selected if during `make olddefconfig` if the correct toolchain is selected.
See `arch/arm/src/armv7-m/Kconfig`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]