Comments (3)
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.
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.
Ok!
from opam-cross-windows.
Related Issues (20)
- Cross-compiler has `ocamlc -config-var os_type` = `"%%OCAML_OS_TYPE%%"`
- Can not resolve symbols for libcamlrun.a(floats_b.o) HOT 4
- Sys.win32 reporting false on 32bit cross-compiler HOT 3
- Building fails due to fno-common being the default in recent versions of gcc HOT 3
- `opam install ocaml-windows` fails with compilation error for `ocaml-windows64` HOT 4
- Supporting ocaml 4.12 HOT 11
- Graphics HOT 4
- Error on building ocaml-windows HOT 5
- Error while compiling HOT 4
- ocamlfind: [WARNING] Undefined toolchain: windows
- ppx_tools_versioned-windows is broken with 4.12.0 HOT 7
- adding repository to opam HOT 1
- flexdll.h not found error when running "ocaml install ocaml-windows" HOT 13
- OCaml-windows 4.12.0 no longer builds HOT 2
- Ocaml 5 support HOT 4
- uutf-windows
- Packaging library with 3rd party dependencies HOT 1
- Cannot install `ocaml-windows` 5.1.1 HOT 6
- Zmq-windows version too old HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opam-cross-windows.