King-Of-Knights / openwrt-6.x

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
110 stars 78 forks source link

ERROR: package/feeds/packages/ruby [host] failed to build. #15

Open Dr-chen99 opened 2 months ago

Dr-chen99 commented 2 months ago

file2lastrev.rb: does not seem to be under a vcs: . BASERUBY = /usr/bin/ruby --disable=gems CC = /media/ta/Ext4/openwrt-6.x/staging_dir/host/bin/gcc LD = ld LDSHARED = /media/ta/Ext4/openwrt-6.x/staging_dir/host/bin/gcc -shared CFLAGS = -O2 -I/media/ta/Ext4/openwrt-6.x/staging_dir/host/include -I/media/ta/Ext4/openwrt-6.x/staging_dir/hostpkg/include -I/media/ta/Ext4/openwrt-6.x/staging_dir/target-aarch64_cortex-a53_musl/host/include XCFLAGS = -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x86_64-linux-gnu -I./include -I. -I./prism -I./enc/unicode/15.0.0
CPPFLAGS = -I/media/ta/Ext4/openwrt-6.x/staging_dir/host/include -I/media/ta/Ext4/openwrt-6.x/staging_dir/hostpkg/include -I/media/ta/Ext4/openwrt-6.x/staging_dir/target-aarch64_cortex-a53_musl/host/include
DLDFLAGS = -L/media/ta/Ext4/openwrt-6.x/staging_dir/host/lib -L/media/ta/Ext4/openwrt-6.x/staging_dir/hostpkg/lib -L/media/ta/Ext4/openwrt-6.x/staging_dir/target-aarch64_cortex-a53_musl/host/lib -Wl,--compress-debug-sections=zlib -fstack-protector-strong
SOLIBS = -lz -lrt -lrt -ldl -lcrypt -lm -lpthread LANG = C LC_ALL = C LC_CTYPE = MFLAGS = -w -j1 RUSTC = rustc YJIT_RUSTC_ARGS = --crate-name=yjit --crate-type=staticlib --edition=2021 -g -C lto=thin -C opt-level=3 -C overflow-checks=on '--out-dir=/media/ta/Ext4/openwrt-6.x/build_dir/hostpkg/ruby-3.3.4/yjit/target/release/' ./yjit/src/lib.rs gcc (Debian 10.2.1-6) 10.2.1 20210110 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

revision.h unchanged generating x86_64-linux-gnu-fake.rb x86_64-linux-gnu-fake.rb updated generating enc.mk making srcs under enc make[5]: Entering directory '/media/ta/Ext4/openwrt-6.x/build_dir/hostpkg/ruby-3.3.4' make[5]: Nothing to be done for 'srcs'. make[5]: Leaving directory '/media/ta/Ext4/openwrt-6.x/build_dir/hostpkg/ruby-3.3.4' generating transdb.h transdb.h unchanged linking static-library libruby-static.a LLVM ERROR: Invalid encoding make[4]: [Makefile:318: libruby-static.a] Aborted make[4]: Deleting file 'libruby-static.a' make[4]: Leaving directory '/media/ta/Ext4/openwrt-6.x/build_dir/hostpkg/ruby-3.3.4' make[3]: [Makefile:1189: /media/ta/Ext4/openwrt-6.x/build_dir/hostpkg/ruby-3.3.4/.built] Error 2 make[3]: Leaving directory '/media/ta/Ext4/openwrt-6.x/feeds/packages/lang/ruby' time: package/feeds/packages/ruby/host-compile#1.26#0.25#1.44 ERROR: package/feeds/packages/ruby [host] failed to build. make[2]: [package/Makefile:175: package/feeds/packages/ruby/host/compile] Error 1 make[2]: Leaving directory '/media/ta/Ext4/openwrt-6.x' make[1]: [package/Makefile:171: /media/ta/Ext4/openwrt-6.x/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/media/ta/Ext4/openwrt-6.x' make: [/media/ta/Ext4/openwrt-6.x/include/toplevel.mk:248:world]

King-Of-Knights commented 2 months ago

检查一下内核版本版本吧,参考https://github.com/openwrt/packages/issues/24450#issuecomment-2190959741

另外,看起来似乎你编译的是x86版本?本项目主要用于IPQ6000系列

Dr-chen99 commented 2 months ago

查看一下内核版本版本吧,参考openwrt/packages#24450(评论)

另外,看起来你编译的是x86版本?本项目主要用于IPQ6000系列 不是x86 是IPQ之类路由器,一个opclsh引起这个