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

zig assumes libstdc++ is present #4682

Closed
jwh opened this issue Mar 8, 2020 · 2 comments
Closed

zig assumes libstdc++ is present #4682

jwh opened this issue Mar 8, 2020 · 2 comments
Labels
bug Observed behavior contradicts documented or intended behavior frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone

Comments

@jwh
Copy link

jwh commented Mar 8, 2020

As per https://github.com/ziglang/zig/blob/master/build.zig#L301, zig assumes libstdc++ is present which it is not on pure llvm systems, perhaps something passed down by cmake (or detected during build) is appropriate here

@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label Mar 8, 2020
@andrewrk andrewrk added this to the 0.7.0 milestone Mar 8, 2020
@andrewrk
Copy link
Member

What system is it in this case?

@andrewrk andrewrk added the frontend Tokenization, parsing, AstGen, Sema, and Liveness. label Mar 18, 2020
@andrewrk andrewrk modified the milestones: 0.7.0, 0.6.0 Mar 18, 2020
@andrewrk
Copy link
Member

Note: the answer was:

<jwh> andrewrk: its abyss in this case (experimental)
<jwh> -lc++ should be enough, clang is built with libc++ as stdlib also
<jwh> as the default rather
<andrewrk> jwh, if you don't mind, what does this command do on your system? `c++ -print-file-name=libstdc++.a`
<andrewrk> where "c++" is whatever c++ compiler you use to build zig
<jwh> abyss-amd64 [~/m/devel/llvm]# clang++ -print-file-name=libstdc++.a
<jwh> libstdc++.a
<jwh> :(
<andrewrk> that's actually the "we don't have that file" output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior frontend Tokenization, parsing, AstGen, Sema, and Liveness.
Projects
None yet
Development

No branches or pull requests

2 participants