Giter VIP home page Giter VIP logo

Comments (3)

toots avatar toots commented on June 12, 2024

Thanks for the report! dune-windows is only required if you need any of the dune libraries. For building and such, you only need the native host dune.

That being said, something is wrong with the cross-compilation configuration. Could you describe what system you are building on and how you installed mingw-w64? Thanks!

from opam-cross-windows.

maroneze avatar maroneze commented on June 12, 2024

Oh, I hadn't even realized that it would use a cross-compiler already installed in my system, I thought it would install everything by itself!

I'm using Fedora 38, I installed mingw64 a while ago using Fedora's dnf (I have several mingw64-* dnf packages installed). For completeness, here's the final part of opam's log, indicating the issue are the chk functions:

** Cannot resolve symbols for /usr/x86_64-w64-mingw32/sys-root/mingw/lib/libws2_32.a(lib64_libws2_32_a-WspiapiLegacyGetNameInfo.o/
lib64_libws2_32_a-WspiapiLoad.o/
lib64_libws2_32_a-WspiapiGetAddrInfo.o/
lib64_libws2_32_a-WspiapiGetNameInfo.o/
lib64_libws2_32_a-WspiapiFreeAddrInfo.o/

):
 __chk_fail
** Cannot resolve symbols for /usr/x86_64-w64-mingw32/sys-root/mingw/lib/libws2_32.a(lib64_libws2_32_a-WspiapiLoad.o/
lib64_libws2_32_a-WspiapiGetAddrInfo.o/
lib64_libws2_32_a-WspiapiGetNameInfo.o/
lib64_libws2_32_a-WspiapiFreeAddrInfo.o/

):
 __strcat_chk
 __strcpy_chk

There are newer mingw64 packages in Fedora 39 and 40 (mine is mingw64-crt-10.0.0-4.fc38.noarch; there are mingw64-crt-11.0.0-2.fc39.noarch and mingw64-crt-11.0.1-3.fc40.noarch), so probably upgrading it could fix the issue.

I don't know when I'll have time to upgrade it, though, so in the meanwhile it might be better to close this issue, and I'll reopen if it still happens with a newer mingw64 (and if I do need dune-windows).

from opam-cross-windows.

toots avatar toots commented on June 12, 2024

Ok!

from opam-cross-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.