[PATCH] scripts/ext-toolchain.sh: modify ar/ranlib scripts

yeholmes at outlook.com yeholmes at outlook.com
Fri Jan 1 11:05:09 EST 2021


From: Ye Holmes <yeholmes at outlook.com>

The external toolchain scripts generated for ar/gcc-ar/ranlib/gcc-ranlib
do not work well for latest prebuilt GNU toolchain downloaded from ARM:
1. aarch64-none-linux-gnu-ar and aarch64-none-linux-gnu-ranlib cannot
generate correct static libraries for a number of packages with Link-
Time-Optimizations enabled, such as package/system/ubus; instead *gcc-ar
and *gcc-ranlib should be employed unconditionally.
2. scripts for gcc-ar/gcc-ranlib utilities have too many unneccessary
arguments which essentially cause the static library creation to fail.

Signed-off-by: Ye Holmes <yeholmes at outlook.com>

---
=============================================
Problem 1:
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ar: CMakeFiles/ubusd_library.dir/ubusd.c.o: plugin needed to handle lto object
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ranlib: libubusd_library.a(ubusd.c.o): plugin needed to handle lto object
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 62%] Built target ubusd_library
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
Scanning dependencies of target ubusd
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 66%] Building C object CMakeFiles/ubusd.dir/ubusd_main.c.o
[ 70%] Linking C executable ubusd
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o: in function `ubus_msg_dequeue':
/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:32: undefined reference to `ubus_msg_free'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:32: undefined reference to `ubus_msg_free'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o: in function `client_cb':
/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:79: undefined reference to `ubus_msg_writev'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:79: undefined reference to `ubus_msg_writev'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:135: undefined reference to `ubus_msg_new'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:135: undefined reference to `ubus_msg_new'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:43: undefined reference to `ubusd_monitor_disconnect'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o:/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:43: undefined reference to `ubusd_monitor_disconnect'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o:/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:44: undefined reference to `ubusd_proto_free_client'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o:/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:44: undefined reference to `ubusd_proto_free_client'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o: in function `client_cb':
/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:168: undefined reference to `ubusd_monitor_message'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:168: undefined reference to `ubusd_monitor_message'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:169: undefined reference to `ubusd_proto_receive_message'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:169: undefined reference to `ubusd_proto_receive_message'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o: in function `server_cb':
/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:197: undefined reference to `ubusd_proto_new_client'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o:/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:197: undefined reference to `ubusd_proto_new_client'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o: in function `sighup_handler':
/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:231: undefined reference to `ubusd_acl_load'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:231: undefined reference to `ubusd_acl_load'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/tmp/ubusd.lX2qbV.ltrans0.ltrans.o: in function `main':
/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:265: undefined reference to `ubusd_acl_dir'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:265: undefined reference to `ubusd_acl_dir'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:282: undefined reference to `ubusd_acl_load'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ubusd_main.c:282: undefined reference to `ubusd_acl_load'
collect2: error: ld returned 1 exit status
make[5]: *** [CMakeFiles/ubusd.dir/build.make:107: ubusd] Error 1
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[4]: *** [CMakeFiles/Makefile2:171: CMakeFiles/ubusd.dir/all] Error 2
make[4]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[3]: *** [Makefile:149: all] Error 2
make[3]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[2]: *** [Makefile:81: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.built] Error 2
make[2]: Leaving directory '/home/yejq/program/openwrt/package/system/ubus'
time: package/system/ubus/compile#2.63#0.58#3.89
    ERROR: package/system/ubus failed to build.
make[1]: *** [package/Makefile:114: package/system/ubus/compile] Error 1
make[1]: Leaving directory '/home/yejq/program/openwrt'
make: *** [/home/yejq/program/openwrt/include/toplevel.mk:242: package/system/ubus/compile] Error 2
yejq at UNIX:~/program/openwrt$ cat ./staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ar
exec "/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ar" "$@"
yejq at UNIX:~/program/openwrt$ cat ./staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ranlib
exec "/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ranlib" "$@"
yejq at UNIX:~/program/openwrt$ vim ./staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ar
yejq at UNIX:~/program/openwrt$ vim ./staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ranlib
yejq at UNIX:~/program/openwrt$ cat ./staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ar
exec "/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc-ar" "$@"
yejq at UNIX:~/program/openwrt$ cat ./staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ranlib
exec "/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc-ranlib" "$@"
yejq at UNIX:~/program/openwrt$ make V=s -j1 package/system/ubus/clean
make[1]: Entering directory '/home/yejq/program/openwrt'
make[2]: Entering directory '/home/yejq/program/openwrt/package/system/ubus'
rm -rf /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9
rm -f /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/stamp/.ubus_installed
rm -f /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/packages/ubus.list
make[2]: Leaving directory '/home/yejq/program/openwrt/package/system/ubus'
time: package/system/ubus/clean#0.12#0.03#0.17
make[1]: Leaving directory '/home/yejq/program/openwrt'
yejq at UNIX:~/program/openwrt$ make V=s -j1 package/system/ubus/compile
Collecting package info: done
make[1]: Entering directory '/home/yejq/program/openwrt'
make[2]: Entering directory '/home/yejq/program/openwrt/package/libs/toolchain'
echo "libc" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/toolchain.default.install
echo "libgcc" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/toolchain.default.install
echo "libstdcpp" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/toolchain.default.install
echo "libpthread" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/toolchain.default.install
echo "librt" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/yejq/program/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.16#0.02#0.19
make[2]: Entering directory '/home/yejq/program/openwrt/package/libs/libjson-c'
mkdir -p /home/yejq/program/openwrt/dl
SHELL= flock /home/yejq/program/openwrt/tmp/.json-c-0.15-nodoc.tar.gz.flock -c '  	/home/yejq/program/openwrt/scripts/download.pl "/home/yejq/program/openwrt/dl" "json-c-0.15-nodoc.tar.gz" "99bca4f944b8ced8ae0bbc6310d6a3528ca715e69541793a1ef51f8c5b4b0878" "" "https://s3.amazonaws.com/json-c_releases/releases/"    '
echo "libjson-c" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/libjson-c.default.install
make[2]: Leaving directory '/home/yejq/program/openwrt/package/libs/libjson-c'
time: package/libs/libjson-c/compile#0.21#0.04#0.26
make[2]: Entering directory '/home/yejq/program/openwrt/package/utils/lua'
mkdir -p /home/yejq/program/openwrt/dl
SHELL= flock /home/yejq/program/openwrt/tmp/.lua-5.1.5.tar.gz.flock -c '  	/home/yejq/program/openwrt/scripts/download.pl "/home/yejq/program/openwrt/dl" "lua-5.1.5.tar.gz" "2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333" "" "http://www.lua.org/ftp/" "http://www.tecgraf.puc-rio.br/lua/ftp/"    '
make[2]: Leaving directory '/home/yejq/program/openwrt/package/utils/lua'
time: package/utils/lua/compile#0.24#0.05#0.30
make[2]: Entering directory '/home/yejq/program/openwrt/package/libs/libubox'
mkdir -p /home/yejq/program/openwrt/dl
SHELL= flock /home/yejq/program/openwrt/tmp/.libubox-2020-12-12-35787769.tar.xz.flock -c '  	/home/yejq/program/openwrt/scripts/download.pl "/home/yejq/program/openwrt/dl" "libubox-2020-12-12-35787769.tar.xz" "97dc4eba01cf2c5d6a6d0db3747e0cdc0d95cb87e51b3115272e7d3e69a8b255" "" || (  	echo "Checking out files from the git repository..."; mkdir -p /home/yejq/program/openwrt/tmp/dl && cd /home/yejq/program/openwrt/tmp/dl && rm -rf libubox-2020-12-12-35787769 && [ \! -d libubox-2020-12-12-35787769 ] && git clone  https://git.openwrt.org/project/libubox.git libubox-2020-12-12-35787769 && (cd libubox-2020-12-12-35787769 && git checkout 357877693ca363b12e6e7e14d345639b2440cd07 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd libubox-2020-12-12-35787769 && git log -1 --format='\''@%ct'\''` && rm -rf libubox-2020-12-12-35787769/.git && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c libubox-2020-12-12-35787769 | 	xz -zc -7e > /home/yejq/program/openwrt/tmp/dl/libubox-2020-12-12-35787769.tar.xz && mv /home/yejq/program/openwrt/tmp/dl/libubox-2020-12-12-35787769.tar.xz /home/yejq/program/openwrt/dl/ && rm -rf libubox-2020-12-12-35787769;  )    '
echo "libubox" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/libubox.default.install
echo "libblobmsg-json" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/libubox.default.install
echo "jshn" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/libubox.default.install
echo "libjson-script" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/libubox.default.install
make[2]: Leaving directory '/home/yejq/program/openwrt/package/libs/libubox'
time: package/libs/libubox/compile#0.21#0.04#0.27
make[2]: Entering directory '/home/yejq/program/openwrt/package/system/ubus'
mkdir -p /home/yejq/program/openwrt/dl
SHELL= flock /home/yejq/program/openwrt/tmp/.ubus-2020-12-04-d1d9ddf9.tar.xz.flock -c '  	/home/yejq/program/openwrt/scripts/download.pl "/home/yejq/program/openwrt/dl" "ubus-2020-12-04-d1d9ddf9.tar.xz" "6fbdda5144cfef14d314d421ce801e9c89a2266428346f531a57c28e731a059c" "" || (  	echo "Checking out files from the git repository..."; mkdir -p /home/yejq/program/openwrt/tmp/dl && cd /home/yejq/program/openwrt/tmp/dl && rm -rf ubus-2020-12-04-d1d9ddf9 && [ \! -d ubus-2020-12-04-d1d9ddf9 ] && git clone  https://git.openwrt.org/project/ubus.git ubus-2020-12-04-d1d9ddf9 && (cd ubus-2020-12-04-d1d9ddf9 && git checkout d1d9ddf98d39b0bdc055060fb962335439445690 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd ubus-2020-12-04-d1d9ddf9 && git log -1 --format='\''@%ct'\''` && rm -rf ubus-2020-12-04-d1d9ddf9/.git && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c ubus-2020-12-04-d1d9ddf9 | 	xz -zc -7e > /home/yejq/program/openwrt/tmp/dl/ubus-2020-12-04-d1d9ddf9.tar.xz && mv /home/yejq/program/openwrt/tmp/dl/ubus-2020-12-04-d1d9ddf9.tar.xz /home/yejq/program/openwrt/dl/ && rm -rf ubus-2020-12-04-d1d9ddf9;  )    '
touch /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.prepared_23e78863abdbe6a0ca1adb3e2a33747d_6664517399ebbbc92a37c5bb081b5c53_check
. /home/yejq/program/openwrt/include/shell.sh; xzcat /home/yejq/program/openwrt/dl/ubus-2020-12-04-d1d9ddf9.tar.xz | tar -C /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9
touch /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.prepared_23e78863abdbe6a0ca1adb3e2a33747d_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.configured_*
rm -f /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/stamp/.ubus_installed
mkdir -p /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9
(cd /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9; CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt  -Wformat -Werror=format-security -fPIC -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/usr/include -flto " CXXFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt  -Wformat -Werror=format-security -fPIC -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/usr/include -flto " LDFLAGS="-L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/lib -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/lib -fPIC -specs=/home/yejq/program/openwrt/include/hardened-ld-pie.specs -znow -zrelro -flto " cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_C_COMPILER_LAUNCHER="" -DCMAKE_C_COMPILER="/home/yejq/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc" -DCMAKE_CXX_COMPILER_LAUNCHER="" -DCMAKE_CXX_COMPILER="/home/yejq/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-g++" -DCMAKE_ASM_COMPILER_LAUNCHER="" -DCMAKE_ASM_COMPILER="/home/yejq/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc" -DCMAKE_EXE_LINKER_FLAGS:STRING="-L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/lib -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/lib -fPIC -specs=/home/yejq/program/openwrt/include/hardened-ld-pie.specs -znow -zrelro -flto" -DCMAKE_MODULE_LINKER_FLAGS:STRING="-L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/lib -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/lib -fPIC -specs=/home/yejq/program/openwrt/include/hardened-ld-pie.specs -znow -zrelro -flto -Wl,-Bsymbolic-functions" -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/lib -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/lib -fPIC -specs=/home/yejq/program/openwrt/include/hardened-ld-pie.specs -znow -zrelro -flto -Wl,-Bsymbolic-functions" -DCMAKE_AR="/home/yejq/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ar" -DCMAKE_NM="/home/yejq/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-nm" -DCMAKE_RANLIB="/home/yejq/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ranlib" -DCMAKE_FIND_ROOT_PATH="/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/usr;/home/yejq/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu;"/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu"" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_STRIP=: -DCMAKE_INSTALL_PREFIX=/usr -DDL_LIBRARY=/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc -DCMAKE_PREFIX_PATH=/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc -DCMAKE_SKIP_RPATH=TRUE -DCMAKE_EXPORT_PACKAGE_REGISTRY=FALSE -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE -DCMAKE_FIND_USE_PACKAGE_REGISTRY=FALSE -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=TRUE -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=FALSE -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=TRUE -DLUAPATH=/usr/lib/lua /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9 )
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/yejq/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Deprecation Warning at lua/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at examples/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_ASM_COMPILER
    CMAKE_ASM_COMPILER_LAUNCHER
    CMAKE_CXX_COMPILER
    CMAKE_CXX_FLAGS_RELEASE
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_EXPORT_PACKAGE_REGISTRY
    CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
    CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY
    CMAKE_FIND_USE_PACKAGE_REGISTRY
    CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY
    DL_LIBRARY

-- Build files have been written to: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9
touch /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.built
touch /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.built_check
CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt  -Wformat -Werror=format-security -fPIC -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/usr/include -flto  -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/include -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/include " CXXFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt  -Wformat -Werror=format-security -fPIC -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/usr/include -flto  -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/include -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/include " LDFLAGS="-L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/lib -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/lib -fPIC -specs=/home/yejq/program/openwrt/include/hardened-ld-pie.specs -znow -zrelro -flto " make -j1 -C /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/. AR="aarch64-none-linux-gnu-ar" AS="aarch64-none-linux-gnu-gcc -c -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt  -Wformat -Werror=format-security -fPIC -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/usr/include -flto" LD=aarch64-none-linux-gnu-ld NM="aarch64-none-linux-gnu-nm" CC="aarch64-none-linux-gnu-gcc" GCC="aarch64-none-linux-gnu-gcc" CXX="aarch64-none-linux-gnu-g++" RANLIB="aarch64-none-linux-gnu-ranlib" STRIP=aarch64-none-linux-gnu-strip OBJCOPY=aarch64-none-linux-gnu-objcopy OBJDUMP=aarch64-none-linux-gnu-objdump SIZE=aarch64-none-linux-gnu-size CROSS="aarch64-none-linux-gnu-" ARCH="aarch64" CMAKE_COMMAND='/home/yejq/program/openwrt/staging_dir/host/bin/cmake' CMAKE_DISABLE_cmake_check_build_system=1 ;
make[3]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[4]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
Scanning dependencies of target ubus
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[  3%] Building C object CMakeFiles/ubus.dir/libubus.c.o
[  7%] Building C object CMakeFiles/ubus.dir/libubus-io.c.o
[ 11%] Building C object CMakeFiles/ubus.dir/libubus-obj.c.o
[ 14%] Building C object CMakeFiles/ubus.dir/libubus-sub.c.o
[ 18%] Building C object CMakeFiles/ubus.dir/libubus-req.c.o
[ 22%] Building C object CMakeFiles/ubus.dir/libubus-acl.c.o
[ 25%] Linking C shared library libubus.so
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 25%] Built target ubus
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
Scanning dependencies of target cli
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 29%] Building C object CMakeFiles/cli.dir/cli.c.o
[ 33%] Linking C executable ubus
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 33%] Built target cli
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
Scanning dependencies of target ubusd_library
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 37%] Building C object CMakeFiles/ubusd_library.dir/ubusd.c.o
[ 40%] Building C object CMakeFiles/ubusd_library.dir/ubusd_proto.c.o
[ 44%] Building C object CMakeFiles/ubusd_library.dir/ubusd_id.c.o
[ 48%] Building C object CMakeFiles/ubusd_library.dir/ubusd_obj.c.o
[ 51%] Building C object CMakeFiles/ubusd_library.dir/ubusd_event.c.o
[ 55%] Building C object CMakeFiles/ubusd_library.dir/ubusd_acl.c.o
[ 59%] Building C object CMakeFiles/ubusd_library.dir/ubusd_monitor.c.o
[ 62%] Linking C static library libubusd_library.a
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 62%] Built target ubusd_library
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
Scanning dependencies of target ubusd
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 66%] Building C object CMakeFiles/ubusd.dir/ubusd_main.c.o
[ 70%] Linking C executable ubusd
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 70%] Built target ubusd
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
Scanning dependencies of target ubus_lua
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 74%] Building C object lua/CMakeFiles/ubus_lua.dir/ubus.c.o
[ 77%] Linking C shared module ubus.so
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 77%] Built target ubus_lua
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
Scanning dependencies of target client
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 81%] Building C object examples/CMakeFiles/client.dir/client.c.o
[ 85%] Building C object examples/CMakeFiles/client.dir/count.c.o
[ 88%] Linking C executable client
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 88%] Built target client
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
Scanning dependencies of target server
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 92%] Building C object examples/CMakeFiles/server.dir/server.c.o
[ 96%] Building C object examples/CMakeFiles/server.dir/count.c.o
[100%] Linking C executable server
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[100%] Built target server
make[4]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[3]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt  -Wformat -Werror=format-security -fPIC -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/usr/include -flto  -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/include -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/include " CXXFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt  -Wformat -Werror=format-security -fPIC -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/usr/include -flto  -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/include -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/include " LDFLAGS="-L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/lib -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/lib -fPIC -specs=/home/yejq/program/openwrt/include/hardened-ld-pie.specs -znow -zrelro -flto " make -C /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/. AR="aarch64-none-linux-gnu-ar" AS="aarch64-none-linux-gnu-gcc -c -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt  -Wformat -Werror=format-security -fPIC -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/usr/include -flto" LD=aarch64-none-linux-gnu-ld NM="aarch64-none-linux-gnu-nm" CC="aarch64-none-linux-gnu-gcc" GCC="aarch64-none-linux-gnu-gcc" CXX="aarch64-none-linux-gnu-g++" RANLIB="aarch64-none-linux-gnu-ranlib" STRIP=aarch64-none-linux-gnu-strip OBJCOPY=aarch64-none-linux-gnu-objcopy OBJDUMP=aarch64-none-linux-gnu-objdump SIZE=aarch64-none-linux-gnu-size CROSS="aarch64-none-linux-gnu-" ARCH="aarch64" CMAKE_COMMAND='/home/yejq/program/openwrt/staging_dir/host/bin/cmake' CMAKE_DISABLE_cmake_check_build_system=1 DESTDIR="/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install"  install;
make[3]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[4]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 25%] Built target ubus
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 33%] Built target cli
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 62%] Built target ubusd_library
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 70%] Built target ubusd
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 77%] Built target ubus_lua
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[ 88%] Built target client
make[5]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
make[5]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
[100%] Built target server
make[4]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
Install the project...
-- Install configuration: "Release"
-- Installing: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/lib/libubus.so
-- Installing: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/bin/ubus
-- Installing: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/sbin/ubusd
-- Installing: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/include/ubusmsg.h
-- Installing: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/include/ubus_common.h
-- Installing: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/include/libubus.h
-- Installing: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/lib/lua/ubus.so
make[3]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9'
touch /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.built
rm -rf /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/libubus.installed /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/libubus
mkdir -p /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/libubus
install -d -m0755 /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/libubus/lib
cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/lib/*.so /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/libubus/lib/
touch /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/libubus.installed
mkdir -p /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/root-bcm27xx/stamp
echo '20191227' | cmp -s - /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/libubus.version || echo '20191227' > /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/libubus.version
SHELL= flock /home/yejq/program/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/libubus/. /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/root-bcm27xx/'
touch /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/root-bcm27xx/stamp/.libubus_installed
mkdir -p /home/yejq/program/openwrt/bin/targets/bcm27xx/bcm2710/packages /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/libubus/CONTROL /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo
install -d -m0755 /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/libubus/lib
cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/lib/*.so /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/libubus/lib/
find /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/libubus -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="aarch64-none-linux-gnu-"  NO_RENAME=1 ; NM="aarch64-none-linux-gnu-nm" STRIP="aarch64-none-linux-gnu-strip --strip-all" STRIP_KMOD="/home/yejq/program/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/yejq/program/openwrt/staging_dir/host/bin/patchelf" /home/yejq/program/openwrt/scripts/rstrip.sh /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/libubus
rstrip.sh: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/libubus/lib/libubus.so: shared object
(cd /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/libubus/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/yejq/program/openwrt/bin/packages/aarch64_cortex-a53/base
/home/yejq/program/openwrt/staging_dir/host/bin/fakeroot /home/yejq/program/openwrt/scripts/ipkg-build -m "" /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/libubus /home/yejq/program/openwrt/bin/packages/aarch64_cortex-a53/base
Packaged contents of /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/libubus into /home/yejq/program/openwrt/bin/packages/aarch64_cortex-a53/base/libubus20191227_2020-12-04-d1d9ddf9-1_aarch64_cortex-a53.ipk
mkdir -p /home/yejq/program/openwrt/bin/targets/bcm27xx/bcm2710/packages /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubusd/CONTROL /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo
install -d -m0755 /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubusd/sbin
cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/sbin/ubusd /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubusd/sbin/
find /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubusd -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="aarch64-none-linux-gnu-"  NO_RENAME=1 ; NM="aarch64-none-linux-gnu-nm" STRIP="aarch64-none-linux-gnu-strip --strip-all" STRIP_KMOD="/home/yejq/program/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/yejq/program/openwrt/staging_dir/host/bin/patchelf" /home/yejq/program/openwrt/scripts/rstrip.sh /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubusd
rstrip.sh: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubusd/sbin/ubusd: shared object
(cd /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubusd/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/yejq/program/openwrt/bin/packages/aarch64_cortex-a53/base
/home/yejq/program/openwrt/staging_dir/host/bin/fakeroot /home/yejq/program/openwrt/scripts/ipkg-build -m "" /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubusd /home/yejq/program/openwrt/bin/packages/aarch64_cortex-a53/base
Packaged contents of /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubusd into /home/yejq/program/openwrt/bin/packages/aarch64_cortex-a53/base/ubusd_2020-12-04-d1d9ddf9-1_aarch64_cortex-a53.ipk
mkdir -p /home/yejq/program/openwrt/bin/targets/bcm27xx/bcm2710/packages /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubus/CONTROL /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo
install -d -m0755 /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubus/bin
cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/bin/ubus /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubus/bin/
find /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubus -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="aarch64-none-linux-gnu-"  NO_RENAME=1 ; NM="aarch64-none-linux-gnu-nm" STRIP="aarch64-none-linux-gnu-strip --strip-all" STRIP_KMOD="/home/yejq/program/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/yejq/program/openwrt/staging_dir/host/bin/patchelf" /home/yejq/program/openwrt/scripts/rstrip.sh /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubus
rstrip.sh: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubus/bin/ubus: shared object
(cd /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubus/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/yejq/program/openwrt/bin/packages/aarch64_cortex-a53/base
/home/yejq/program/openwrt/staging_dir/host/bin/fakeroot /home/yejq/program/openwrt/scripts/ipkg-build -m "" /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubus /home/yejq/program/openwrt/bin/packages/aarch64_cortex-a53/base
Packaged contents of /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-aarch64_cortex-a53/ubus into /home/yejq/program/openwrt/bin/packages/aarch64_cortex-a53/base/ubus_2020-12-04-d1d9ddf9-1_aarch64_cortex-a53.ipk
echo "libubus" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/ubus.default.install
rm -rf /home/yejq/program/openwrt/tmp/stage-ubus
mkdir -p /home/yejq/program/openwrt/tmp/stage-ubus/host /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/packages
install -d -m0755 /home/yejq/program/openwrt/tmp/stage-ubus
cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/* /home/yejq/program/openwrt/tmp/stage-ubus/
find /home/yejq/program/openwrt/tmp/stage-ubus -name '*.la' | xargs -r rm -f;
if [ -f /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/packages/ubus.list ]; then /home/yejq/program/openwrt/scripts/clean-package.sh "/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/packages/ubus.list" "/home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc"; fi
if [ -d /home/yejq/program/openwrt/tmp/stage-ubus ]; then (cd /home/yejq/program/openwrt/tmp/stage-ubus; find ./ > /home/yejq/program/openwrt/tmp/stage-ubus.files); 	SHELL= flock /home/yejq/program/openwrt/tmp/.staging-dir.flock -c ' mv /home/yejq/program/openwrt/tmp/stage-ubus.files /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/packages/ubus.list && cp -fpR /home/yejq/program/openwrt/tmp/stage-ubus/* /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/; '; fi
rm -rf /home/yejq/program/openwrt/tmp/stage-ubus
touch /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/stamp/.ubus_installed
rm -rf /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubus.installed /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubus
mkdir -p /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubus
install -d -m0755 /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubus/bin
cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/bin/ubus /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubus/bin/
touch /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubus.installed
rm -rf /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubusd.installed /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubusd
mkdir -p /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubusd
install -d -m0755 /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubusd/sbin
cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/ipkg-install/usr/sbin/ubusd /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubusd/sbin/
touch /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubusd.installed
mkdir -p /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/root-bcm27xx/stamp
SHELL= flock /home/yejq/program/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubus/. /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/root-bcm27xx/'
touch /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/root-bcm27xx/stamp/.ubus_installed
echo "ubus" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/ubus.default.install
mkdir -p /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/root-bcm27xx/stamp
SHELL= flock /home/yejq/program/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/ubus-2020-12-04-d1d9ddf9/.pkgdir/ubusd/. /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/root-bcm27xx/'
touch /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/root-bcm27xx/stamp/.ubusd_installed
echo "ubusd" >> /home/yejq/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc/pkginfo/ubus.default.install
make[2]: Leaving directory '/home/yejq/program/openwrt/package/system/ubus'
time: package/system/ubus/compile#4.30#1.01#5.83
make[1]: Leaving directory '/home/yejq/program/openwrt'

=============================================
Problem 2:
make[3]: Entering directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd'
  CC  hostapd_cli.c
  CC  ../src/common/wpa_ctrl.c
  CC  ../src/utils/os_unix.c
  CC  ../src/common/cli.c
  CC  ../src/utils/eloop.c
  CC  ../src/utils/common.c
  CC  ../src/utils/wpa_debug.c
  CC  ../src/utils/edit_simple.c
  LD  hostapd_cli
  CC  main.c
  CC  config_file.c
  CC  ../src/ap/hostapd.c
  CC  ../src/ap/wpa_auth_glue.c
  CC  ../src/ap/drv_callbacks.c
  CC  ../src/ap/ap_drv_ops.c
  CC  ../src/ap/utils.c
  CC  ../src/ap/authsrv.c
  CC  ../src/ap/ieee802_1x.c
  CC  ../src/ap/ap_config.c
  CC  ../src/ap/eap_user_db.c
  CC  ../src/ap/ieee802_11_auth.c
  CC  ../src/ap/sta_info.c
  CC  ../src/ap/wpa_auth.c
  CC  ../src/ap/tkip_countermeasures.c
  CC  ../src/ap/ap_mlme.c
  CC  ../src/ap/wpa_auth_ie.c
  CC  ../src/ap/preauth_auth.c
  CC  ../src/ap/pmksa_cache_auth.c
  CC  ../src/ap/ieee802_11_shared.c
  CC  ../src/ap/beacon.c
  CC  ../src/ap/bss_load.c
  CC  ../src/ap/neighbor_db.c
  CC  ../src/ap/rrm.c
  CC  ../src/drivers/drivers.c
  CC  ../src/utils/wpabuf.c
  CC  ../src/utils/ip_addr.c
  CC  ../src/utils/crc32.c
  CC  ../src/common/ieee802_11_common.c
  CC  ../src/common/wpa_common.c
  CC  ../src/common/hw_features_common.c
  CC  ../src/eapol_auth/eapol_auth_sm.c
  CC  ../src/ap/ubus.c
  CC  ../src/ap/vlan_init.c
  CC  ../src/ap/vlan_ifconfig.c
  CC  ../src/ap/vlan.c
  CC  ../src/common/ctrl_iface_common.c
  CC  ctrl_iface.c
  CC  ../src/ap/ctrl_iface_ap.c
  CC  ../src/ap/wpa_auth_ft.c
  CC  ../src/ap/eth_p_oui.c
  CC  ../src/common/sae.c
  CC  ../src/drivers/driver_nl80211.c
  CC  ../src/drivers/driver_nl80211_capa.c
  CC  ../src/drivers/driver_nl80211_event.c
  CC  ../src/drivers/driver_nl80211_monitor.c
  CC  ../src/drivers/driver_nl80211_scan.c
  CC  ../src/drivers/driver_wired.c
  CC  ../src/drivers/driver_wired_common.c
  CC  ../src/drivers/linux_ioctl.c
  CC  ../src/drivers/netlink.c
  CC  ../src/utils/radiotap.c
  CC  ../src/l2_packet/l2_packet_linux.c
  CC  eap_register.c
  CC  ../src/eap_server/eap_server.c
  CC  ../src/eap_common/eap_common.c
  CC  ../src/eap_server/eap_server_methods.c
  CC  ../src/eap_server/eap_server_identity.c
  CC  ../src/common/dragonfly.c
  CC  ../src/crypto/crypto_wolfssl.c
  CC  ../src/crypto/tls_none.c
  CC  ../src/crypto/aes-siv.c
  CC  ../src/crypto/aes-ctr.c
  CC  ../src/crypto/sha1-prf.c
  CC  ../src/crypto/sha256-prf.c
  CC  ../src/crypto/sha256-tlsprf.c
  CC  ../src/crypto/sha256-kdf.c
  CC  ../src/crypto/sha384-kdf.c
  CC  ../src/crypto/sha512-kdf.c
  CC  ../src/crypto/sha384-prf.c
  CC  ../src/crypto/sha512-prf.c
  CC  ../src/crypto/dh_groups.c
  CC  ../src/ap/wmm.c
  CC  ../src/ap/ap_list.c
  CC  ../src/ap/ieee802_11.c
  CC  ../src/ap/hw_features.c
  CC  ../src/ap/dfs.c
  CC  ../src/ap/ieee802_11_ht.c
  CC  ../src/ap/ieee802_11_vht.c
  CC  ../src/drivers/driver_common.c
  CC  ../src/ap/acs.c
  CC  main.o
aarch64-none-linux-gnu-gcc-ar cr hostapd_multi.a hostapd_multi.o main.o config_file.o ../src/ap/hostapd.o ../src/ap/wpa_auth_glue.o ../src/ap/drv_callbacks.o ../src/ap/ap_drv_ops.o ../src/ap/utils.o ../src/ap/authsrv.o ../src/ap/ieee802_1x.o ../src/ap/ap_config.o ../src/ap/eap_user_db.o ../src/ap/ieee802_11_auth.o ../src/ap/sta_info.o ../src/ap/wpa_auth.o ../src/ap/tkip_countermeasures.o ../src/ap/ap_mlme.o ../src/ap/wpa_auth_ie.o ../src/ap/preauth_auth.o ../src/ap/pmksa_cache_auth.o ../src/ap/ieee802_11_shared.o ../src/ap/beacon.o ../src/ap/bss_load.o ../src/ap/neighbor_db.o ../src/ap/rrm.o ../src/drivers/drivers.o ../src/utils/eloop.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o ../src/utils/os_unix.o ../src/utils/ip_addr.o ../src/utils/crc32.o ../src/common/ieee802_11_common.o ../src/common/wpa_common.o ../src/common/hw_features_common.o ../src/eapol_auth/eapol_auth_sm.o ../src/ap/ubus.o ../src/ap/vlan_init.o ../src/ap/vlan_ifconfig.o ../src/ap/vlan.o ../src/common/ctrl_iface_common.o ctrl_iface.o ../src/ap/ctrl_iface_ap.o ../src/ap/wpa_auth_ft.o ../src/ap/eth_p_oui.o ../src/common/sae.o ../src/drivers/driver_nl80211.o ../src/drivers/driver_nl80211_capa.o ../src/drivers/driver_nl80211_event.o ../src/drivers/driver_nl80211_monitor.o ../src/drivers/driver_nl80211_scan.o ../src/drivers/driver_wired.o ../src/drivers/driver_wired_common.o ../src/drivers/linux_ioctl.o ../src/drivers/netlink.o ../src/utils/radiotap.o ../src/l2_packet/l2_packet_linux.o eap_register.o ../src/eap_server/eap_server.o ../src/eap_common/eap_common.o ../src/eap_server/eap_server_methods.o ../src/eap_server/eap_server_identity.o ../src/common/dragonfly.o ../src/crypto/crypto_wolfssl.o ../src/crypto/tls_none.o  ../src/crypto/aes-siv.o ../src/crypto/aes-ctr.o ../src/crypto/sha1-prf.o ../src/crypto/sha256-prf.o ../src/crypto/sha256-tlsprf.o ../src/crypto/sha256-kdf.o ../src/crypto/sha384-kdf.o ../src/crypto/sha512-kdf.o ../src/crypto/sha384-prf.o ../src/crypto/sha512-prf.o ../src/crypto/dh_groups.o ../src/ap/wmm.o ../src/ap/ap_list.o ../src/ap/ieee802_11.o ../src/ap/hw_features.o ../src/ap/dfs.o ../src/ap/ieee802_11_ht.o ../src/ap/ieee802_11_vht.o ../src/drivers/driver_common.o ../src/ap/acs.o && echo 'hostapd_multi.a created successfully.'
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ar: two different operation options specified
make[3]: *** [Makefile:1332: hostapd_multi.a] Error 1
make[3]: Leaving directory '/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd'
make[2]: *** [Makefile:681: /home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/.built] Error 2
make[2]: Leaving directory '/home/yejq/program/openwrt/package/network/services/hostapd'
time: package/network/services/hostapd/wpad-basic-wolfssl/compile#9.49#1.99#11.54
    ERROR: package/network/services/hostapd failed to build (build variant: wpad-basic-wolfssl).
make[1]: *** [package/Makefile:114: package/network/services/hostapd/compile] Error 1
make[1]: Leaving directory '/home/yejq/program/openwrt'
make: *** [/home/yejq/program/openwrt/include/toplevel.mk:242: package/network/services/hostapd/compile] Error 2
yejq at UNIX:~/program/openwrt$ cd ./staging_dir/toolchain-aarch64-none-linux-gnu/bin/
yejq at UNIX:~/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin$ ls
aarch64-none-linux-gnu-addr2line  aarch64-none-linux-gnu-elfedit     aarch64-none-linux-gnu-gcov           aarch64-none-linux-gnu-ld        aarch64-none-linux-gnu-ranlib
aarch64-none-linux-gnu-ar         aarch64-none-linux-gnu-g++         aarch64-none-linux-gnu-gcov-dump      aarch64-none-linux-gnu-ld.bfd    aarch64-none-linux-gnu-readelf
aarch64-none-linux-gnu-as         aarch64-none-linux-gnu-gcc         aarch64-none-linux-gnu-gcov-tool      aarch64-none-linux-gnu-ld.gold   aarch64-none-linux-gnu-size
aarch64-none-linux-gnu-c++        aarch64-none-linux-gnu-gcc-10.2.1  aarch64-none-linux-gnu-gdb            aarch64-none-linux-gnu-lto-dump  aarch64-none-linux-gnu-strings
aarch64-none-linux-gnu-c++filt    aarch64-none-linux-gnu-gcc-ar      aarch64-none-linux-gnu-gdb-add-index  aarch64-none-linux-gnu-nm        aarch64-none-linux-gnu-strip
aarch64-none-linux-gnu-cpp        aarch64-none-linux-gnu-gcc-nm      aarch64-none-linux-gnu-gfortran       aarch64-none-linux-gnu-objcopy
aarch64-none-linux-gnu-dwp        aarch64-none-linux-gnu-gcc-ranlib  aarch64-none-linux-gnu-gprof          aarch64-none-linux-gnu-objdump
yejq at UNIX:~/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin$ cat aarch64-none-linux-gnu-gcc-ar
for arg in "$@"; do
 case "$arg" in -l*|-L*|-shared|-static)
  exec "/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc-ar" -Os -pipe -mcpu=cortex-a53 -mglibc  -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/include -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/include -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/lib -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/lib ${STAGING_DIR:+-idirafter "$STAGING_DIR/usr/include" -L "$STAGING_DIR/usr/lib" -Wl,-rpath-link,"$STAGING_DIR/usr/lib"} "$@" ;;
 esac
done
exec "/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc-ar" -Os -pipe -mcpu=cortex-a53 -mglibc  -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/include -I/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/include -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/usr/lib -L/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/lib ${STAGING_DIR:+-idirafter "$STAGING_DIR/usr/include"} "$@"
yejq at UNIX:~/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin$ cd ../../../build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd/
yejq at UNIX:~/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd$ ls
android.config  config_file.o  eap_register.c       hlr_auc_gw.c            hostapd.android.rc  hostapd.conf             hostapd.radius_clients  main.c              README-MULTI-AP
Android.mk      ctrl_iface.c   eap_register.h       hlr_auc_gw.milenage_db  hostapd_cli         hostapd.deny             hostapd.sim_db          main.o              README-WPS
ChangeLog       ctrl_iface.h   eap_register.o       hlr_auc_gw.txt          hostapd_cli.1       hostapd.eap_user         hostapd.vlan            Makefile            sae_pk_gen.c
config_file.c   ctrl_iface.o   eap_testing.txt      hostapd.8               hostapd_cli.c       hostapd.eap_user_sqlite  hostapd.wpa_psk         nt_password_hash.c  wired.conf
config_file.h   defconfig      hapd_module_tests.c  hostapd.accept          hostapd_cli.o       hostapd_multi.o          logwatch                README              wps-ap-nfc.py
yejq at UNIX:~/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd$ cd ../../../../../staging_dir/target-aarch64-none-linux-gnu_glibc/
yejq at UNIX:~/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc$ export STAGING_DIR=$PWD
yejq at UNIX:~/program/openwrt/staging_dir/target-aarch64-none-linux-gnu_glibc$ cd -
/home/yejq/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd
yejq at UNIX:~/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd$ /home/yejq/program/openwrt/staging_dir/toolchain-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc-ar cr hostapd_multi.a hostapd_multi.o main.o config_file.o ../src/ap/hostapd.o ../src/ap/wpa_auth_glue.o ../src/ap/drv_callbacks.o ../src/ap/ap_drv_ops.o ../src/ap/utils.o ../src/ap/authsrv.o ../src/ap/ieee802_1x.o ../src/ap/ap_config.o ../src/ap/eap_user_db.o ../src/ap/ieee802_11_auth.o ../src/ap/sta_info.o ../src/ap/wpa_auth.o ../src/ap/tkip_countermeasures.o ../src/ap/ap_mlme.o ../src/ap/wpa_auth_ie.o ../src/ap/preauth_auth.o ../src/ap/pmksa_cache_auth.o ../src/ap/ieee802_11_shared.o ../src/ap/beacon.o ../src/ap/bss_load.o ../src/ap/neighbor_db.o ../src/ap/rrm.o ../src/drivers/drivers.o ../src/utils/eloop.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o ../src/utils/os_unix.o ../src/utils/ip_addr.o ../src/utils/crc32.o ../src/common/ieee802_11_common.o ../src/common/wpa_common.o ../src/common/hw_features_common.o ../src/eapol_auth/eapol_auth_sm.o ../src/ap/ubus.o ../src/ap/vlan_init.o ../src/ap/vlan_ifconfig.o ../src/ap/vlan.o ../src/common/ctrl_iface_common.o ctrl_iface.o ../src/ap/ctrl_iface_ap.o ../src/ap/wpa_auth_ft.o ../src/ap/eth_p_oui.o ../src/common/sae.o ../src/drivers/driver_nl80211.o ../src/drivers/driver_nl80211_capa.o ../src/drivers/driver_nl80211_event.o ../src/drivers/driver_nl80211_monitor.o ../src/drivers/driver_nl80211_scan.o ../src/drivers/driver_wired.o ../src/drivers/driver_wired_common.o ../src/drivers/linux_ioctl.o ../src/drivers/netlink.o ../src/utils/radiotap.o ../src/l2_packet/l2_packet_linux.o eap_register.o ../src/eap_server/eap_server.o ../src/eap_common/eap_common.o ../src/eap_server/eap_server_methods.o ../src/eap_server/eap_server_identity.o ../src/common/dragonfly.o ../src/crypto/crypto_wolfssl.o ../src/crypto/tls_none.o  ../src/crypto/aes-siv.o ../src/crypto/aes-ctr.o ../src/crypto/sha1-prf.o ../src/crypto/sha256-prf.o ../src/crypto/sha256-tlsprf.o ../src/crypto/sha256-kdf.o ../src/crypto/sha384-kdf.o ../src/crypto/sha512-kdf.o ../src/crypto/sha384-prf.o ../src/crypto/sha512-prf.o ../src/crypto/dh_groups.o ../src/ap/wmm.o ../src/ap/ap_list.o ../src/ap/ieee802_11.o ../src/ap/hw_features.o ../src/ap/dfs.o ../src/ap/ieee802_11_ht.o ../src/ap/ieee802_11_vht.o ../src/drivers/driver_common.o
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ar: two different operation options specified
yejq at UNIX:~/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd$ /opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc-ar -Os -pipe -mcpu=cortex-a53 -mglibc cr hostapd_multi.a hostapd_multi.o main.o config_file.o ../src/ap/hostapd.o ../src/ap/wpa_auth_glue.o ../src/ap/drv_callbacks.o ../src/ap/ap_drv_ops.o ../src/ap/utils.o ../src/ap/authsrv.o ../src/ap/ieee802_1x.o ../src/ap/ap_config.o ../src/ap/eap_user_db.o ../src/ap/ieee802_11_auth.o ../src/ap/sta_info.o ../src/ap/wpa_auth.o ../src/ap/tkip_countermeasures.o ../src/ap/ap_mlme.o ../src/ap/wpa_auth_ie.o ../src/ap/preauth_auth.o ../src/ap/pmksa_cache_auth.o ../src/ap/ieee802_11_shared.o ../src/ap/beacon.o ../src/ap/bss_load.o ../src/ap/neighbor_db.o ../src/ap/rrm.o ../src/drivers/drivers.o ../src/utils/eloop.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o ../src/utils/os_unix.o ../src/utils/ip_addr.o ../src/utils/crc32.o ../src/common/ieee802_11_common.o ../src/common/wpa_common.o ../src/common/hw_features_common.o ../src/eapol_auth/eapol_auth_sm.o ../src/ap/ubus.o ../src/ap/vlan_init.o ../src/ap/vlan_ifconfig.o ../src/ap/vlan.o ../src/common/ctrl_iface_common.o ctrl_iface.o ../src/ap/ctrl_iface_ap.o ../src/ap/wpa_auth_ft.o ../src/ap/eth_p_oui.o ../src/common/sae.o ../src/drivers/driver_nl80211.o ../src/drivers/driver_nl80211_capa.o ../src/drivers/driver_nl80211_event.o ../src/drivers/driver_nl80211_monitor.o ../src/drivers/driver_nl80211_scan.o ../src/drivers/driver_wired.o ../src/drivers/driver_wired_common.o ../src/drivers/linux_ioctl.o ../src/drivers/netlink.o ../src/utils/radiotap.o ../src/l2_packet/l2_packet_linux.o eap_register.o ../src/eap_server/eap_server.o ../src/eap_common/eap_common.o ../src/eap_server/eap_server_methods.o ../src/eap_server/eap_server_identity.o ../src/common/dragonfly.o ../src/crypto/crypto_wolfssl.o ../src/crypto/tls_none.o  ../src/crypto/aes-siv.o ../src/crypto/aes-ctr.o ../src/crypto/sha1-prf.o ../src/crypto/sha256-prf.o ../src/crypto/sha256-tlsprf.o ../src/crypto/sha256-kdf.o ../src/crypto/sha384-kdf.o ../src/crypto/sha512-kdf.o ../src/crypto/sha384-prf.o ../src/crypto/sha512-prf.o ../src/crypto/dh_groups.o ../src/ap/wmm.o ../src/ap/ap_list.o ../src/ap/ieee802_11.o ../src/ap/hw_features.o ../src/ap/dfs.o ../src/ap/ieee802_11_ht.o ../src/ap/ieee802_11_vht.o ../src/drivers/driver_common.o ../src/ap/acs.o
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ar: two different operation options specified
yejq at UNIX:~/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd$ /opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc-ar -Os -mcpu=cortex-a53 -mglibc cr hostapd_multi.a hostapd_multi.o main.o config_file.o ../src/ap/hostapd.o ../src/ap/wpa_auth_glue.o ../src/ap/drv_callbacks.o ../src/ap/ap_drv_ops.o ../src/ap/utils.o ../src/ap/authsrv.o ../src/ap/ieee802_1x.o ../src/ap/ap_config.o ../src/ap/eap_user_db.o ../src/ap/ieee802_11_auth.o ../src/ap/sta_info.o ../src/ap/wpa_auth.o ../src/ap/tkip_countermeasures.o ../src/ap/ap_mlme.o ../src/ap/wpa_auth_ie.o ../src/ap/preauth_auth.o ../src/ap/pmksa_cache_auth.o ../src/ap/ieee802_11_shared.o ../src/ap/beacon.o ../src/ap/bss_load.o ../src/ap/neighbor_db.o ../src/ap/rrm.o ../src/drivers/drivers.o ../src/utils/eloop.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o ../src/utils/os_unix.o ../src/utils/ip_addr.o ../src/utils/crc32.o ../src/common/ieee802_11_common.o ../src/common/wpa_common.o ../src/common/hw_features_common.o ../src/eapol_auth/eapol_auth_sm.o ../src/ap/ubus.o ../src/ap/vlan_init.o ../src/ap/vlan_ifconfig.o ../src/ap/vlan.o ../src/common/ctrl_iface_common.o ctrl_iface.o ../src/ap/ctrl_iface_ap.o ../src/ap/wpa_auth_ft.o ../src/ap/eth_p_oui.o ../src/common/sae.o ../src/drivers/driver_nl80211.o ../src/drivers/driver_nl80211_capa.o ../src/drivers/driver_nl80211_event.o ../src/drivers/driver_nl80211_monitor.o ../src/drivers/driver_nl80211_scan.o ../src/drivers/driver_wired.o ../src/drivers/driver_wired_common.o ../src/drivers/linux_ioctl.o ../src/drivers/netlink.o ../src/utils/radiotap.o ../src/l2_packet/l2_packet_linux.o eap_register.o ../src/eap_server/eap_server.o ../src/eap_common/eap_common.o ../src/eap_server/eap_server_methods.o ../src/eap_server/eap_server_identity.o ../src/common/dragonfly.o ../src/crypto/crypto_wolfssl.o ../src/crypto/tls_none.o  ../src/crypto/aes-siv.o ../src/crypto/aes-ctr.o ../src/crypto/sha1-prf.o ../src/crypto/sha256-prf.o ../src/crypto/sha256-tlsprf.o ../src/crypto/sha256-kdf.o ../src/crypto/sha384-kdf.o ../src/crypto/sha512-kdf.o ../src/crypto/sha384-prf.o ../src/crypto/sha512-prf.o ../src/crypto/dh_groups.o ../src/ap/wmm.o ../src/ap/ap_list.o ../src/ap/ieee802_11.o ../src/ap/hw_features.o ../src/ap/dfs.o ../src/ap/ieee802_11_ht.o ../src/ap/ieee802_11_vht.o ../src/drivers/driver_common.o ../src/ap/acs.o
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ar: two different operation options specified
yejq at UNIX:~/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd$ /opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc-ar -Os -mglibc cr hostapd_multi.a hostapd_multi.o main.o config_file.o ../src/ap/hostapd.o ../src/ap/wpa_auth_glue.o ../src/ap/drv_callbacks.o ../src/ap/ap_drv_ops.o ../src/ap/utils.o ../src/ap/authsrv.o ../src/ap/ieee802_1x.o ../src/ap/ap_config.o ../src/ap/eap_user_db.o ../src/ap/ieee802_11_auth.o ../src/ap/sta_info.o ../src/ap/wpa_auth.o ../src/ap/tkip_countermeasures.o ../src/ap/ap_mlme.o ../src/ap/wpa_auth_ie.o ../src/ap/preauth_auth.o ../src/ap/pmksa_cache_auth.o ../src/ap/ieee802_11_shared.o ../src/ap/beacon.o ../src/ap/bss_load.o ../src/ap/neighbor_db.o ../src/ap/rrm.o ../src/drivers/drivers.o ../src/utils/eloop.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o ../src/utils/os_unix.o ../src/utils/ip_addr.o ../src/utils/crc32.o ../src/common/ieee802_11_common.o ../src/common/wpa_common.o ../src/common/hw_features_common.o ../src/eapol_auth/eapol_auth_sm.o ../src/ap/ubus.o ../src/ap/vlan_init.o ../src/ap/vlan_ifconfig.o ../src/ap/vlan.o ../src/common/ctrl_iface_common.o ctrl_iface.o ../src/ap/ctrl_iface_ap.o ../src/ap/wpa_auth_ft.o ../src/ap/eth_p_oui.o ../src/common/sae.o ../src/drivers/driver_nl80211.o ../src/drivers/driver_nl80211_capa.o ../src/drivers/driver_nl80211_event.o ../src/drivers/driver_nl80211_monitor.o ../src/drivers/driver_nl80211_scan.o ../src/drivers/driver_wired.o ../src/drivers/driver_wired_common.o ../src/drivers/linux_ioctl.o ../src/drivers/netlink.o ../src/utils/radiotap.o ../src/l2_packet/l2_packet_linux.o eap_register.o ../src/eap_server/eap_server.o ../src/eap_common/eap_common.o ../src/eap_server/eap_server_methods.o ../src/eap_server/eap_server_identity.o ../src/common/dragonfly.o ../src/crypto/crypto_wolfssl.o ../src/crypto/tls_none.o  ../src/crypto/aes-siv.o ../src/crypto/aes-ctr.o ../src/crypto/sha1-prf.o ../src/crypto/sha256-prf.o ../src/crypto/sha256-tlsprf.o ../src/crypto/sha256-kdf.o ../src/crypto/sha384-kdf.o ../src/crypto/sha512-kdf.o ../src/crypto/sha384-prf.o ../src/crypto/sha512-prf.o ../src/crypto/dh_groups.o ../src/ap/wmm.o ../src/ap/ap_list.o ../src/ap/ieee802_11.o ../src/ap/hw_features.o ../src/ap/dfs.o ../src/ap/ieee802_11_ht.o ../src/ap/ieee802_11_vht.o ../src/drivers/driver_common.o ../src/ap/acs.o
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ar: invalid option -- 'g'
Usage: /opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ar [emulation options] [-]{dmpqrstx}[abcDfilMNoOPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file...
       /opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ar -M [<mri-script]
 commands:
  d            - delete file(s) from the archive
  m[ab]        - move file(s) in the archive
  p            - print file(s) found in the archive
  q[f]         - quick append file(s) to the archive
  r[ab][f][u]  - replace existing or insert new file(s) into the archive
  s            - act as ranlib
  t[O][v]      - display contents of the archive
  x[o]         - extract file(s) from the archive
 command specific modifiers:
  [a]          - put file(s) after [member-name]
  [b]          - put file(s) before [member-name] (same as [i])
  [D]          - use zero for timestamps and uids/gids
  [U]          - use actual timestamps and uids/gids (default)
  [N]          - use instance [count] of name
  [f]          - truncate inserted file names
  [P]          - use full path names when matching
  [o]          - preserve original dates
  [O]          - display offsets of files in the archive
  [u]          - only replace files that are newer than current archive contents
 generic modifiers:
  [c]          - do not warn if the library had to be created
  [s]          - create an archive index (cf. ranlib)
  [S]          - do not build a symbol table
  [T]          - make a thin archive
  [v]          - be verbose
  [V]          - display the version number
  @<file>      - read options from <file>
  --target=BFDNAME - specify the target object format as BFDNAME
  --output=DIRNAME - specify the output directory for extraction operations
 optional:
  --plugin <p> - load the specified plugin
 emulation options:
  No emulation specific options
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ar: supported targets: elf64-littleaarch64 elf64-bigaarch64 elf32-littleaarch64 elf32-bigaarch64 elf32-littlearm elf32-bigarm elf64-little elf64-big elf32-little elf32-big elf32-littlearm-fdpic elf32-bigarm-fdpic srec symbolsrec verilog tekhex binary ihex plugin
yejq at UNIX:~/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd$ /opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc-ar cr hostapd_multi.a hostapd_multi.o main.o config_file.o ../src/ap/hostapd.o ../src/ap/wpa_auth_glue.o ../src/ap/drv_callbacks.o ../src/ap/ap_drv_ops.o ../src/ap/utils.o ../src/ap/authsrv.o ../src/ap/ieee802_1x.o ../src/ap/ap_config.o ../src/ap/eap_user_db.o ../src/ap/ieee802_11_auth.o ../src/ap/sta_info.o ../src/ap/wpa_auth.o ../src/ap/tkip_countermeasures.o ../src/ap/ap_mlme.o ../src/ap/wpa_auth_ie.o ../src/ap/preauth_auth.o ../src/ap/pmksa_cache_auth.o ../src/ap/ieee802_11_shared.o ../src/ap/beacon.o ../src/ap/bss_load.o ../src/ap/neighbor_db.o ../src/ap/rrm.o ../src/drivers/drivers.o ../src/utils/eloop.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o ../src/utils/os_unix.o ../src/utils/ip_addr.o ../src/utils/crc32.o ../src/common/ieee802_11_common.o ../src/common/wpa_common.o ../src/common/hw_features_common.o ../src/eapol_auth/eapol_auth_sm.o ../src/ap/ubus.o ../src/ap/vlan_init.o ../src/ap/vlan_ifconfig.o ../src/ap/vlan.o ../src/common/ctrl_iface_common.o ctrl_iface.o ../src/ap/ctrl_iface_ap.o ../src/ap/wpa_auth_ft.o ../src/ap/eth_p_oui.o ../src/common/sae.o ../src/drivers/driver_nl80211.o ../src/drivers/driver_nl80211_capa.o ../src/drivers/driver_nl80211_event.o ../src/drivers/driver_nl80211_monitor.o ../src/drivers/driver_nl80211_scan.o ../src/drivers/driver_wired.o ../src/drivers/driver_wired_common.o ../src/drivers/linux_ioctl.o ../src/drivers/netlink.o ../src/utils/radiotap.o ../src/l2_packet/l2_packet_linux.o eap_register.o ../src/eap_server/eap_server.o ../src/eap_common/eap_common.o ../src/eap_server/eap_server_methods.o ../src/eap_server/eap_server_identity.o ../src/common/dragonfly.o ../src/crypto/crypto_wolfssl.o ../src/crypto/tls_none.o  ../src/crypto/aes-siv.o ../src/crypto/aes-ctr.o ../src/crypto/sha1-prf.o ../src/crypto/sha256-prf.o ../src/crypto/sha256-tlsprf.o ../src/crypto/sha256-kdf.o ../src/crypto/sha384-kdf.o ../src/crypto/sha512-kdf.o ../src/crypto/sha384-prf.o ../src/crypto/sha512-prf.o ../src/crypto/dh_groups.o ../src/ap/wmm.o ../src/ap/ap_list.o ../src/ap/ieee802_11.o ../src/ap/hw_features.o ../src/ap/dfs.o ../src/ap/ieee802_11_ht.o ../src/ap/ieee802_11_vht.o ../src/drivers/driver_common.o ../src/ap/acs.o
yejq at UNIX:~/program/openwrt/build_dir/target-aarch64-none-linux-gnu_glibc/hostapd-wpad-basic-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd$ echo $?
0
---
 scripts/ext-toolchain.sh | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh
index ee7d9532f5..27c168789a 100755
--- a/scripts/ext-toolchain.sh
+++ b/scripts/ext-toolchain.sh
@@ -198,6 +198,33 @@ find_bins() {
 	return 1
 }
 
+wrap_bin_ar() {
+	local out="$1"
+	local bin="$2"
+
+	echo '#!/bin/sh'                                                   > "$out"
+	if [[ "$bin" =~ .+gcc-ar$ ]] ; then
+		echo 'exec "'"$bin"'" "$@"'                                   >> "$out"
+	else
+		echo 'exec "'"${bin%-ar}-gcc-ar"'" "$@"'                      >> "$out"
+	fi
+
+	chmod +x "$out"
+}
+
+wrap_bin_ranlib() {
+	local out="$1"
+	local bin="$2"
+
+	echo '#!/bin/sh'                                                   > "$out"
+	if [[ "$bin" =~ .+gcc-ranlib$ ]] ; then
+		echo 'exec "'"$bin"'" "$@"'                                   >> "$out"
+	else
+		echo 'exec "'"${bin%-ranlib}-gcc-ranlib"'" "$@"'              >> "$out"
+	fi
+
+	chmod +x "$out"
+}
 
 wrap_bin_cc() {
 	local out="$1"
@@ -256,6 +283,12 @@ wrap_bins() {
 				fi
 
 				case "${cmd##*/}" in
+					*-ar)
+						wrap_bin_ar "$out" "$bin"
+					;;
+					*-ranlib)
+						wrap_bin_ranlib "$out" "$bin"
+					;;
 					*-*cc|*-*cc-*|*-*++|*-*++-*|*-cpp)
 						wrap_bin_cc "$out" "$bin"
 					;;
-- 
2.25.1




More information about the openwrt-devel mailing list