Hi Anupam,
You cannot do it this way. Please search a little bit more about
cross-compiling to understand more about it.
Just a quick explanation: your "gcc" is prepared to compile only for
your host processor family (i.e. AMD64). So it will not compile for
ARM. Also, even if your host was ARM it could not compile correctly
for ARM Cortex-M7 in your case.
You should use the arm-none-eabi-gcc for this purpose, but even using
it you will face many issues because you need to setup the right
CFLAGS, LDFLAGS, etc.
People spent much time developing the building system to simplify the
compilation, so I suggest you to use it.
BR,
Alan
> --
> You received this message because you are subscribed to the Google Groups
> "NuttX" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
nuttx+un...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/nuttx/f53a8508-f126-4a92-8564-ae1cb9944b4bo%40googlegroups.com.
>