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
lld-link error with Zig 0.8.0 on Windows, undefined symbols '_fseeki64' and '_ftelli64' #9402
Comments
here's some info, apparently (I haven't tested): https://github.com/kuba--/zip/issues/193#issuecomment-866678569 |
This is definitly a bug in the mingw64-distribution of zig. My minimal reproduction to come to this conclusion is:
Step 2 will compile just fine (verified with
or
#include <stdio.h>
int main(int argc, char ** argv) {
FILE * f = fopen(argv[0], "rb");
_fseeki64(f, 10, SEEK_SET);
__int64 pos = _ftelli64(f);
fclose(f);
printf("offset = %lld\n", pos);
return 0;
} This behaviour is also broken on current master ( |
The problem is that mingw64-distrbution of zig does not include mingw-w64-crt/stdio/fseeki64.c file. Implementation of _ftelli64 and _fseeki64 is there. |
I'm trying to build this library: zip and prior to 0.8.0 I had no issues, but since I get the following errors on the same system:
This is the project if its relevant: pixi
These errors happen regardless of if the project was built using
-Dtarget=native-native-msvc
or not.Any information would be amazing! Thanks
The text was updated successfully, but these errors were encountered: