找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2085|回复: 15

用lean大佬源码编译R2S版本的openwrt,总是报错,求大神解答。

[复制链接]
在编译的时候,除了passwall以外的其他选项都一致,是可以编译成功的;但凡加上passwall就报错。我用的config地址如下:

src-git kenzo https://github.com/kenzok8/openwrt-packages
src-git small https://github.com/kenzok8/small

用的谷歌云的VPS环境编译的。很多次了,都出错!之前用windows自带的ubuntu编译不行,用windows hyper-v虚拟机安装ubuntu且安装全局富强也失败。
不知道问题出在哪里??求大神解惑!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
有大佬吗?自己顶一下,求解答!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

用make -j1 V=99编译,等报错然后发最后的报错日志

点评

老兄,按你说的那个编译了下,您给看看是什么问题  详情 回复 发表于 2022-6-9 12:25
ninja: Entering directory `/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0' [1/299] Building C object library/CMakeFiles/mbedcrypto_static.dir/armv8ce_aes.c.o FAILED:  详情 回复 发表于 2022-6-9 12:24
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
zheshifandian 发表于 2022-6-9 09:51
用make -j1 V=99编译,等报错然后发最后的报错日志

ninja: Entering directory `/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0'
[1/299] Building C object library/CMakeFiles/mbedcrypto_static.dir/armv8ce_aes.c.o
FAILED: library/CMakeFiles/mbedcrypto_static.dir/armv8ce_aes.c.o
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/bin/aarch64-openwrt-linux-musl-gcc  -I/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/include -I/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0=mbedtls-2.28.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -Wall -Wextra -Wwrite-strings -Wformat=2 -Wno-format-nonliteral -Wvla -Wlogical-op -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Werror -Wmissing-declarations -Wmissing-prototypes -O2 -MD -MT library/CMakeFiles/mbedcrypto_static.dir/armv8ce_aes.c.o -MF library/CMakeFiles/mbedcrypto_static.dir/armv8ce_aes.c.o.d -o library/CMakeFiles/mbedcrypto_static.dir/armv8ce_aes.c.o -c /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c: In function 'mbedtls_armv8ce_aes_crypt_ecb':
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12440:1: error: inlining failed in call to always_inline 'vaesmcq_u8': target specific option mismatch
vaesmcq_u8 (uint8x16_t data)
^~~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:62:17: note: called from here
             x = vaesmcq_u8( x );
                 ^~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12426:1: error: inlining failed in call to always_inline 'vaeseq_u8': target specific option mismatch
vaeseq_u8 (uint8x16_t data, uint8x16_t key)
^~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:61:17: note: called from here
             x = vaeseq_u8( x, k );
                 ^~~~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12440:1: error: inlining failed in call to always_inline 'vaesmcq_u8': target specific option mismatch
vaesmcq_u8 (uint8x16_t data)
^~~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:62:17: note: called from here
             x = vaesmcq_u8( x );
                 ^~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12426:1: error: inlining failed in call to always_inline 'vaeseq_u8': target specific option mismatch
vaeseq_u8 (uint8x16_t data, uint8x16_t key)
^~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:61:17: note: called from here
             x = vaeseq_u8( x, k );
                 ^~~~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12426:1: error: inlining failed in call to always_inline 'vaeseq_u8': target specific option mismatch
vaeseq_u8 (uint8x16_t data, uint8x16_t key)
^~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:66:13: note: called from here
         x = vaeseq_u8( x, k );
             ^~~~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12426:1: error: inlining failed in call to always_inline 'vaeseq_u8': target specific option mismatch
vaeseq_u8 (uint8x16_t data, uint8x16_t key)
^~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:66:13: note: called from here
         x = vaeseq_u8( x, k );
             ^~~~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12447:1: error: inlining failed in call to always_inline 'vaesimcq_u8': target specific option mismatch
vaesimcq_u8 (uint8x16_t data)
^~~~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:75:17: note: called from here
             x = vaesimcq_u8( x );
                 ^~~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12433:1: error: inlining failed in call to always_inline 'vaesdq_u8': target specific option mismatch
vaesdq_u8 (uint8x16_t data, uint8x16_t key)
^~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:74:17: note: called from here
             x = vaesdq_u8( x, k );
                 ^~~~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12447:1: error: inlining failed in call to always_inline 'vaesimcq_u8': target specific option mismatch
vaesimcq_u8 (uint8x16_t data)
^~~~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:75:17: note: called from here
             x = vaesimcq_u8( x );
                 ^~~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12433:1: error: inlining failed in call to always_inline 'vaesdq_u8': target specific option mismatch
