shadowsocks / luci-app-shadowsocks

OpenWrt/LEDE LuCI for Shadowsocks-libev
GNU General Public License v3.0
1.15k stars 422 forks source link

The CMAKE_C_COMPILER: sdk/staging_dir/host/bin/ccache is not a full path to an existing compiler tool. #131

Closed weiqi-chen closed 7 years ago

weiqi-chen commented 7 years ago

Hi, 你好,

I am trying to compile luci-app-shadowsocks from the newest openwrt SDK. And That SDK is compiled from the newest source code of OpenWRT(https://github.com/openwrt/openwrt) 我正在尝试从最新的openwrt SDK编译 luci-app-shadowsocks。 该SDK是从最新的OpenWRT源码中编译得到的。

The version of source code of openwrt: openwrt源代码的版本:

commit aef6a4154e5a21450dd4e9f230546f17076dcd51
Author: Zoltan HERPAI <wigyori@uid0.hu>
Date:   Sun Jul 16 13:27:54 2017 +0200

    ca-certificates: bump to 20161130+nmu1

    Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

I'm try to compile the OpenWRT for my raspberry pi 2. 对了,我的编译目标是树莓派2代。

The output of make package/shadowsocks-libev/compile V=s is below: 下面是make package/shadowsocks-libev/compile V=s的输出:

stdout.log

#
# configuration written to .config
#
make[1]: Entering directory '/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk'
make[2]: Entering directory '/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/feeds/base/package/libs/toolchain'
if [ -f /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install
if [ -f /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install
if [ -f /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/pkginfo/toolchain.default.install
make[2]: Leaving directory '/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/feeds/base/package/libs/toolchain'
make[2]: Entering directory '/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/package/feeds/base/mbedtls'
rm -f /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/stamp/.mbedtls_installed
(cd /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/build_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/mbedtls-2.5.1; CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/build_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/mbedtls-2.5.1:mbedtls-2.5.1 " CXXFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/build_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/mbedtls-2.5.1:mbedtls-2.5.1 " LDFLAGS="-L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/usr/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/usr/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/lib " cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=arm -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_C_COMPILER="/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/host/bin/ccache" -DCMAKE_C_COMPILER_ARG1="arm-openwrt-linux-muslgnueabi-gcc" -DCMAKE_CXX_COMPILER="/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/host/bin/ccache" -DCMAKE_CXX_COMPILER_ARG1="arm-openwrt-linux-muslgnueabi-g++" -DCMAKE_ASM_COMPILER="/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/host/bin/ccache" -DCMAKE_ASM_COMPILER_ARG1="arm-openwrt-linux-muslgnueabi-gcc" -DCMAKE_EXE_LINKER_FLAGS:STRING="-L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/usr/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/usr/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/lib" -DCMAKE_MODULE_LINKER_FLAGS:STRING="-L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/usr/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/usr/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/lib -Wl,-Bsymbolic-functions" -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/usr/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/usr/lib -L/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/lib -Wl,-Bsymbolic-functions" -DCMAKE_AR="/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/bin/arm-openwrt-linux-muslgnueabi-gcc-ar" -DCMAKE_NM="/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/bin/arm-openwrt-linux-muslgnueabi-gcc-nm" -DCMAKE_RANLIB="/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/bin/arm-openwrt-linux-muslgnueabi-gcc-ranlib" -DCMAKE_FIND_ROOT_PATH="/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/usr;/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi" -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=/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi -DCMAKE_PREFIX_PATH=/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi -DCMAKE_SKIP_RPATH=TRUE -DCMAKE_BUILD_TYPE:String="Release" -DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON -DENABLE_TESTING:Bool=OFF -DENABLE_PROGRAMS:Bool=OFF  . )
-- The C compiler identification is unknown
-- Configuring incomplete, errors occurred!
See also "/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/build_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/mbedtls-2.5.1/CMakeFiles/CMakeOutput.log".
See also "/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/build_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/mbedtls-2.5.1/CMakeFiles/CMakeError.log".
Makefile:70: recipe for target '/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/build_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/mbedtls-2.5.1/.configured_yyyyyyyyy' failed
make[2]: Leaving directory '/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/package/feeds/base/mbedtls'
package/Makefile:196: recipe for target 'package/feeds/base/mbedtls/compile' failed
make[1]: Leaving directory '/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk'
/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/include/toplevel.mk:185: recipe for target 'package/shadowsocks-libev/compile' failed

stderr.log

tmp/.config-package.in:8:warning: ignoring type redefinition of 'PACKAGE_base-files' from 'boolean' to 'tristate'
tmp/.config-package.in:55:warning: ignoring type redefinition of 'PACKAGE_busybox' from 'boolean' to 'tristate'
tmp/.config-package.in:98:warning: ignoring type redefinition of 'PACKAGE_dnsmasq' from 'boolean' to 'tristate'
tmp/.config-package.in:166:warning: ignoring type redefinition of 'PACKAGE_dropbear' from 'boolean' to 'tristate'
tmp/.config-package.in:196:warning: ignoring type redefinition of 'PACKAGE_firewall' from 'boolean' to 'tristate'
tmp/.config-package.in:217:warning: ignoring type redefinition of 'PACKAGE_fstools' from 'boolean' to 'tristate'
tmp/.config-package.in:240:warning: ignoring type redefinition of 'PACKAGE_jsonfilter' from 'boolean' to 'tristate'
tmp/.config-package.in:284:warning: ignoring type redefinition of 'PACKAGE_libc' from 'boolean' to 'tristate'
tmp/.config-package.in:312:warning: ignoring type redefinition of 'PACKAGE_libgcc' from 'boolean' to 'tristate'
tmp/.config-package.in:369:warning: ignoring type redefinition of 'PACKAGE_libpthread' from 'boolean' to 'tristate'
tmp/.config-package.in:491:warning: ignoring type redefinition of 'PACKAGE_logd' from 'boolean' to 'tristate'
tmp/.config-package.in:545:warning: ignoring type redefinition of 'PACKAGE_mtd' from 'boolean' to 'tristate'
tmp/.config-package.in:559:warning: ignoring type redefinition of 'PACKAGE_netifd' from 'boolean' to 'tristate'
tmp/.config-package.in:605:warning: ignoring type redefinition of 'PACKAGE_opkg' from 'boolean' to 'tristate'
tmp/.config-package.in:692:warning: ignoring type redefinition of 'PACKAGE_procd' from 'boolean' to 'tristate'
tmp/.config-package.in:798:warning: ignoring type redefinition of 'PACKAGE_rpcd' from 'boolean' to 'tristate'
tmp/.config-package.in:910:warning: ignoring type redefinition of 'PACKAGE_ubox' from 'boolean' to 'tristate'
tmp/.config-package.in:927:warning: ignoring type redefinition of 'PACKAGE_ubus' from 'boolean' to 'tristate'
tmp/.config-package.in:942:warning: ignoring type redefinition of 'PACKAGE_ubusd' from 'boolean' to 'tristate'
tmp/.config-package.in:956:warning: ignoring type redefinition of 'PACKAGE_uci' from 'boolean' to 'tristate'
tmp/.config-package.in:969:warning: ignoring type redefinition of 'PACKAGE_usign' from 'boolean' to 'tristate'
tmp/.config-package.in:1413:warning: ignoring type redefinition of 'PACKAGE_brcm2708-gpu-fw' from 'boolean' to 'tristate'
tmp/.config-package.in:5077:warning: ignoring type redefinition of 'PACKAGE_rt2800-usb-firmware' from 'boolean' to 'tristate'
tmp/.config-package.in:7275:warning: ignoring type redefinition of 'PACKAGE_kmod-cfg80211' from 'boolean' to 'tristate'
tmp/.config-package.in:7608:warning: ignoring type redefinition of 'PACKAGE_kmod-mac80211' from 'boolean' to 'tristate'
tmp/.config-package.in:7809:warning: ignoring type redefinition of 'PACKAGE_kmod-rt2800-lib' from 'boolean' to 'tristate'
tmp/.config-package.in:7863:warning: ignoring type redefinition of 'PACKAGE_kmod-rt2800-usb' from 'boolean' to 'tristate'
tmp/.config-package.in:7878:warning: ignoring type redefinition of 'PACKAGE_kmod-rt2x00-lib' from 'boolean' to 'tristate'
tmp/.config-package.in:7933:warning: ignoring type redefinition of 'PACKAGE_kmod-rt2x00-usb' from 'boolean' to 'tristate'
tmp/.config-package.in:8486:warning: ignoring type redefinition of 'PACKAGE_libiwinfo-lua' from 'boolean' to 'tristate'
tmp/.config-package.in:8530:warning: ignoring type redefinition of 'PACKAGE_lua' from 'boolean' to 'tristate'
tmp/.config-package.in:16743:warning: ignoring type redefinition of 'PACKAGE_libbz2' from 'boolean' to 'tristate'
tmp/.config-package.in:16757:warning: ignoring type redefinition of 'PACKAGE_liblzma' from 'boolean' to 'tristate'
tmp/.config-package.in:16948:warning: ignoring type redefinition of 'PACKAGE_libip4tc' from 'boolean' to 'tristate'
tmp/.config-package.in:16962:warning: ignoring type redefinition of 'PACKAGE_libip6tc' from 'boolean' to 'tristate'
tmp/.config-package.in:16992:warning: ignoring type redefinition of 'PACKAGE_libxtables' from 'boolean' to 'tristate'
tmp/.config-package.in:18637:warning: ignoring type redefinition of 'PACKAGE_libmbedtls' from 'boolean' to 'tristate'
tmp/.config-package.in:18652:warning: ignoring type redefinition of 'PACKAGE_libopenssl' from 'boolean' to 'tristate'
tmp/.config-package.in:19099:warning: ignoring type redefinition of 'PACKAGE_libsqlite3' from 'boolean' to 'tristate'
tmp/.config-package.in:20964:warning: ignoring type redefinition of 'PACKAGE_libblobmsg-json' from 'boolean' to 'tristate'
tmp/.config-package.in:21147:warning: ignoring type redefinition of 'PACKAGE_libdb47' from 'boolean' to 'tristate'
tmp/.config-package.in:21431:warning: ignoring type redefinition of 'PACKAGE_libev' from 'boolean' to 'tristate'
tmp/.config-package.in:22133:warning: ignoring type redefinition of 'PACKAGE_libffi' from 'boolean' to 'tristate'
tmp/.config-package.in:22374:warning: ignoring type redefinition of 'PACKAGE_libgdbm' from 'boolean' to 'tristate'
tmp/.config-package.in:23722:warning: ignoring type redefinition of 'PACKAGE_libiwinfo' from 'boolean' to 'tristate'
tmp/.config-package.in:23750:warning: ignoring type redefinition of 'PACKAGE_libjson-c' from 'boolean' to 'tristate'
tmp/.config-package.in:23807:warning: ignoring type redefinition of 'PACKAGE_liblua' from 'boolean' to 'tristate'
tmp/.config-package.in:23987:warning: ignoring type redefinition of 'PACKAGE_libmnl' from 'boolean' to 'tristate'
tmp/.config-package.in:24211:warning: ignoring type redefinition of 'PACKAGE_libncursesw' from 'boolean' to 'tristate'
tmp/.config-package.in:24569:warning: ignoring type redefinition of 'PACKAGE_libnl-tiny' from 'boolean' to 'tristate'
tmp/.config-package.in:25218:warning: ignoring type redefinition of 'PACKAGE_libpcre' from 'boolean' to 'tristate'
tmp/.config-package.in:25427:warning: ignoring type redefinition of 'PACKAGE_libreadline' from 'boolean' to 'tristate'
tmp/.config-package.in:25761:warning: ignoring type redefinition of 'PACKAGE_libsodium' from 'boolean' to 'tristate'
tmp/.config-package.in:26030:warning: ignoring type redefinition of 'PACKAGE_libubox' from 'boolean' to 'tristate'
tmp/.config-package.in:26056:warning: ignoring type redefinition of 'PACKAGE_libubus' from 'boolean' to 'tristate'
tmp/.config-package.in:26069:warning: ignoring type redefinition of 'PACKAGE_libubus-lua' from 'boolean' to 'tristate'
tmp/.config-package.in:26083:warning: ignoring type redefinition of 'PACKAGE_libuci' from 'boolean' to 'tristate'
tmp/.config-package.in:26096:warning: ignoring type redefinition of 'PACKAGE_libuci-lua' from 'boolean' to 'tristate'
tmp/.config-package.in:26110:warning: ignoring type redefinition of 'PACKAGE_libuclient' from 'boolean' to 'tristate'
tmp/.config-package.in:26138:warning: ignoring type redefinition of 'PACKAGE_libudns' from 'boolean' to 'tristate'
tmp/.config-package.in:26655:warning: ignoring type redefinition of 'PACKAGE_libxml2' from 'boolean' to 'tristate'
tmp/.config-package.in:26961:warning: ignoring type redefinition of 'PACKAGE_rpcd-mod-rrdns' from 'boolean' to 'tristate'
tmp/.config-package.in:27020:warning: ignoring type redefinition of 'PACKAGE_terminfo' from 'boolean' to 'tristate'
tmp/.config-package.in:27149:warning: ignoring type redefinition of 'PACKAGE_zlib' from 'boolean' to 'tristate'
tmp/.config-package.in:27168:warning: ignoring type redefinition of 'PACKAGE_luci' from 'boolean' to 'tristate'
tmp/.config-package.in:27237:warning: ignoring type redefinition of 'PACKAGE_luci-base' from 'boolean' to 'tristate'
tmp/.config-package.in:27343:warning: ignoring type redefinition of 'PACKAGE_luci-mod-admin-full' from 'boolean' to 'tristate'
tmp/.config-package.in:27771:warning: ignoring type redefinition of 'PACKAGE_luci-app-firewall' from 'boolean' to 'tristate'
tmp/.config-package.in:28237:warning: ignoring type redefinition of 'PACKAGE_luci-app-samba' from 'boolean' to 'tristate'
tmp/.config-package.in:28626:warning: ignoring type redefinition of 'PACKAGE_luci-theme-bootstrap' from 'boolean' to 'tristate'
tmp/.config-package.in:28702:warning: ignoring type redefinition of 'PACKAGE_luci-proto-ipv6' from 'boolean' to 'tristate'
tmp/.config-package.in:28740:warning: ignoring type redefinition of 'PACKAGE_luci-proto-ppp' from 'boolean' to 'tristate'
tmp/.config-package.in:28833:warning: ignoring type redefinition of 'PACKAGE_luci-lib-ip' from 'boolean' to 'tristate'
tmp/.config-package.in:28871:warning: ignoring type redefinition of 'PACKAGE_luci-lib-jsonc' from 'boolean' to 'tristate'
tmp/.config-package.in:28898:warning: ignoring type redefinition of 'PACKAGE_luci-lib-nixio' from 'boolean' to 'tristate'
tmp/.config-package.in:46972:warning: ignoring type redefinition of 'PACKAGE_ip6tables' from 'boolean' to 'tristate'
tmp/.config-package.in:47018:warning: ignoring type redefinition of 'PACKAGE_iptables' from 'boolean' to 'tristate'
tmp/.config-package.in:47694:warning: ignoring type redefinition of 'PACKAGE_iptables-mod-tproxy' from 'boolean' to 'tristate'
tmp/.config-package.in:49282:warning: ignoring type redefinition of 'PACKAGE_libudns' from 'boolean' to 'tristate'
tmp/.config-package.in:51714:warning: ignoring type redefinition of 'PACKAGE_ip' from 'boolean' to 'tristate'
tmp/.config-package.in:68812:warning: ignoring type redefinition of 'PACKAGE_uhttpd' from 'boolean' to 'tristate'
tmp/.config-package.in:68834:warning: ignoring type redefinition of 'PACKAGE_uhttpd-mod-lua' from 'boolean' to 'tristate'
tmp/.config-package.in:68884:warning: ignoring type redefinition of 'PACKAGE_uhttpd-mod-ubus' from 'boolean' to 'tristate'
tmp/.config-package.in:70692:warning: ignoring type redefinition of 'PACKAGE_hostapd-common' from 'boolean' to 'tristate'
tmp/.config-package.in:71069:warning: ignoring type redefinition of 'PACKAGE_ipset' from 'boolean' to 'tristate'
tmp/.config-package.in:71180:warning: ignoring type redefinition of 'PACKAGE_iputils-tftpd' from 'boolean' to 'tristate'
tmp/.config-package.in:71238:warning: ignoring type redefinition of 'PACKAGE_iw' from 'boolean' to 'tristate'
tmp/.config-package.in:73007:warning: ignoring type redefinition of 'PACKAGE_odhcp6c' from 'boolean' to 'tristate'
tmp/.config-package.in:73026:warning: ignoring type redefinition of 'PACKAGE_odhcpd' from 'boolean' to 'tristate'
tmp/.config-package.in:73205:warning: ignoring type redefinition of 'PACKAGE_ppp' from 'boolean' to 'tristate'
tmp/.config-package.in:73250:warning: ignoring type redefinition of 'PACKAGE_ppp-mod-pppoe' from 'boolean' to 'tristate'
tmp/.config-package.in:73453:warning: ignoring type redefinition of 'PACKAGE_samba36-client' from 'boolean' to 'tristate'
tmp/.config-package.in:73468:warning: ignoring type redefinition of 'PACKAGE_samba36-server' from 'boolean' to 'tristate'
tmp/.config-package.in:74092:warning: ignoring type redefinition of 'PACKAGE_uclient-fetch' from 'boolean' to 'tristate'
tmp/.config-package.in:81821:warning: ignoring type redefinition of 'PACKAGE_jshn' from 'boolean' to 'tristate'
tmp/.config-package.in:82119:warning: ignoring type redefinition of 'PACKAGE_libjson-script' from 'boolean' to 'tristate'
tmp/.config-package.in:57055:error: recursive dependency detected!
tmp/.config-package.in:57055:   symbol PACKAGE_freeswitch depends on PACKAGE_freeswitch-mod-perl
tmp/.config-package.in:58356:   symbol PACKAGE_freeswitch-mod-perl is selected by PACKAGE_freeswitch-mod-verto
tmp/.config-package.in:59203:   symbol PACKAGE_freeswitch-mod-verto depends on PACKAGE_freeswitch
CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_C_COMPILER:

    /mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/staging_dir/host/bin/ccache

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

make[2]: *** [/mnt/openwrt/release/trunk_2017_07_22/brcm2708/sdk/build_dir/target-arm_cortex-a7+neon-vfpv4_musl-1.1.16_eabi/mbedtls-2.5.1/.configured_yyyyyyyyy] Error 1
make[1]: *** [package/feeds/base/mbedtls/compile] Error 2
make: *** [package/shadowsocks-libev/compile] Error 2

Trying to fix this error, I tried add the toolchain path to $PATH . 我尝试过将工具链的路径添加到$PATH中去,

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/mnt/openwrt/release/trunk_2017_07_22/brcm2708/toolchain/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.3.0_musl-1.1.16_eabi/bin

But it did not work. 但是于事无补。

May I ask your advice about how to fix that problem?? Thanks. 请教大家,这个问题有办法克服吗?谢谢。

aa65535 commented 7 years ago

看一下系统有没有安装 ccache

weiqi-chen commented 7 years ago

系统是有安装ccache的。 不过,昨天有个开发者给我推荐LEDE,所以决定将算往LEDE切换……所以就不搞OpenWRT了。