Error tying to write the first application

HI!
i’m new in PX4 development and i’m trying to write my first application, I’ve followed all the instructions from the PX4 dev guide, but when i’m trying to build it, this comes out:

gesem@gesem-Inspiron-5558:~$ cd Firmware
gesem@gesem-Inspiron-5558:~/Firmware$ make px4fmu-v2_default
[2/538] px4fmu-v2: nuttx-patches/00002-REJECTED-fix-shadow-wanings.patch applied
FAILED: cd /home/gesem/Firmware/build_px4fmu-v2_default && /usr/bin/patch --verbose -d /home/gesem/Firmware/build_px4fmu-v2_default/px4fmu-v2/NuttX -s -p1 -N < /home/gesem/Firmware/nuttx-patches/00002-REJECTED-fix-shadow-wanings.patch && cmake -E touch /home/gesem/Firmware/build_px4fmu-v2_default/px4fmu-v2/NuttX/px4fmu-v2-nuttx_patch_00002-REJECTED-fix-shadow-wanings.patch.stamp
The text leading up to this was:
--------------------------
|diff --git NuttX/nuttx/include/signal.h NuttX/nuttx/include/signal.h
|index bd8ee9f…7ee242a 100644
|— NuttX/nuttx/include/signal.h
|+++ NuttX/nuttx/include/signal.h
--------------------------
**File to patch: **
**Skip this patch? [y] **
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|diff --git NuttX/nuttx/include/stdlib.h NuttX/nuttx/include/stdlib.h
|index aa259c9…f2b0640 100644
|— NuttX/nuttx/include/stdlib.h
|+++ NuttX/nuttx/include/stdlib.h
--------------------------
**File to patch: **
**Skip this patch? [y] **
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|diff --git NuttX/nuttx/include/sys/stat.h NuttX/nuttx/include/sys/stat.h
|index 3f2658b…41c8604 100644
|— NuttX/nuttx/include/sys/stat.h
|+++ NuttX/nuttx/include/sys/stat.h
--------------------------
**File to patch: **
**Skip this patch? [y] **
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|diff --git NuttX/nuttx/include/sys/statfs.h NuttX/nuttx/include/sys/statfs.h
|index 1d1786a…12f802b 100644
|— NuttX/nuttx/include/sys/statfs.h
|+++ NuttX/nuttx/include/sys/statfs.h
--------------------------
**File to patch: **
**Skip this patch? [y] **
1 out of 1 hunk ignored
[2/538] px4io-v2: nuttx-patches/00002-REJECTED-fix-shadow-wanings.patch applied
FAILED: cd /home/gesem/Firmware/build_px4fmu-v2_default/src/modules/px4iofirmware && /usr/bin/patch --verbose -d /home/gesem/Firmware/build_px4fmu-v2_default/px4io-v2/NuttX -s -p1 -N < /home/gesem/Firmware/nuttx-patches/00002-REJECTED-fix-shadow-wanings.patch && cmake -E touch /home/gesem/Firmware/build_px4fmu-v2_default/px4io-v2/NuttX/px4io-v2-nuttx_patch_00002-REJECTED-fix-shadow-wanings.patch.stamp
The text leading up to this was:
--------------------------
|diff --git NuttX/nuttx/include/signal.h NuttX/nuttx/include/signal.h
|index bd8ee9f…7ee242a 100644
|— NuttX/nuttx/include/signal.h
|+++ NuttX/nuttx/include/signal.h
--------------------------
**File to patch: **
**Skip this patch? [y] **
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|diff --git NuttX/nuttx/include/stdlib.h NuttX/nuttx/include/stdlib.h
|index aa259c9…f2b0640 100644
|— NuttX/nuttx/include/stdlib.h
|+++ NuttX/nuttx/include/stdlib.h
--------------------------
**File to patch: **
**Skip this patch? [y] **
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|diff --git NuttX/nuttx/include/sys/stat.h NuttX/nuttx/include/sys/stat.h
|index 3f2658b…41c8604 100644
|— NuttX/nuttx/include/sys/stat.h
|+++ NuttX/nuttx/include/sys/stat.h
--------------------------
**File to patch: **
**Skip this patch? [y] **
1 out of 1 hunk ignored
The text leading up to this was:
--------------------------
|diff --git NuttX/nuttx/include/sys/statfs.h NuttX/nuttx/include/sys/statfs.h
|index 1d1786a…12f802b 100644
|— NuttX/nuttx/include/sys/statfs.h
|+++ NuttX/nuttx/include/sys/statfs.h
--------------------------
**File to patch: **
**Skip this patch? [y] **
1 out of 1 hunk ignored
ninja: build stopped: subcommand failed.
Makefile:161: recipe for target ‘px4fmu-v2_default’ failed
make: *** [px4fmu-v2_default] Error 1

Does anyone know how to solve this ? I’m very new at this.
Thank you!

Was this answered on github already? If not, try make distclean, then try building again.

yes, thanks!
it worked perfectly.