Installation of OVS in OpenWrt

Hi All,

I am trying to install OVS on OpenWRT but I am stuck the below error

touch /home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-mediatek/stamp/.libmysqlclient_installed
echo "libmysqlclient" >> /home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/mysql.default.install
make[3]: Leaving directory '/home/karthik/openwrt/package/utils/mysql'
make[3]: Entering directory '/home/karthik/openwrt/package/lang/python/python-six'
make[3]: Leaving directory '/home/karthik/openwrt/package/lang/python/python-six'
make[3]: Entering directory '/home/karthik/openwrt/package/libs/libcap'
make[3]: Leaving directory '/home/karthik/openwrt/package/libs/libcap'
make[3]: Entering directory '/home/karthik/openwrt/package/utils/acl'
make[3]: Leaving directory '/home/karthik/openwrt/package/utils/acl'
make[3]: Entering directory '/home/karthik/openwrt/package/utils/coreutils'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/karthik/openwrt/package/utils/coreutils'
make[3]: Entering directory '/home/karthik/openwrt/package/utils/openvswitch'
mkdir -p /home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-mediatek/stamp
SHELL= flock /home/karthik/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/.pkgdir/kmod-openvswitch/. /home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-mediatek/'
touch /home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-mediatek/stamp/.kmod-openvswitch_installed
mkdir -p /home/karthik/openwrt/bin/targets/mediatek/32/packages /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/CONTROL /home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo
. /home/karthik/openwrt/include/shell.sh; export modules=; probe_module() { local mods="$1"; local boot="$2"; local mod; shift 2; for mod in $mods; do mkdir -p /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules.d; echo "$mod" >> /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules.d/openvswitch; done; if [ -e /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules.d/openvswitch ]; then if [ "$boot" = "1" -a ! -e /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules-boot.d/openvswitch ]; then mkdir -p /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules-boot.d; ln -s ../modules.d/openvswitch /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules-boot.d/; fi; modules="${modules:+$modules }$mods"; fi; }; add_module() { local priority="$1"; local mods="$2"; local boot="$3"; local mod; shift 3; for mod in $mods; do mkdir -p /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules.d; echo "$mod" >> /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules.d/$priority-openvswitch; done; if [ -e /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules.d/$priority-openvswitch ]; then if [ "$boot" = "1" -a ! -e /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules-boot.d/$priority-openvswitch ]; then mkdir -p /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules-boot.d; ln -s ../modules.d/$priority-openvswitch /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules-boot.d/; fi; modules="${modules:+$modules }$priority-openvswitch"; fi; }; probe_module "/home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/linux-4.9.44/net/openvswitch/openvswitch" ""; if [ -n "$modules" ]; then modules="$(echo "$modules" | tr ' ' '\n' | sort | uniq | paste -s -d' ' -)"; mkdir -p /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/etc/modules.d; mkdir -p /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/CONTROL; echo "#!/bin/sh" > /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/CONTROL/postinst-pkg; echo "[ -z \"\$IPKG_INSTROOT\" ] || exit 0" >> /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/CONTROL/postinst-pkg; echo ". /lib/functions.sh" >> /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/CONTROL/postinst-pkg; echo "insert_modules $modules" >> /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/CONTROL/postinst-pkg; chmod 0755 /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch/CONTROL/postinst-pkg; fi
find /home/karthik/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_32/openvswitch-2.11.1/ipkg-arm_cortex-a7_neon-vfpv4/kmod-openvswitch -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
cp: '/home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/kmod-openvswitch.provides' and '/home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/kmod-openvswitch.provides' are the same file
Makefile:327: recipe for target '/home/karthik/openwrt/bin/targets/mediatek/32/packages/kmod-openvswitch_4.9.44+2.11.1-3_arm_cortex-a7_neon-vfpv4.ipk' failed
make[3]: *** [/home/karthik/openwrt/bin/targets/mediatek/32/packages/kmod-openvswitch_4.9.44+2.11.1-3_arm_cortex-a7_neon-vfpv4.ipk] Error 1
make[3]: Leaving directory '/home/karthik/openwrt/package/utils/openvswitch'
package/Makefile:109: recipe for target 'package/utils/openvswitch/compile' failed
make[2]: *** [package/utils/openvswitch/compile] Error 2
make[2]: Leaving directory '/home/karthik/openwrt'
package/Makefile:105: recipe for target '/home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile' failed
make[1]: *** [/home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/karthik/openwrt'
/home/karthik/openwrt/include/toplevel.mk:255: recipe for target 'world' failed
make: *** [world] Error 2

I guess there is some issue at the statement

cp: '/home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/kmod-openvswitch.provides' and '/home/karthik/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/kmod-openvswitch.provides' are the same file

but I am not able to find what that is. Its trying to compare same file in same location.

Any leads would be appreciated.

Thanks