Openwrt Askey Unrecognized Command

Posted on

In OpenWRT I use two ovpn or conf files with route no pull / route. Commands therein to perform the tunnel splitting and tun0 and tun1 interfaces. Linked to the conf files. All that can be done by modifying the /etc/config/xy files pretty quickly. Is there a way in DD-WRT to realize it similarly, preferably via command line? Attached to Project: OpenWrt/LEDE Project Opened by Zbyněk Kocur - Last edited by Hans Dedecker - FS#1751 - Compilation of netifd from 30.7.2018 fails Compilation last version of netifd fails.

  1. make[4]: Leaving directory `/home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/uClibc-0.9.30.1/extra/config'
  2. PATH='/home/locke/dev/openwrt/staging_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin:/home/locke/dev/openwrt/staging_dir/host/bin:/home/locke/dev/openwrt/staging_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin:/home/locke/dev/openwrt/staging_dir/host/bin:/home/locke/dev/openwrt/staging_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin:/home/locke/dev/openwrt/staging_dir/host/bin:/home/locke/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/locke/droid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin' make -C /home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/uClibc-0.9.30.1 PREFIX='/home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/uClibc-dev/' DEVEL_PREFIX=/usr/ RUNTIME_PREFIX='/home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/uClibc-dev/' HOSTCC='gcc' CC='arm-openwrt-linux-uclibc-gcc' CPU_CFLAGS='-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float' ARCH='arm' pregen install_headers
  3. make[4]: Entering directory `/home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/uClibc-0.9.30.1'
  4. set -e;
  5. tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/nulltrue`;
  6. KERNEL_HEADERS='/home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/linux-dev/usr/include/' top_builddir=. CC='arm-openwrt-linux-uclibc-gcc -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float'/bin/sh extra/scripts/gen_bits_syscall_h.sh> $tmp;
  7. if cmp include/bits/sysnum.h $tmp >/dev/null 2>&1; then
  8. else
  9. fi
  10. cc1: error: unrecognized command line option '-mips32r2'
  11. cc1: error: unrecognized command line option '-mips32r2'
  12. if grep -q __NR_ include/bits/sysnum.h; then true;else
  13. echo 'ERROR: Could not generate syscalls.';
  14. echo 'Make sure that you have proper kernel headers.';
  15. echo 'Your .config in KERNEL_HEADERS='' was set to:';
  16. echo '/home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/linux-dev/usr/include/';
  17. fi
  18. Make sure that you have proper kernel headers.
  19. /home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/linux-dev/usr/include/
  20. make[4]: Leaving directory `/home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/uClibc-0.9.30.1'
  21. make[3]: *** [/home/locke/dev/openwrt/build_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/uClibc-0.9.30.1/.prepared] Error 2
  22. make[3]: Leaving directory `/home/locke/dev/openwrt/toolchain/uClibc'
  23. make[2]: Leaving directory `/home/locke/dev/openwrt'
  24. make[1]: *** [/home/locke/dev/openwrt/staging_dir/toolchain-arm_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/stamp/.toolchain_install] Error 2
  25. make[1]: Leaving directory `/home/locke/dev/openwrt'
  26. locke@locke-server:~/dev/openwrt$

Join GitHub today

GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Sign up New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments

commented Apr 21, 2015

Boost 1.58 does not build for MIPS32 on a x86_64 machine. It worked fine for boost 1.57.

The error message is 'mips-openwrt-linux-gcc: error: unrecognized command line option '-m32'

Setting the 32-bit option in <pkg_build_dir>/bin.v2/project-cache.jam to false solves the compiler error. Didn't test the resulting package yet.

commented Apr 23, 2015

I will work on it ASAP.
This is probably just the BOOST_ABI variable with the wrong value selected.

Openwrt

commented Apr 23, 2015

I have a patch that fixes the build but in my opinion not the source of the problem.

The target platform is Atheros AR231x/AR5312 btw.

commented Apr 23, 2015

I'm trying an other thing. From the previous version (1.57) I removed a patch which was also patching gcc.jam. Since that was the only thing I changed, related to the CPU arch, it was probably the thing that broke everything without me noticing.
I'm currently compiling a version and checking it if it works.

Thank you for your suggestion.

commented Apr 23, 2015

Openwrt Askey Unrecognized Command

It seems that the cause for the problem was this change: boostorg/boost@beb53b6

I confirm that your patch work. I will create a pull-request ASAP and also add support for Python 3.4

I also found a problem which needs to be Addressed. It seems that Boost.Locale is not being correctly built because, despite ICONV_DEPENDS is expressly used in the Boost Makefile to add and request iconv-full to be built, such is not happening for some unknown reason to me...
If someone needs Boost.Locale to be built, it must also go to the Global build settings and manually activate the 'Compile with full language support' option. I would prefer for this to be done automatically as a dependency.

Cheers

added a commit to ClaymorePT/packages that referenced this issue Apr 24, 2015

Added patch for Boost.Build

This was referenced Apr 24, 2015

Closed
Merged
Command

added a commit to ClaymorePT/packages that referenced this issue Apr 24, 2015

Openwrt Askey Unrecognized Command Manager

Added patch for Boost.Build

referenced this issue Apr 24, 2015

Merged

boost 1.58.0: added mips fix patch #1186

commented Apr 24, 2015

Pull request added (#1186)
I did not add Python 3 support. It will be done next time.

referenced this issue Nov 4, 2015

Closed

Fix Boost 1.58.0 build for mips arch #6937

Openwrt Askey Unrecognized Command In Windows 10

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment