找回密码
 立即注册
img_loading
智能检测中

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
查看: 2860|回复: 9

求大伙们看看这两个编译错误怎么回事,openwrt加入lean插件的编译

[复制链接]
发表于 2019-4-19 08:57 | 显示全部楼层 |阅读模式
本帖最后由 ascc2344 于 2019-4-20 15:22 编辑

错误1(看来是网络不好导致的):make V=99之后:
make[3]: Entering directory '/home/l-w/openwrt/package/lean/kcptun'
rm -f /home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.built
touch /home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.built_check
( cd /home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build ; export GOPATH=/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build GOCACHE=/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/cache GOTMPDIR=/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/tmp GOROOT_FINAL=/usr/lib/go-1.10 CC=arm-openwrt-linux-muslgnueabi-gcc CXX=arm-openwrt-linux-muslgnueabi-g++  GOOS=linux GOARCH=arm GO386=387 GOARM=7 GOMIPS= CGO_ENABLED=1 CGO_CFLAGS="-Os -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401:kcptun-20190401 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/l-w/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/include -I/home/l-w/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/include -I/home/l-w/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/include -I/home/l-w/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.3.0_musl_eabi/include/fortify -I/home/l-w/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.3.0_musl_eabi/include" CGO_CXXFLAGS="-Os -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401:kcptun-20190401 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" ; targets=$(go list github.com/xtaci/kcptun/...) ; for pattern in ; do targets=$(echo "$targets" | grep -v "$pattern") ; done ; if [ "" = 1 ]; then go generate -v  $targets ; fi ; if [ "" != 1 ]; then case arm in arm)         installsuffix="-installsuffix v7" ;; mips|mipsle) installsuffix="-installsuffix " ;; esac ; trimpath="all=-trimpath=/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build" ; ldflags="all=-linkmode external -extldflags '-L/home/l-w/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/lib -L/home/l-w/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/lib -L/home/l-w/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.3.0_musl_eabi/usr/lib -L/home/l-w/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.3.0_musl_eabi/lib -znow -zrelro'" ; go install $installsuffix -gcflags "$trimpath" -asmflags "$trimpath" -ldflags "$ldflags" -v  $targets ; retval=$? ; if [ "$retval" -eq 0 ] && [ -z "$(find /home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build/bin/linux_arm -maxdepth 0 -type d \! -empty 2>/dev/null)" ]; then echo "No binaries were generated, consider adding GO_PKG_SOURCE_ONLY:=1 to Makefile" ; fi ; fi ; exit $retval ; )
src/github.com/xtaci/kcptun/client/main.go:16:2: cannot find package "github.com/golang/snappy" in any of:
/home/l-w/openwrt/staging_dir/hostpkg/lib/go-cross/src/github.com/golang/snappy (from $GOROOT)
/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build/src/github.com/golang/snappy (from $GOPATH)
src/github.com/xtaci/kcptun/client/main.go:17:2: cannot find package "github.com/pkg/errors" in any of:
/home/l-w/openwrt/staging_dir/hostpkg/lib/go-cross/src/github.com/pkg/errors (from $GOROOT)
/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build/src/github.com/pkg/errors (from $GOPATH)
src/github.com/xtaci/kcptun/client/main.go:18:2: cannot find package "github.com/urfave/cli" in any of:
/home/l-w/openwrt/staging_dir/hostpkg/lib/go-cross/src/github.com/urfave/cli (from $GOROOT)
/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build/src/github.com/urfave/cli (from $GOPATH)
src/github.com/xtaci/kcptun/client/main.go:19:2: cannot find package "github.com/xtaci/kcp-go" in any of:
/home/l-w/openwrt/staging_dir/hostpkg/lib/go-cross/src/github.com/xtaci/kcp-go (from $GOROOT)
/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build/src/github.com/xtaci/kcp-go (from $GOPATH)
src/github.com/xtaci/kcptun/client/main.go:20:2: cannot find package "github.com/xtaci/smux" in any of:
/home/l-w/openwrt/staging_dir/hostpkg/lib/go-cross/src/github.com/xtaci/smux (from $GOROOT)
/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build/src/github.com/xtaci/smux (from $GOPATH)
src/github.com/xtaci/kcptun/client/main.go:14:2: cannot find package "golang.org/x/crypto/pbkdf2" in any of:
/home/l-w/openwrt/staging_dir/hostpkg/lib/go-cross/src/golang.org/x/crypto/pbkdf2 (from $GOROOT)
/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.go_work/build/src/golang.org/x/crypto/pbkdf2 (from $GOPATH)
Makefile:80: recipe for target '/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.built' failed
make[3]: *** [/home/l-w/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/kcptun-20190401/.built] Error 1
make[3]: Leaving directory '/home/l-w/openwrt/package/lean/kcptun'
time: package/lean/kcptun/compile#0.27#0.17#0.49
package/Makefile:107: recipe for target 'package/lean/kcptun/compile' failed
make[2]: *** [package/lean/kcptun/compile] Error 2
make[2]: Leaving directory '/home/l-w/openwrt'
package/Makefile:103: recipe for target '/home/l-w/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/stamp/.package_compile' failed
make[1]: *** [/home/l-w/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/l-w/openwrt'
/home/l-w/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

错误2(已通过去掉luci-app-v2瑞-pro的makefile文件里面的第一个依赖项解决):make menuconfig之后:
tmp/.config-package.in:58473:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:58473: symbol PACKAGE_iptables is selected by PACKAGE_sqm-scripts
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:1011: symbol PACKAGE_sqm-scripts is selected by PACKAGE_luci-app-sqm
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:41649: symbol PACKAGE_luci-app-sqm depends on PACKAGE_lua
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:18642: symbol PACKAGE_lua is selected by PACKAGE_lua-cjson
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:18674: symbol PACKAGE_lua-cjson is selected by PACKAGE_luci-app-v2瑞-pro
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:41923: symbol PACKAGE_luci-app-v2瑞-pro depends on PACKAGE_iptables

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应。胡乱输入灌水等操作将会被封禁ID。
发表于 2019-4-19 09:12 | 显示全部楼层
最好把你的Makefile也帖出来看看

点评

这是kcptun的makefile: # # Copyright (C) 2019 Xingwang Liao # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDI  详情 回复 发表于 2019-4-19 09:43
哪个文件夹的makefile?我就是直接把lean文件夹拖到openwrt/package,就进行编译  详情 回复 发表于 2019-4-19 09:22
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应。胡乱输入灌水等操作将会被封禁ID。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-4-19 09:22 | 显示全部楼层
9394952 发表于 2019-4-19 09:12
最好把你的Makefile也帖出来看看

哪个文件夹的makefile?我就是直接把lean文件夹拖到openwrt/package,就进行编译
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应。胡乱输入灌水等操作将会被封禁ID。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-4-19 09:43 | 显示全部楼层
本帖最后由 ascc2344 于 2019-4-19 09:44 编辑
9394952 发表于 2019-4-19 09:12
最好把你的Makefile也帖出来看看

这是kcptun的makefile:
#
# Copyright (C) 2019 Xingwang Liao
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=kcptun
PKG_VERSION:=20190401
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/xtaci/kcptun/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=70d01d99cc7ae5b77a0943c61377216a0f758d2b2ac3d60786af8f6e9a66065e
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE.md
PKG_MAINTAINER:=Xingwang Liao <kuoruan@gmail.com>
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
GO_PKG:=github.com/xtaci/kcptun
GO_PKG_LDFLAGS:=-s -w -X 'main.VERSION=$(PKG_VERSION)-$(PKG_RELEASE) for OpenWrt'
include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
define Package/kcptun/Default
  TITLE:=Simple UDP Tunnel Based On KCP
  URL:=https://github.com/xtaci/kcptun
endef
define Package/kcptun/Default/description
A Stable & Secure Tunnel Based On KCP with N:M Multiplexing.
endef
define kcptun/templates
  define Package/kcptun-$(1)
  $$(call Package/kcptun/Default)
    TITLE+= ($(1))
    USERID:=kcptun=12900:kcptun=12900
    SECTION:=net
    CATEGORY:=Network
    SUBMENU:=Web Servers/Proxies
    DEPENDS:=$$(GO_ARCH_DEPENDS)
  endef
  define Package/kcptun-$(1)/description
  $$(call Package/kcptun/Default/description)
  This package contains the kcptun $(1).
  endef
  define Package/kcptun-$(1)/install
$$(INSTALL_DIR) $$(1)/usr/bin
$$(INSTALL_BIN) $$(GO_PKG_BUILD_BIN_DIR)/$(1) $$(1)/usr/bin/kcptun-$(1)
  endef
endef
define Package/golang-github-xtaci-kcptun-dev
$(call Package/kcptun/Default)
$(call GoPackage/GoSubMenu)
  TITLE+= (source files)
  PKGARCH:=all
endef
define Package/golang-github-xtaci-kcptun-dev/description
$(call Package/kcptun/Default/description)
This package provides the source files for the kcptun client/server.
endef
KCPTUN_COMPONENTS:=client server
$(foreach component,$(KCPTUN_COMPONENTS), \
  $(eval $(call kcptun/templates,$(component))) \
  $(eval $(call GoBinPackage,kcptun-$(component))) \
  $(eval $(call BuildPackage,kcptun-$(component))) \
)
$(eval $(call GoSrcPackage,golang-github-xtaci-kcptun-dev))
$(eval $(call BuildPackage,golang-github-xtaci-kcptun-dev))

只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应。胡乱输入灌水等操作将会被封禁ID。
回复 支持 反对

使用道具 举报

发表于 2019-4-19 10:12 | 显示全部楼层
感觉是有些depends包缺了

点评

换个网络环境重编译就好了  发表于 2019-4-20 15:25
额,怎么获得depends包呢。哪个文件夹?  详情 回复 发表于 2019-4-19 10:52
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应。胡乱输入灌水等操作将会被封禁ID。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-4-19 10:52 来自手机 | 显示全部楼层
9394952 发表于 2019-4-19 10:12
感觉是有些depends包缺了

额,怎么获得depends包呢。哪个文件夹?
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应。胡乱输入灌水等操作将会被封禁ID。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛

只谈技术、莫论政事!切勿转播谣言!为了你也为了他人。
只谈技术、莫论政事!(点击见详情) 切记不要随意传播谣言,把自己的日子过安稳了就行,为了自己好也为了大家好。 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。

查看 »

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2025-7-19 04:19

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表