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

本地编译和云编译都失败,没有第三方插件 #44

Open
akumajac opened this issue Jan 27, 2024 · 3 comments
Open

本地编译和云编译都失败,没有第三方插件 #44

akumajac opened this issue Jan 27, 2024 · 3 comments

Comments

@akumajac
Copy link

https://github.com/akumajac/cr660x/actions/runs/7667148654/job/20896389323#step:11:2527

@akumajac
Copy link
Author

make[3]: Entering directory '/workdir/openwrt/feeds/packages/lang/luajit'
touch /workdir/openwrt/build_dir/target-mipsel_24kc_musl/LuaJIT-2.1.0-beta3/.prepared_c3a132c3a08dc28cf623e2773c83afe6_6664517399ebbbc92a37c5bb081b5c53_check
. /workdir/openwrt/include/shell.sh; gzip -dc /workdir/openwrt/dl/LuaJIT-2.1.0-beta3.tar.gz | tar -C /workdir/openwrt/build_dir/target-mipsel_24kc_musl/LuaJIT-2.1.0-beta3/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /workdir/openwrt/build_dir/target-mipsel_24kc_musl/LuaJIT-2.1.0-beta3

Applying ./patches/010-lua-path.patch using plaintext:
patching file src/luaconf.h

Applying ./patches/020-clang.patch using plaintext:
patching file src/lj_arch.h

Applying ./patches/030_fix_posix_install_with_missing_or_incompatible_ldconfig.patch using plaintext:
patching file Makefile

Applying ./patches/300-PPC-e500-with-SPE-enabled-use-soft-float.patch using plaintext:
patching file src/lj_arch.h
Hunk #1 FAILED at 256.
Hunk #2 FAILED at 264.
Hunk #3 FAILED at 442.
3 out of 3 hunks FAILED -- saving rejects to file src/lj_arch.h.rej
Patch failed! Please fix ./patches/300-PPC-e500-with-SPE-enabled-use-soft-float.patch!
make[3]: Leaving directory '/workdir/openwrt/feeds/packages/lang/luajit'
make[3]: *** [Makefile:96: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/LuaJIT-2.1.0-beta3/.prepared_c3a132c3a08dc28cf623e2773c83afe6_6664517399ebbbc92a37c5bb081b5c53] Error 1

@akumajac
Copy link
Author

查看生成的错误文件代码如下 @padavanonly
--- src/lj_arch.h
+++ src/lj_arch.h
@@ -256,7 +256,7 @@
#define LJ_ARCH_NAME "ppc"

#if !defined(LJ_ARCH_HASFPU)
-#if defined(_SOFT_FLOAT) || defined(_SOFT_DOUBLE)
+#if defined(_SOFT_FLOAT) || defined(_SOFT_DOUBLE) || defined(NO_FPRS)
#define LJ_ARCH_HASFPU 0
#else
#define LJ_ARCH_HASFPU 1
@@ -264,7 +264,7 @@
#endif

#if !defined(LJ_ABI_SOFTFP)
-#if defined(_SOFT_FLOAT) || defined(_SOFT_DOUBLE)
+#if defined(_SOFT_FLOAT) || defined(_SOFT_DOUBLE) || defined(NO_FPRS)
#define LJ_ABI_SOFTFP 1
#else
#define LJ_ABI_SOFTFP 0
@@ -442,9 +442,6 @@
#if LJ_ARCH_PPC64
#error "No support for PowerPC 64 bit mode (yet)"
#endif
-#if defined(NO_FPRS) && !defined(_SOFT_FLOAT)
-#error "No support for PPC/e500 anymore (use LuaJIT 2.0)"
-#endif
#elif LJ_TARGET_MIPS32
#if !((defined(_MIPS_SIM_ABI32) && _MIPS_SIM == _MIPS_SIM_ABI32) || (defined(_ABIO32) && _MIPS_SIM == _ABIO32))
#error "Only o32 ABI supported for MIPS32"

@akumajac
Copy link
Author

@padavanonly 大佬抽空看一下

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

1 participant