Closed wang1zhen closed 2 years ago
同样遇到了,编译报错日志如下: Configuring luci-i18n-firewall-zh-cn. Configuring ppp-mod-pppoe. Configuring luci-i18n-nlbwmon-zh-cn. Collected errors:
下午就添加了,你们重新拉下
Building targets
../../../../../dl/go-mod-cache/github.com/sagernet/sing@v0.0.0-20220606113732-5efacc1c7db5/common/metadata/addr.go:5:2: package net/netip is not in GOROOT (/home/wang1zhen/openwrt/staging_dir/hostpkg/lib/go-cross/src/net/netip)
Collected errors:
Collected errors:
- check_conflicts_for: The following packages conflict with sagernet-core:
- check_conflicts_for: v2ray-core check_conflicts_for: xray-core
- opkg_install_cmd: Cannot install package luci-app-ssr-plus.
- check_conflicts_for: The following packages conflict with sagernet-core:
- check_conflicts_for: v2ray-core check_conflicts_for: xray-core
- opkg_install_cmd: Cannot install package sagernet-core. make[2]: [package/Makefile:70: package/install] Error 255 make[2]: Leaving directory '/home/lee/lede' make[1]: [package/Makefile:111: /home/lee/lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2 make[1]: Leaving directory '/home/lee/lede' make: *** [/home/lee/lede/include/toplevel.mk:230: world] Error 2
取消一个 现在lede的源码还有问题
同楼上: Collected errors:
为什么我重新拉了还是一样的问题啊
如果是写入feeds的 rm -rf ./feeds && ./scripts/feeds update -a && ./scripts/feeds install -a && rm -rf ./tmp && make menuconfig 如果是git到lean/package目录下的 cd lean/package 运行rm -rf 该文件夹
可以了,顺便问一下,解锁网易云的插件依赖ucode,可以也加进来吗?
如果是写入feeds的 rm -rf ./feeds && ./scripts/feeds update -a && ./scripts/feeds install -a && rm -rf ./tmp && make menuconfig 如果是git到lean/package目录下的 cd lean/package 运行rm -rf 该文件夹
好的,我去试试,感谢!
如果是写入feeds的 rm -rf ./feeds && ./scripts/feeds update -a && ./scripts/feeds install -a && rm -rf ./tmp && make menuconfig 如果是git到lean/package目录下的 cd lean/package 运行rm -rf 该文件夹
一样不行
* check_conflicts_for: The following packages conflict with sagernet-core:
* check_conflicts_for: v2ray-core * check_conflicts_for: xray-core *
* opkg_install_cmd: Cannot install package luci-app-ssr-plus.
* check_conflicts_for: The following packages conflict with sagernet-core:
* check_conflicts_for: v2ray-core * check_conflicts_for: xray-core *
* opkg_install_cmd: Cannot install package sagernet-core.
make[2]: *** [package/Makefile:70: package/install] Error 255
make[2]: Leaving directory '/home/test/lede'
make[1]: *** [package/Makefile:111: /home/test/lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/test/lede'
make: *** [/home/test/lede/include/toplevel.mk:230: world] Error 2```
这明显就是冲突嘛,不要选v2ray-core
Building targets
../../../../../dl/go-mod-cache/github.com/sagernet/sing@v0.0.0-20220606113732-5efacc1c7db5/common/metadata/addr.go:5:2: package net/netip is not in GOROOT (/home/wang1zhen/openwrt/staging_dir/hostpkg/lib/go-cross/src/net/netip)
是sagernet-core的makefile有问题吗?
go 1.18
你好,问一下该怎么解决?
我也好像这个报错
Collected errors:
* check_conflicts_for: The following packages conflict with sagernet-core:
* check_conflicts_for: v2ray-core * check_conflicts_for: xray-core *
* opkg_install_cmd: Cannot install package luci-app-ssr-plus.
* check_conflicts_for: The following packages conflict with sagernet-core:
* check_conflicts_for: v2ray-core * check_conflicts_for: xray-core *
* opkg_install_cmd: Cannot install package sagernet-core.
* resolve_conffiles: Existing conffile /home/sic/lede/build_dir/target-x86_64_musl/root-x86/etc/config/socat is different from the conffile in the new package. The new conffile will be placed at /home/sic/lede/build_dir/target-x86_64_musl/root-x86/etc/config/socat-opkg.
make[2]: *** [package/Makefile:70: package/install] Error 255
make[2]: Leaving directory '/home/sic/lede'
make[1]: *** [package/Makefile:111: /home/sic/lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/sic/lede'
make: *** [/home/sic/lede/include/toplevel.mk:230: world] Error 2
然后取消了ssr-plus的sagernet-core这项就编译成功了,就是不知道ssr-plus会有什么问题
SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了
SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了
make menuconfig时取消sagernet-core进行编译,仍然会有报错:package net/netip is not in GOROOT
,ERROR: package/feeds/kenzo/sagernet-core failed to build.
SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了
make menuconfig时取消sagernet-core进行编译,仍然会有报错:
package net/netip is not in GOROOT
,ERROR: package/feeds/kenzo/sagernet-core failed to build.
你只是取消了SSRP的那个选项,并没有取消Sagernet-core这个包,你用"/"搜一下这个包的位置,然后手动取消
SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了
make menuconfig时取消sagernet-core进行编译,仍然会有报错:
package net/netip is not in GOROOT
,ERROR: package/feeds/kenzo/sagernet-core failed to build.
你只是取消了SSRP的那个选项,并没有取消Sagernet-core这个包,你用"/"搜一下这个包的位置,然后手动取消
感谢,编译成功了。另外问一下,在取消了passwall, passwall2并且勾选了sagernet-core的基础上,编译就会产生上面的package net/netip is not in GOROOT
,是否与golang的编译环境有关?无论我是否安装golang-go
与否,都会得到相同的报错。
SSRP切换到Sagernet内核了,而且把Sagernet内核和V2ray/Xray内核做了互斥处理。 Passwall现在还是用V2ray/Xray,所以Passwall和SSRP也成了互斥了。 想要同时编译SSRP和Passwall的话,要把SSRP的Sagernet-core去掉,这样就会让SSRP使用Xray-core了
make menuconfig时取消sagernet-core进行编译,仍然会有报错:
package net/netip is not in GOROOT
,ERROR: package/feeds/kenzo/sagernet-core failed to build.
你只是取消了SSRP的那个选项,并没有取消Sagernet-core这个包,你用"/"搜一下这个包的位置,然后手动取消
🤔我的pw和酸酸乳p的luci-app都是 =m
,然后酸酸乳p选的是 Sagernet-core
,现在两个包的ipk都编译出来了,但是Sagernet-core
包报错
Building targets
../../../../../dl/go-mod-cache/github.com/sagernet/sing@v0.0.0-202207050[90](https://github.com/zhangguanzhang/Actions-OpenWrt/runs/7341742352?check_suite_focus=true#step:19:91)238-53c9f8d1374f/common/metadata/addr.go:5:2: package net/netip is not in GOROOT (/workdir/openwrt/staging_dir/hostpkg/lib/go-cross/src/net/netip)
make[2]: *** [Makefile:114: /workdir/openwrt/build_dir/target-x86_64_musl/sagernet-core-5.0.16-2022-07-06-c2f83820/.built] Error 1
make[2]: Leaving directory '/workdir/openwrt/feeds/helloworld/sagernet-core'
time: package/feeds/helloworld/sagernet-core/compile#1.30#0.65#1.49
ERROR: package/feeds/helloworld/sagernet-core failed to build.
🤣难道没有共存的ipk编译办法吗