natecraddock / natecraddock/ziglua

Cannot compiler on Loongarch architecture!

Open
#214 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Zig
Stars
522
Forks
72
Avg merge
10d 6h
Merged PRs (30d)
1

Description

Hello, I'm Chinese developer, I like your library!
I bought a Loongarch64 3A6000 by loongnix operating system laptop to developer my software..
but it's wrong..

I use zig build to build my application, but it show me some error:

xphost@MBXphost:~/Workspace/ZigWork/RenRsCompiler$ zig build
install
└─ install rrc
   └─ compile exe rrc Debug native
      └─ translate-c failure
error: the following command terminated unexpectedly:
/home/xphost/D_Driver/Languages/zig/zig translate-c -lc --cache-dir .zig-cache --global-cache-dir /home/xphost/.cache/zig --listen=- -I .zig-cache/o/53ed955ced3c0fd35a0b9feb57db3332 /home/xphost/.cache/zig/p/zlua-0.1.0-hGRpCww-BQCx3cX6zbKWfTgOx6B7Peo4P17RK2hm7-xV/build/include/lua_all.h

Build Summary: 4/8 steps succeeded; 1 failed
install transitive failure
└─ install rrc transitive failure
   └─ compile exe rrc Debug native transitive failure
      └─ translate-c failure

error: the following build command failed with exit code 1:
.zig-cache/o/787c66804256c83087549d5f3c249d46/build /home/xphost/D_Driver/Languages/zig/zig /home/xphost/D_Driver/Languages/zig/lib /home/xphost/D_Driver/Workspace/ZigWork/RenRsCompiler .zig-cache /home/xphost/.cache/zig --seed 0xb2ccae39 -Z67dadc5568dca1ed

Please help me to solve it, I'm really like your library!

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

Start by reproducing the failure with zig build on the reported Loongarch64 system and inspect the translate-c step involving build/include/lua_all.h. Determine why translating the Lua header terminates unexpectedly on that architecture; done means the reported application builds successfully there without the translate-c failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.