Aircrack-ng 1.2-rc5 Compilation failed!

Hello guys,
When i compile aircrack-ng 1.2-rc5(commit ==> 8f07f441f937bd17cddfd60b09a5bb669fe1150f)
After several minutes of compilation i got this error message below :

make[2]: Entering directory '/home/osboxes/Desktop/openwrt/package/network/utils/aircrack-ng'
mkdir -p /home/osboxes/Desktop/openwrt/dl
echo "Checking out files from the git repository..."; mkdir -p /home/osboxes/Desktop/openwrt/tmp/dl && cd /home/osboxes/Desktop/openwrt/tmp/dl && rm -rf aircrack-ng-1.2-rc5 && [ \! -d aircrack-ng-1.2-rc5 ] && git clone https://github.com/aircrack-ng/aircrack-ng.git aircrack-ng-1.2-rc5 --recursive && (cd aircrack-ng-1.2-rc5 && git checkout 8f07f441f937bd17cddfd60b09a5bb669fe1150f && git submodule update) && echo "Packing checkout..." && rm -rf aircrack-ng-1.2-rc5/.git && 	/bin/tar czf /home/osboxes/Desktop/openwrt/tmp/dl/aircrack-ng-1.2-rc5-8f07f441f937bd17cddfd60b09a5bb669fe1150f.tar.gz aircrack-ng-1.2-rc5 && mv /home/osboxes/Desktop/openwrt/tmp/dl/aircrack-ng-1.2-rc5-8f07f441f937bd17cddfd60b09a5bb669fe1150f.tar.gz /home/osboxes/Desktop/openwrt/dl/ && rm -rf aircrack-ng-1.2-rc5; 
Checking out files from the git repository...
Cloning into 'aircrack-ng-1.2-rc5'...
remote: Enumerating objects: 25976, done.
remote: Total 25976 (delta 0), reused 0 (delta 0), pack-reused 25976
Receiving objects: 100% (25976/25976), 14.51 MiB | 1.55 MiB/s, done.
Resolving deltas: 100% (18418/18418), done.
Note: checking out '8f07f441f937bd17cddfd60b09a5bb669fe1150f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 8f07f441 Prepare for release.
Packing checkout...
touch /home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/.prepared_1deee768bea902b20f191604ce568019
(cd /home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/./; if [ -x ./configure ]; then /usr/bin/find /home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/ -name config.guess | xargs -r -n1 cp /home/osboxes/Desktop/openwrt/scripts/config.guess; /usr/bin/find /home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/ -name config.sub | xargs -r -n1 cp /home/osboxes/Desktop/openwrt/scripts/config.sub; AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 " CPPFLAGS="-I/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib "   ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   ; fi; )
rm -f /home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/.configured_*
touch /home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/.configured_
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16  -I/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16  -I/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/osboxes/Desktop/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/osboxes/Desktop/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib " make   -C /home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/. AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" ARCH="mips" prefix=/usr libnl=true sqlite=false experimental=false stackprotector=false OSNAME=Linux ;
make[3]: Entering directory '/home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5'
make[3]: *** No targets specified and no makefile found.  Stop.
make[3]: Leaving directory '/home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5'
Makefile:57: recipe for target '/home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/.built' failed
make[2]: *** [/home/osboxes/Desktop/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/aircrack-ng-1.2-rc5/.built] Error 2
make[2]: Leaving directory '/home/osboxes/Desktop/openwrt/package/network/utils/aircrack-ng'
package/Makefile:169: recipe for target 'package/network/utils/aircrack-ng/compile' failed
make[1]: *** [package/network/utils/aircrack-ng/compile] Error 2
make[1]: Leaving directory '/home/osboxes/Desktop/openwrt'
/home/osboxes/Desktop/openwrt/include/toplevel.mk:169: recipe for target 'package/network/utils/aircrack-ng/compile' failed
make: *** [package/network/utils/aircrack-ng/compile] Error 2

How to bypass this ?

Perhaps fixing your Makefile?

Below is the Makefile i used to compile the version 1.2-rc4 and it worked fine. So i just modified PKG_VERSION and PKG_SOURCE_VERSION matching with 1.2-rc5

#
# Copyright (C) 2006-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=aircrack-ng
PKG_VERSION:=1.2-rc5
PKG_RELEASE:=1
PKG_LICENSE:=GPLv2

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/aircrack-ng/aircrack-ng.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=8f07f441f937bd17cddfd60b09a5bb669fe1150f
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz

PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/aircrack-ng
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libpcap +libpthread +libopenssl +libnl +wireless-tools +ethtool +libstdcpp
  TITLE:=WLAN tools for breaking 802.11 WEP/WPA keys
  URL:=http://www.aircrack-ng.org/
  MAINTAINER:=Rick Farina <zerochaos@gentoo.org>
  SUBMENU:=wireless
endef

define Package/aircrack-ng/description
  WLAN tools for breaking 802.11 WEP/WPA keys
endef

MAKE_FLAGS += prefix=/usr \
	libnl=true \
	sqlite=false \
	experimental=false \
	stackprotector=false \
	OSNAME=Linux
	

CFLAGS="$(TARGET_CFLAGS) -Wall -Iinclude/ $(TARGET_CPPFLAGS) -D_REVISION=0" \

define Package/aircrack-ng/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,aircrack-ng))