openresty / openresty/luajit2

luajit2: RISC-v Architecture not supported

Open
#252 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.4k
Forks
252
Avg merge
7d 11h
Merged PRs (30d)
3

Description

cp jsonc.so /workdir/build_dir/target-riscv64_riscv64_musl/luci-lib-jsonc/ipkg-install/usr/lib/lua/luci/jsonc.so
lj_arch.h:506:2: error: #error "No target architecture defined"

https://github.com/openwrt/packages/issues/28040

Contributor guide

No contributing guide indexed for this repository

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 OpenWrt RISC-V build shown in the report, then inspect lj_arch.h around line 506 to understand how target architectures are selected. Trace the existing architecture definitions and verify that the luajit2 build completes for target-riscv64_riscv64_musl without the “No target architecture defined” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua
Domain
compilers, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.