vaesdq_u8 (uint8x16_t data, uint8x16_t key)
^~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:74:17: note: called from here
             x = vaesdq_u8( x, k );
                 ^~~~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12433:1: error: inlining failed in call to always_inline 'vaesdq_u8': target specific option mismatch
vaesdq_u8 (uint8x16_t data, uint8x16_t key)
^~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:79:13: note: called from here
         x = vaesdq_u8( x, k );
             ^~~~~~~~~~~~~~~~~
In file included from /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:30:
/home/liyaoniuniu0419/lede/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/lib/gcc/aarch64-openwrt-linux-musl/8.4.0/include/arm_neon.h:12433:1: error: inlining failed in call to always_inline 'vaesdq_u8': target specific option mismatch
vaesdq_u8 (uint8x16_t data, uint8x16_t key)
^~~~~~~~~
/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/library/armv8ce_aes.c:79:13: note: called from here
         x = vaesdq_u8( x, k );
             ^~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile:179: /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/mbedtls-2.28.0/.built] Error 1
make[3]: Leaving directory '/home/liyaoniuniu0419/lede/package/libs/mbedtls'
time: package/libs/mbedtls/compile#0.36#0.12#0.43
    ERROR: package/libs/mbedtls failed to build.
make[2]: *** [package/Makefile:116: package/libs/mbedtls/compile] Error 1
make[2]: Leaving directory '/home/liyaoniuniu0419/lede'
make[1]: *** [package/Makefile:110: /home/liyaoniuniu0419/lede/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/liyaoniuniu0419/lede'
make: *** [/home/liyaoniuniu0419/lede/include/toplevel.mk:230: world] Error 2
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
zheshifandian 发表于 2022-6-9 09:51
用make -j1 V=99编译,等报错然后发最后的报错日志

老兄,按你说的那个编译了下,您给看看是什么问题

点评

看楼下回复  详情 回复 发表于 2022-6-9 15:56
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

关了 Libraries->SSL->libmbedtls->Enable use of the ARMv8 Crypto Extensions

参考:https://www.right.com.cn/forum/thread-7354610-1-1.html

点评

好像还是不行,按这个路径进来,libmbedtls选中*,Enable use of the ARMv8 Crypto Extensions去掉*;libmbedtls取消*,Enable use of the ARMv8 Crypto Extensions去掉*;libmbedtls选中*,Enable use of the ARMv8  详情 回复 发表于 2022-6-9 20:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

xiaoyaozhilv 发表于 2022-6-9 12:25
老兄,按你说的那个编译了下,您给看看是什么问题

看楼下回复

点评

Collected errors: * check_conflicts_for: The following packages conflict with sagernet-core: * check_conflicts_for: “师夷长技以制夷”-core * check_conflicts_for: xray-core * * op  详情 回复 发表于 2022-6-9 20:34
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
Hanye 发表于 2022-6-9 15:44
关了 Libraries->SSL->libmbedtls->Enable use of the ARMv8 Crypto Extensions

参考:https://www.righ ...

好像还是不行,按这个路径进来,libmbedtls选中*,Enable use of the ARMv8 Crypto Extensions去掉*;libmbedtls取消*,Enable use of the ARMv8 Crypto Extensions去掉*;libmbedtls选中*,Enable use of the ARMv8 Crypto Extensions选中*;这几种都试验过,还是错误,只要一加“师夷长技以制夷”就错。

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层

Collected errors:
* check_conflicts_for: The following packages conflict with sagernet-core:
* check_conflicts_for:         “师夷长技以制夷”-core * check_conflicts_for:       xray-core *
* opkg_install_cmd: Cannot install package luci-app-“师夷长技以制夷”-plus.
* check_conflicts_for: The following packages conflict with sagernet-core:
* check_conflicts_for:         “师夷长技以制夷”-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/liyaoniuniu0419/lede'
make[1]: *** [package/Makefile:111: /home/liyaoniuniu0419/lede/staging_dir/target-aarch64_generic_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/liyaoniuniu0419/lede'
make: *** [/home/liyaoniuniu0419/lede/include/toplevel.mk:230: world] Error 2

点评

“师夷长技以制夷”p的xray跟sagernet-core冲突,把xray取消勾选就行了  详情 回复 发表于 2022-6-9 21:13
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

xiaoyaozhilv 发表于 2022-6-9 20:34
Collected errors:
* check_conflicts_for: The following packages conflict with sagernet-core:
* ...

“师夷长技以制夷”p的xray跟sagernet-core冲突,把xray取消勾选就行了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

xiaoyaozhilv 发表于 2022-6-9 20:34
Collected errors:
* check_conflicts_for: The following packages conflict with sagernet-core:
* ...

错误不是不一样了么

点评

还是有错误,debian系统,谷歌云编译又重新创建了一个实例重新操作的,只要一选“师夷长技以制夷”就出错。您说的那个 Libraries->SSL->libmbedtls->到这一步的时候我是敲了个空格,出现X以后,下面那个Enable use o  详情 回复 发表于 2022-6-11 11:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
Hanye 发表于 2022-6-9 22:00
错误不是不一样了么

还是有错误,debian系统,谷歌云编译又重新创建了一个实例重新操作的,只要一选“师夷长技以制夷”就出错。您说的那个 Libraries->SSL->libmbedtls->到这一步的时候我是敲了个空格,出现X以后,下面那个Enable use of the ARMv8 Crypto Extensions的*号去掉了。


Pseudo file "/dev" exists in source filesystem "/home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/root-rockchip/dev".
Ignoring, exclude it (-e/-ef) to override.
error: ext4_allocate_best_fit_partial: failed to allocate 4 blocks, out of space?
make[5]: *** [/home/liyaoniuniu0419/lede/include/image.mk:336: /home/liyaoniuniu0419/lede/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/root.ext4] Error 1
make[5]: *** Waiting for unfinished jobs....
[============================================================================================-] 2926/2926 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 1048576
        compressed data, compressed metadata, compressed fragments,
        no xattrs, compressed ids
        duplicates are removed
Filesystem size 43843.44 Kbytes (42.82 Mbytes)
        27.28% of uncompressed filesystem size (160716.54 Kbytes)
Inode table size 24978 bytes (24.39 Kbytes)
        20.99% of uncompressed inode table size (118983 bytes)
Directory table size 34830 bytes (34.01 Kbytes)
        41.89% of uncompressed directory table size (83138 bytes)
Number of duplicate files found 425
Number of inodes 3542
Number of files 2835
Number of fragments 43
Number of symbolic links  422
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 284
Number of ids (unique uids + gids) 1
Number of uids 1
        root (0)
Number of gids 1
        root (0)
make[5]: Leaving directory '/home/liyaoniuniu0419/lede/target/linux/rockchip/image'
make[4]: *** [Makefile:25: install] Error 2
make[4]: Leaving directory '/home/liyaoniuniu0419/lede/target/linux/rockchip'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/liyaoniuniu0419/lede/target/linux'
time: target/linux/install#97.67#4.62#22.78
    ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:25: target/linux/install] Error 1
make[2]: Leaving directory '/home/liyaoniuniu0419/lede'
make[1]: *** [target/Makefile:19: /home/liyaoniuniu0419/lede/staging_dir/target-aarch64_generic_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/liyaoniuniu0419/lede'
make: *** [/home/liyaoniuniu0419/lede/include/toplevel.mk:230: world] Error 2
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

xiaoyaozhilv 发表于 2022-6-11 11:06
还是有错误,debian系统,谷歌云编译又重新创建了一个实例重新操作的,只要一选“师夷长技以制夷”就出错 ...

是你固件太大了,无法生成,比如你定义32M的固件大小,你叫它生成一个50M的,你觉得可能么,取消点软件,精简下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

xiaoyaozhilv 发表于 2022-6-11 11:06
还是有错误,debian系统,谷歌云编译又重新创建了一个实例重新操作的,只要一选“师夷长技以制夷”就出错 ...

要不就是你磁盘空间不够,用-j1才能看到具体错误,不要多线程编译

点评

没有多线程编译,我编译的就是超级精简的,空间应该没问题,选的同样的固件,之前X86的都能成功。 我刚才试了试另外一个兄弟说的,把某个软件里面的Xray去掉了编译,好像是成功了。。真是折腾死!!  详情 回复 发表于 2022-6-11 11:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
Hanye 发表于 2022-6-11 11:15
要不就是你磁盘空间不够,用-j1才能看到具体错误,不要多线程编译

没有多线程编译,我编译的就是超级精简的,空间应该没问题,选的同样的固件,之前X86的都能成功。  我刚才试了试另外一个兄弟说的,把某个软件里面的Xray去掉了编译,好像是成功了。。真是折腾死!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 08:46

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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