Building Ring with Zig

49 views
Skip to first unread message

Mario H. Sabado

unread,
Sep 5, 2025, 8:51:11 PM (9 days ago) Sep 5
to The Ring Programming Language
HI Mahmoud,

I tried building Ring with Zig 0.16dev and got the following message.  Any hint what I may have missed?  

Thanks,
Mario

**************************************************************
C:\ring\language\build>buildzig

C:\ring\language\build>rem Building Ring Compiler/VM using Zig

C:\ring\language\build>rem Tested using zig-windows-x86_64-0.12.0-dev.3079+a1b083b66

C:\ring\language\build>rem Add Zig to your path, then run this batch file to build ring.exe

C:\ring\language\build>cd ..\src

C:\ring\language\src>zig cc -Ofast ring.c general.c state.c ext.c hashlib.c rhtable.c vmgc.c os_e.c rstring.c rlist.c ritem.c ritems.c scanner.c parser.c stmt.c expr.c codegen.c vm.c vmerror.c vmeval.c vmthread.c vmexpr.c vmvars.c vmlists.c vmfuncs.c ringapi.c vmoop.c  vmtry.c vmstr.c vmjump.c vmrange.c list_e.c meta_e.c vminfo_e.c vmperf.c vmexit.c vmstack.c vmstate.c genlib_e.c math_e.c file_e.c dll_e.c objfile.c -I ..\include -o ..\..\bin\ring.exe -lm
lld-link: error: No such file or directory

C:\ring\language\src>cd ..\build

C:\ring\language\build>
********************************************************************

Mahmoud Fayed

unread,
Sep 6, 2025, 12:33:55 AM (8 days ago) Sep 6
to The Ring Programming Language
Hello Mario

Thanks for the report :D

This batch file (buildzig.bat) is tested using an older version of Zig 

I confirm that using Zig 0.16 produce the reported problem that you have (lld-link: error: No such file or directory)


I just changed (-o ../../bin/ring.exe) to (-o ring.exe)
Then used (copy ring.exe ..\..\bin\ring.exe)

Greetings,
Mahmoud

Mahmoud Fayed

unread,
Sep 6, 2025, 1:12:43 AM (8 days ago) Sep 6
to The Ring Programming Language
Hello Mario


And the issue is closed after 10 minutes as duplicate with this opened one:  Unable to build Windows DLL with output path being in a subdirectory · Issue #24993 · ziglang/zig

i.e., this issue is reported in 2025.08.25 and not fixed yet.

Greetings,
Mahmoud
On Saturday, September 6, 2025 at 3:51:11 AM UTC+3 mhsa...@gmail.com wrote:

Mario H. Sabado

unread,
Sep 6, 2025, 1:26:22 AM (8 days ago) Sep 6
to Mahmoud Fayed, The Ring Programming Language
Hi Mahmoud,

ring.exe now builds successfully after your commit.  

Many thanks as always for the support.

Best regards,
Mario

--

---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/a24e14eb-45f7-49e0-8ca8-711374526c6fn%40googlegroups.com.

Mahmoud Fayed

unread,
Sep 6, 2025, 1:30:47 AM (8 days ago) Sep 6
to The Ring Programming Language
Hello Mario

You are welcome :D

Greetings,
Mahmoud

Reply all
Reply to author
Forward
0 new messages