Skip to content

windows binary dist lack vcdll, and hello world not work #2253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Apr 11, 2019 · 5 comments
Closed

windows binary dist lack vcdll, and hello world not work #2253

ghost opened this issue Apr 11, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 11, 2019

please support win32 instead of win64 only

debug.zig:184:55: error: expected type 'builtin.AtomicRmwOp', found 'builtin.AtomicRmwOp'
@emekoi
Copy link
Contributor

emekoi commented Apr 11, 2019

win32 was initially supported, but support dropped to tier 2 because of a lack of ci and other errors in the stdlib iirc.

@tgschultz
Copy link
Contributor

See: #537

@andrewrk
Copy link
Member

I would be happy to help you figure out your error, but I need more details. Feel free to provide more details and I will re-open this issue.

@ghost
Copy link

ghost commented Apr 26, 2019

I'm trying out zig 0.4.0 on 64-bit linux (artix, package details here), and am getting the same error.

$ zig init-exe
Created build.zig
Created src/main.zig

Next, try `zig build --help` or `zig build run`
$ zig build
/usr/lib/zig/std/debug.zig:184:55: error: expected type 'builtin.AtomicRmwOp', found 'builtin.AtomicRmwOp'
    if (@atomicRmw(u8, &panicking, builtin.AtomicRmwOp.Xchg, 1, builtin.AtomicOrder.SeqCst) == 1) {
                                                      ^
/usr/lib/zig/std/special/panic.zig:22:33: note: called from here
            std.debug.panicExtra(error_return_trace, first_trace_addr, "{}", msg);
                                ^
/home/<username>//.local/share/zig/stage1/builtin/IEAsAbLEYTxXMpmtN5qXr4ThVenooCaLuzEFEPTVBUGABhhzuHS5n06-UiVGB8rh/builtin.zig:188:25: note: builtin.AtomicRmwOp declared here
pub const AtomicRmwOp = enum {
                        ^
/home/<username>/.local/share/zig/stage1/builtin/IEAsAbLEYTxXMpmtN5qXr4ThVenooCaLuzEFEPTVBUGABhhzuHS5n06-UiVGB8rh/builtin.zig:188:25: note: builtin.AtomicRmwOp declared here
pub const AtomicRmwOp = enum {
                        ^

I have tried deleting ~/.local/share/zig in case it contains something from previous versions, but error persists. Please advise.

@andrewrk
Copy link
Member

It looks like a bug in the path canonicalization. /home/<username>// (extra slash) vs /home/<username>/. Fixed in 1d95fda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants