Коллеги,
я начинающий пользователь. Пытаюсь собрать relayd модуль для totolink a2004ns. Компиляция вылетает с ошибкой. Вот вывод config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by json-c configure 0.11, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --target=mips-rlx5281-linux --host=mips-rlx5281-linux --build=x86_64-linux-gnu --program-prefix= --program-suffix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --s$
## --------- ##
## Platform. ##
## --------- ##
hostname = ubuntu
uname -m = x86_64
uname -r = 4.4.0-62-generic
uname -s = Linux
uname -v = #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/target-mips-rlx5281-linux/host/bin
PATH: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/toolchain-mips-rlx5281-linux/bin
PATH: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32ub-20141001/bin
PATH: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/host/bin
PATH: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/toolchain-mips-rlx5281-linux/bin
PATH: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32ub-20141001/bin
PATH: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/host/bin
PATH: /home/andrey/bin
PATH: /home/andrey/.local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001
PATH: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2141: loading site script /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/include/site/mips-rlx5281-linux
| #!/bin/sh
|
| . $TOPDIR/include/site/mips-linux
| . $TOPDIR/include/site/linux-uclibc
|
configure:2283: checking for a BSD-compatible install
configure:2351: result: /usr/bin/install -c
configure:2362: checking whether build environment is sane
configure:2412: result: yes
configure:2461: checking for mips-rlx5281-linux-strip
configure:2488: result: rsdk-linux-strip
configure:2553: checking for a thread-safe mkdir -p
configure:2592: result: /bin/mkdir -p
configure:2605: checking for gawk
configure:2621: found /usr/bin/gawk
configure:2632: result: gawk
configure:2643: checking whether make sets $(MAKE)
configure:2665: result: yes
configure:2746: checking whether make sets $(MAKE)
configure:2768: result: yes
configure:2816: checking for style of include used by make
configure:2844: result: GNU
configure:2875: checking for mips-rlx5281-linux-gcc
configure:2902: result: rsdk-linux-gcc
configure:3171: checking for C compiler version
configure:3180: rsdk-linux-gcc --version >&5
/home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin/mips-linux-xgcc: No such file or directory
configure:3191: $? = 0
configure:3180: rsdk-linux-gcc -v >&5
/home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin/mips-linux-xgcc: No such file or directory
configure:3191: $? = 0
configure:3180: rsdk-linux-gcc -V >&5
/home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin/mips-linux-xgcc: No such file or directory
configure:3191: $? = 0
configure:3180: rsdk-linux-gcc -qversion >&5
/home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin/mips-linux-xgcc: No such file or directory
configure:3191: $? = 0
configure:3211: checking whether the C compiler works
configure:3233: rsdk-linux-gcc -Os -pipe -march=5281 -fno-caller-saves -fpic -I/home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/target-mips-rlx5281-linux/usr/inclu$
FATAL: -march mismatch. RSDK is configured for -march=4181 only
configure:3237: $? = 1
configure:3275: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "json-c"
| #define PACKAGE_TARNAME "json-c"
| #define PACKAGE_VERSION "0.11"
| #define PACKAGE_STRING "json-c 0.11"
| #define PACKAGE_BUGREPORT "json-c@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "json-c"
| #define VERSION "0.11"
| /* end confdefs.h. */
....
Файл как бы на месте:
andrey@ubuntu:~/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin$ ls
catimg mips-linux-c++filt mips-linux-ld.bfd mips-linux-strip rlxisa-mars.bin rsdk-linux-c++filt rsdk-linux-ld rsdk-linux-run
img2bin mips-linux-cpp mips-linux-nm mips-linux-uclibc-gcc-4.6.4 rlxisa-mercury.bin rsdk-linux-config rsdk-linux-ld.bfd rsdk-linux-size
imgpad mips-linux-elfedit mips-linux-objcopy mips-linux-xc++ rlxisa-nike.bin rsdk-linux-cpp rsdk-linux-lstrip rsdk-linux-sstrip
lxobjHex mips-linux-g++ mips-linux-objdump mips-linux-xg++ rlxisa-rlx.bin rsdk-linux-elfedit rsdk-linux-nm rsdk-linux-strings
lxobjHex-cygnus mips-linux-gcc mips-linux-opcutil mips-linux-xgcc rlxisa-saturn.bin rsdk-linux-g++ rsdk-linux-objcopy rsdk-linux-strip
lxobjHexElf mips-linux-gcov mips-linux-ranlib mips-linux-xld rlxisa-venus.bin rsdk-linux-gcc rsdk-linux-objdump rsdk-linux-uclibc-gcc-4.6.4
mips-linux-addr2line mips-linux-gdb mips-linux-readelf rlxisa.bin rsdk-linux-addr2line rsdk-linux-gcov rsdk-linux-opcutil rsdk-linux-wrapper
mips-linux-ar mips-linux-genopc mips-linux-run rlxisa-darwin.bin rsdk-linux-ar rsdk-linux-gdb rsdk-linux-ranlib
mips-linux-as mips-linux-gprof mips-linux-size rlxisa-jupiter.bin rsdk-linux-as rsdk-linux-genopc rsdk-linux-readelf
mips-linux-c++ mips-linux-ld mips-linux-strings rlxisa-magellan.bin rsdk-linux-c++ rsdk-linux-gprof rsdk-linux-relink
andrey@ubuntu:~/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin$ mips-linux-xgcc
-bash: /home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin/mips-linux-xgcc: No such file or directory
andrey@ubuntu:~/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin$ mips-linux-gcc
/home/andrey/rtk_openwrtSDK_v2.5_20160905/rtk_openwrt_sdk/staging_dir/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin/mips-linux-xgcc: No such file or directory
Ошибка, как я понимаю, общего плана. И, может, я какую-то глупость делаю?