Building on Ubuntu 16.04.3 LTS failing

Hi all, I am very new to this so sorry in advance. My pixhawk came with non functional main output #2 so I went through documentation modified mixers to shift outputs. Then I went step by step instructions for Ubuntu 16 using “Convenience script - ubuntu_sim_nuttx.sh” however after running command make px4fmu-v2_default I got errors:

px4@px4-pc:~/src/Firmware$ make px4fmu-v2_default
[2/561] px4fmu-v2: nuttx-patches/00002-REJECTED-fix-shadow-wanings.patch applied
FAILED: cd /home/px4/src/Firmware/build_px4fmu-v2_default && /usr/bin/patch --verbose -d /home/px4/src/Firmware/build_px4fmu-v2_default/px4fmu-v2/NuttX -s -p1 -N < /home/px4/src/Firmware/nuttx-patches/00002-REJECTED-fix-shadow-wanings.patch && cmake -E touch /home/px4/src/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/561] px4io-v2: nuttx-patches/00002-REJECTED-fix-shadow-wanings.patch applied
FAILED: cd /home/px4/src/Firmware/build_px4fmu-v2_default/src/modules/px4iofirmware && /usr/bin/patch --verbose -d /home/px4/src/Firmware/build_px4fmu-v2_default/px4io-v2/NuttX -s -p1 -N < /home/px4/src/Firmware/nuttx-patches/00002-REJECTED-fix-shadow-wanings.patch && cmake -E touch /home/px4/src/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:165: recipe for target ‘px4fmu-v2_default’ failed
make: *** [px4fmu-v2_default] Error 1

I did all the steps from manual so I would be very grateful for any help.
Many thanks!

Anyone can help please?