openwrt / openwrt/packages

BPI R4(ARM V8) in kernel 6.6.35 build ruby-3.3.3 error

Open
#24,450 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug invalid
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Describe the bug

build BPI R4(ARM V8) with master git tree https://github.com/openwrt/openwrt/commit/0ed72c271b13078d2daff45349368ed80d4a1fd5
build failed with ruby-3.3.3
log below

compiling prism/util/pm_newline_list.c
compiling prism/util/pm_state_stack.c
compiling prism/util/pm_string.c
compiling prism/util/pm_string_list.c
compiling prism/util/pm_strncasecmp.c
compiling prism/util/pm_strpbrk.c
compiling prism/prism.c
compiling prism_init.c
compiling yjit.c
building Rust YJIT (release mode)
touch yjit/target/release/libyjit.a
partial linking yjit/target/release/libyjit.a into yjit/target/release/libyjit.o
assembling coroutine/amd64/Context.S
compiling enc/ascii.c
compiling enc/us_ascii.c
compiling enc/unicode.c
compiling enc/utf_8.c
compiling enc/trans/newline.c
compiling ./missing/setproctitle.c
compiling ./missing/strlcat.c
compiling ./missing/strlcpy.c
compiling addr2line.c
compiling dmyenc.c
linking miniruby
/bin/sh ./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp
rbconfig.rb updated
generating encdb.h
encdb.h updated
generating enc.mk
making srcs under enc
make[5]: Entering directory '/LEDE/openwrt-r4/build_dir/hostpkg/ruby-3.3.3'
make[5]: Nothing to be done for 'srcs'.
make[5]: Leaving directory '/LEDE/openwrt-r4/build_dir/hostpkg/ruby-3.3.3'
generating transdb.h
transdb.h updated
compiling dln.c
compiling localeinit.c
creating verconf.h
verconf.h updated
compiling loadpath.c
builtin_binary.inc updated
e73bcc3987c9f586e5e54588cee413af188ca7cac8249fddaec25bfb123f03b6  builtin_binary.inc
compiling builtin.c
linking static-library libruby-static.a
LLVM ERROR: Invalid encoding
make[4]: *** [Makefile:318: libruby-static.a] Aborted (core dumped)
make[4]: *** Deleting file 'libruby-static.a'
make[4]: Leaving directory '/LEDE/openwrt-r4/build_dir/hostpkg/ruby-3.3.3'
make[3]: *** [Makefile:1189: /LEDE/openwrt-r4/build_dir/hostpkg/ruby-3.3.3/.built] Error 2
make[3]: Leaving directory '/LEDE/openwrt-r4/feeds/packages/lang/ruby'
time: package/feeds/packages/ruby/host-compile#148.55#12.37#138.15
    ERROR: package/feeds/packages/ruby [host] failed to build.
make[2]: *** [package/Makefile:171: package/feeds/packages/ruby/host/compile] Error 1
make[2]: Leaving directory '/LEDE/openwrt-r4'
make[1]: *** [package/Makefile:167: /LEDE/openwrt-r4/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/LEDE/openwrt-r4'
make: *** [/LEDE/openwrt-r4/include/toplevel.mk:248: world] Error 2
OpenWrt version

master

OpenWrt release

master

OpenWrt target/subtarget

master

Device

BPI R4

Image kind

Self-built image

Steps to reproduce

No response

Actual behaviour

No response

Expected behaviour

No response

Additional info

No response

Diffconfig

No response

Terms
  • I am reporting an issue for OpenWrt, not an unsupported fork.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the host build in feeds/packages/lang/ruby using the reported BPI R4 setup, then inspect build_dir/hostpkg/ruby-3.3.3 and Makefile:318 around the libruby-static.a step. The relevant failure is LLVM ERROR: Invalid encoding; done means the Ruby host package builds successfully without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.