mirror of
https://github.com/ziglang/zig.git
synced 2024-11-21 19:42:56 +00:00
Created Troubleshooting Build Issues (markdown)
parent
f458242651
commit
793e6f6a01
19
Troubleshooting-Build-Issues.md
Normal file
19
Troubleshooting-Build-Issues.md
Normal file
@ -0,0 +1,19 @@
|
||||
### Troubleshooting
|
||||
|
||||
If you get one of these:
|
||||
|
||||
```
|
||||
undefined reference to `_ZNK4llvm17SubtargetFeatures9getStringB5cxx11Ev'
|
||||
undefined reference to `llvm::SubtargetFeatures::getString() const'
|
||||
```
|
||||
|
||||
This is because of
|
||||
[C++'s Dual ABI](https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html).
|
||||
Most likely LLVM was compiled with one compiler while Zig was compiled with a
|
||||
different one, for example GCC vs clang.
|
||||
|
||||
To fix this, you have 2 options:
|
||||
|
||||
* Compile Zig with the same compiler that LLVM was compiled with.
|
||||
* Add `-DZIG_LLVM_OLD_CXX_ABI=yes` to the cmake configure line.
|
||||
|
Loading…
Reference in New Issue
Block a user