Skip to content

Zig fails to build from source on latest Debian/Ubuntu against system LLVM package #2076

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
andrewrk opened this issue Mar 19, 2019 · 1 comment
Labels
downstream An issue with a third party project that uses Zig. os-linux
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Mar 19, 2019

[ 11%] Building CXX object CMakeFiles/zig_cpp.dir/src/zig_llvm.cpp.o
/home/vsts/work/1/s/src/zig_llvm.cpp:1037:59: error: ‘KFreeBSD’ is not a member of ‘llvm::Triple’
 static_assert((Triple::OSType)ZigLLVM_KFreeBSD == Triple::KFreeBSD, "");
                                                           ^~~~~~~~

See https://dev.azure.com/ziglang/zig/_build/results?buildId=966

See #2001

This appears to be an accident in the packaging process and I have filed a Debian bug.

As a workaround, one can use http://apt.llvm.org/.

@andrewrk andrewrk added os-linux downstream An issue with a third party project that uses Zig. labels Mar 19, 2019
@andrewrk andrewrk added this to the 0.5.0 milestone Mar 19, 2019
andrewrk added a commit that referenced this issue Mar 19, 2019
@andrewrk andrewrk modified the milestones: 0.5.0, 0.6.0 Apr 30, 2019
@andrewrk
Copy link
Member Author

This is a bug in Debian, but it's unclear that they have any interest in fixing it, and we've worked around it in the Zig repository. So I'm closing the tracking issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
downstream An issue with a third party project that uses Zig. os-linux
Projects
None yet
Development

No branches or pull requests

1 participant