Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

默认编译报错 #2842

Closed
adminidor opened this issue Jan 23, 2020 · 12 comments
Closed

默认编译报错 #2842

adminidor opened this issue Jan 23, 2020 · 12 comments

Comments

@adminidor
Copy link

make[3]: Entering directory /home/bbq/lede/package/lean/v2ray' mkdir -p /home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/bbq/lede/tmp/.root-copy.flock -c 'cp -fpR /home/bbq/lede/build_dir/target-x86_64_musl/v2ray-4.21.3/.pkgdir/v2ray/. /home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/' touch /home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.v2ray_installed echo "v2ray" >> /home/bbq/lede/staging_dir/target-x86_64_musl/pkginfo/v2ray.default.install make[3]: Leaving directory /home/bbq/lede/package/lean/v2ray'
time: package/lean/v2ray/compile#0.02#0.00#0.11
make[3]: Entering directory /home/bbq/lede/package/lean/v2ray-core' mkdir -p /home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/bbq/lede/tmp/.root-copy.flock -c 'cp -fpR /home/bbq/lede/build_dir/target-x86_64_musl/v2ray-core-4.22.1/.pkgdir/v2ray-core/. /home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/' cp: cannot overwrite directory '/home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/./usr/bin/v2ray' with non-directory make[3]: *** [/home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.v2ray-core_installed] Error 1 make[3]: Leaving directory /home/bbq/lede/package/lean/v2ray-core'
time: package/lean/v2ray-core/compile#0.04#0.02#0.14
make[2]: *** [package/lean/v2ray-core/compile] Error 2
make[2]: Leaving directory /home/bbq/lede' make[1]: *** [/home/bbq/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory /home/bbq/lede'
make: *** [world] Error 2

@KFERMercer
Copy link
Contributor

网络问题导致的 v2ray-core 编译错误. 暂时不要选v2ray-core, 还是用v2ray代替.

@KFERMercer
Copy link
Contributor

@Mattraks 太巧了吧

@adminidor
Copy link
Author

等修复呗

@Mattraks
Copy link
Contributor

需要将Network ---> <*> v2ray
*取消

@KFERMercer
Copy link
Contributor

KFERMercer commented Jan 23, 2020

需要将Network ---> <*> v2ray
*取消

我用我的分支 (还没merge上游) 试过了也不行. v2ray那边服务器抽风了.
image

@Mattraks
Copy link
Contributor

Mattraks commented Jan 23, 2020

你在Makefile加入以下使用代理编译
export GO111MODULE=on
export GOPROXY=https://goproxy.cn

目前大雕合并的源码已经集成了go代理

@hcym
Copy link

hcym commented Jan 23, 2020

瞎折腾啊,这个go编译最烦人,十几个莫名其妙源地址踢来踢去,还是用大雕的二进制文件吧

@KFERMercer
Copy link
Contributor

你在Makefile加入以下使用代理编译
export GO111MODULE=on
export GOPROXY=https://goproxy.cn

目前大雕合并的源码已经集成了go代理

现在的情况是actions里面也跑不出来.

@D-Bood
Copy link

D-Bood commented Jan 23, 2020

cp: cannot overwrite directory /home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/./usr/bin/v2ray' with non-directory
是这个问题导致的

原因是之前编译v2ray的时候在
/home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/
生成了./usr/bin/v2ray这个文件夹,而新增加的v2ray-core编译生成的./usr/bin/v2ray则是一个可执行文件,所以导致冲突

我这边是把
/home/username/lede/staging_dir/target-x86_64_musl/root-x86/./usr/bin/v2ray
删除,然后手动修改.config,注释掉CONFIG_PACKAGE_v2ray=y (因为我之前已经编译过了),确认CONFIG_PACKAGE_v2ray-core=y之后重新编译,搞定了

可能我说的有些地方不是很对,大概解决过程就是这样的,目前还没发现有什么问题😂
怀疑是Makefile有点问题

@kiddin9
Copy link

kiddin9 commented Jan 23, 2020

cp: cannot overwrite directory /home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/./usr/bin/v2ray' with non-directory
是这个问题导致的

原因是之前编译v2ray的时候在
/home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/
生成了./usr/bin/v2ray这个文件夹,而新增加的v2ray-core编译生成的./usr/bin/v2ray则是一个可执行文件,所以导致冲突

我这边是把
/home/bbq/lede/staging_dir/target-x86_64_musl/root-x86/./usr/bin/v2ray
删除,然后手动修改.config,注释掉CONFIG_PACKAGE_v2ray=y (因为我之前已经编译过了),确认CONFIG_PACKAGE_v2ray-core=y之后重新编译,搞定了

可能我说的有些地方不是很对,大概解决过程就是这样的,目前还没发现有什么问题😂

注释掉 CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_V2ray=y 后在Actions中编译成功了.

@lphgor
Copy link
Contributor

lphgor commented Jan 23, 2020

最近的更新都很激进呀,大杂烩式的更新,还改动默认配置

@KFERMercer
Copy link
Contributor

已经提交修复了, 等待拉取 ↑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants