Skip to content
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

Fails to compile with stage2 zig compiler #1

Open
cubranic opened this issue Nov 6, 2018 · 3 comments
Open

Fails to compile with stage2 zig compiler #1

cubranic opened this issue Nov 6, 2018 · 3 comments

Comments

@cubranic
Copy link

cubranic commented Nov 6, 2018

Zig stage2 built from HEAD fails with the following error:

~/HellOS$ ../zig/build/stage2/bin/zig  build-exe hellos.zig --target-os freestanding --target-arch i386 --static  --linker-script linker.ld
Build 1 compile errors:
hellos.zig:14:31: error: Expected '=' or ';', found Keyword_section
export var multiboot align(4) section(".multiboot") = MultiBoot.{
                              ~~~~~~~
@andrewrk
Copy link
Owner

andrewrk commented Nov 6, 2018

This is ziglang/zig#1152

But in general, stage2 is far from complete. See this section from the readme:

Note: Stage 2 compiler is not complete. Beta users of Zig should use the Stage 1 compiler for now.

@cubranic
Copy link
Author

cubranic commented Nov 6, 2018

Ah, thanks, I don't know how I missed that part of Zig readme. So, close this bug?

@andrewrk
Copy link
Owner

andrewrk commented Nov 6, 2018

Well, it's not wrong :)
Maybe I'll leave it up as motivation to get stage2 far enough to be able to build this.

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

2 participants