Problem with script for development environment on Ubuntu LTS

I am following this which is the script installs everything you need: PX4, ROS “Kinetic”, the Gazebo 7 simulator, and MAVROS.

source ubuntu_sim_ros_gazebo.sh

here the end message before error:

Workspace configuration appears valid.
-------------------------------------------------
[build] Found '1' packages in 0.0 seconds.                                     
[build] Package table is up to date.                                           
Starting  >>> px4                                                              
_______________________________________________________________________________
Errors     << px4:make /home/yograj/logs/px4/build.make.003.log                
make[2]: *** [uORB/topics/actuator_armed.h] Error 1
make[1]: *** [msg/CMakeFiles/uorb_headers.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [src/lib/mixer/mixer_multirotor_normalized.generated.h] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/lib/mixer/mixer_multirotor.generated.h] Error 1
make[1]: *** [src/lib/mixer/CMakeFiles/mixer_gen.dir/all] Error 2
make: *** [all] Error 2
cd /home/yograj/build/px4; catkin build --get-env px4 | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; 
cd -
...............................................................................
Failed     << px4:make           [ Exited with code 2 ]                        
Failed    <<< px4                [ 0.3 seconds ]                               
[build] Summary: 0 of 1 packages succeeded.                                    
[build]   Ignored:   None.                                                     
[build]   Warnings:  None.                                                     
[build]   Abandoned: None.                                                     
[build]   Failed:    1 packages failed.                                        
[build] Runtime: 0.3 seconds total.                                            
ROS catkin_ws setup.bash already in .bashrc

I am getting the same error when trying to build px4, which is as follows:-

make[2]: *** [uORB/topics/uORBTopics.hpp] Error 1
make[1]: *** [msg/CMakeFiles/uorb_headers.dir/all] Error 2
make: *** [all] Error 2

How were you able to solve it?

@ikvibhav @Yograj_Singh_Mandloi
could any of you solve it ? I am getting the same problem and I could not solve it
make[2]: *** [uORB/topics/uORBTopics.hpp] Error 1
make[1]: *** [msg/CMakeFiles/uorb_headers.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
make: *** [all] Error 2