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

Fail to build the project with zig 0.12.0 and 0.13.0 #4

Open
cseblog opened this issue Jun 19, 2024 · 1 comment
Open

Fail to build the project with zig 0.12.0 and 0.13.0 #4

cseblog opened this issue Jun 19, 2024 · 1 comment

Comments

@cseblog
Copy link

cseblog commented Jun 19, 2024

$ zig build
xxxx\build.zig:6:21: error: root struct of file 'std' has no member named 'build'
pub fn build(b: *std.build.Builder) void {
                 ~~~^~~~~~
xxx\zig\0.13.0\files\lib\std\std.zig:1:1: note: struct declared here
pub const ArrayHashMap = array_hash_map.ArrayHashMap;
^~~
referenced by:
    runBuild__anon_8955xxx\zig\0.13.0\files\lib\std\Build.zig:2115:50
    main:xxx\zig\0.13.0\files\lib\compiler\build_runner.zig:301:29
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
@coolaj86
Copy link
Contributor

coolaj86 commented Jul 19, 2024

I you install v0.10.1 and make a few modifications to bring it up from the v0.10-dev-xxxxxx it was created with, you can get a bit closer:

curl -sS https://webi.sh/[email protected] | sh
source ~/.config/envman/PATH.env
git clone https://github.com/coolaj86/positron.git
pushd ./positron/
git submodule init
git submodule update

pushd ./vendor/serve/
git switch master
sd 'addIncludeDir' 'addIncludePath' vendor/serve/build.zig
popd

zig build

PR at #5.

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