-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Wrong platform triplet for x86_64-pc-windows-gnu(x86_64-w64-mingw32) #348
Comments
Neat. Probably nobody was using it. If you get it working, can you PR a fix? There's only one or two files that do this transformation. Some of the fixes were supposed to be upstreamed to nixpkgs a while back, but it's fine to only fix it in cargo2nix. |
In fact there are two extra problems with cross-compiling to mingw-w64:
[gjz010@nixos-desktop:~/playground]$ nix-shell -p "(pkgs.overrideCC pkgs.pkgsCross.mingwW64.stdenv pkgsCross.mingwW64.buildPackages.gcc13).cc"
[nix-shell:~/playground]$ x86_64-w64-mingw32-g++ ht.cpp -static
/nix/store/w7339132hmzlmw63d7h7wm1ls23dcz8f-x86_64-w64-mingw32-binutils-2.40/bin/x86_64-w64-mingw32-ld: cannot find -lmcfgthread: No such file or directory
/nix/store/w7339132hmzlmw63d7h7wm1ls23dcz8f-x86_64-w64-mingw32-binutils-2.40/bin/x86_64-w64-mingw32-ld: cannot find -lmcfgthread: No such file or directory
collect2: error: ld returned 1 exit status
I will try to write a pull request to cover them all recently. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cargo2nix generates dependency platform target expression using LLVM triplet, while Nix compares the triplet with
hostPlatform.config
directly.Example:
An ad-hoc patch below solves the problem for mingw-w64 temporarily, but I doubt a better way is to use the translation overriding mechanism introduced by commit e87411f .
The text was updated successfully, but these errors were encountered: