Stream: beginners

Topic: Windows Stack Overflow


view this post on Zulip Abdulmujeeb Raji (Jan 01 2025 at 07:40):

Hi,

I wanna help contribute to the native windows side of development (maybe even make a game engine platform).

I was following the build source guide, but building with zig 0.11.0 on windows x64 gave this error when trying to build roc_bitcode_bc and roc_bitcode:
error: no field or member function named 'path' in 'Build'

I switched to zig 0.12.0 and it built correctly. But when I run roc repl, it gives this error after inputting any expression:

thread 'main' has overflowed its stack

It also did this when I tried to run roc in the www directory, so I think it has something to do with the build.
Any help?

view this post on Zulip Abdulmujeeb Raji (Jan 01 2025 at 08:03):

rebulit with zig 0.13.0, same error

view this post on Zulip Luke Boswell (Jan 01 2025 at 08:11):

I've made an (Unofficial) release of Windows here https://github.com/lukewilliamboswell/roc/releases/tag/windows-20241220

view this post on Zulip Luke Boswell (Jan 01 2025 at 08:12):

You will need to use llvm 18 & zig 0.13.0 for building now, we recently upgraded.

view this post on Zulip Luke Boswell (Jan 01 2025 at 08:12):

I thought we updated the building from source instructions...

view this post on Zulip Luke Boswell (Jan 01 2025 at 08:13):

For LLVM 18 on Windows I wasn't able to get my own working, but downloading the official Roc release from here worked for me https://github.com/roc-lang/llvm-package-windows/releases/tag/v18.1.8

view this post on Zulip Luke Boswell (Jan 01 2025 at 08:13):

I guess we built it from source to include the relevant binaries we need to build Roc from source

view this post on Zulip Luke Boswell (Jan 01 2025 at 08:14):

maybe even make a game engine platform

You're welcome to checkout https://github.com/lukewilliamboswell/roc-ray

view this post on Zulip Luke Boswell (Jan 01 2025 at 08:15):

We have Windows support and it's working well... though it's fairly new and just me and @Dan G Knutson hacking on it. But if we get more people actively contributing there's so many more nice features we can build in.

view this post on Zulip Luke Boswell (Jan 01 2025 at 08:17):

rebulit with zig 0.13.0, same error
error: no field or member function named 'path' in 'Build'

This error ^^ is from trying to compile the build.zig. There were breaking changes from 0.11.0 -> 0.13.0. So you need to use 0.13.0 with current main.

view this post on Zulip Luke Boswell (Jan 01 2025 at 08:18):

I wanna help contribute to the native windows side of development

Also... welcome :wave:

Let us know if you need any assistance :smiley:

view this post on Zulip Abdulmujeeb Raji (Jan 01 2025 at 08:21):

thanks for the help :+1:


Last updated: Jul 05 2025 at 12:14 UTC