https://github.com/jarred-sumner/zig-ld-bug
https://github.com/jarred-sumner/zig-ld-bug
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jarred-sumner/zig-ld-bug
- Owner: Jarred-Sumner
- Created: 2021-10-12T09:13:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T09:19:46.000Z (over 3 years ago)
- Last Synced: 2025-02-23T08:12:04.766Z (4 months ago)
- Language: Zig
- Size: 2.18 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zig ld bug repro
zig version: 0.9.0-dev.902+5eb4f3459 (Aug 24)
Compiling with Clang works, but zig ld does not for this library
```bash
error(link): undefined reference to symbol ''
error(link): first referenced in '/Users/jarred/Build/zig-ld-bug/zig-cache/o/c52829028565f17f9f891944f4f5646c/main.o'
error(link): undefined reference to symbol ''
error(link): first referenced in '/Users/jarred/Build/zig-ld-bug/zig-cache/o/c52829028565f17f9f891944f4f5646c/main.o'
error(link): undefined reference to symbol ''
error(link): first referenced in '/Users/jarred/Build/zig-ld-bug/zig-cache/o/c52829028565f17f9f891944f4f5646c/main.o'
error: UndefinedSymbolReference
```To repro with zig ld:
```bash
make with-zig-ld
```To repro with clang:
```bash
make with-clang
```This happens when s2n-tls and libcrypto are included
- [s2n-tls](https://github.com/aws/s2n-tls)
- libcrypto from OpenSSL