Skip to content
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

Can not resolve symbols for libcamlrun.a(floats_b.o) #139

Open
dinosaure opened this issue Mar 6, 2020 · 4 comments
Open

Can not resolve symbols for libcamlrun.a(floats_b.o) #139

dinosaure opened this issue Mar 6, 2020 · 4 comments

Comments

@dinosaure
Copy link

When I try to install ocaml-windows which wants to install ocaml-windows32 on my Ubuntu 16.04, I got all the time this error:

#=== ERROR while compiling ocaml-windows32.4.08.0 =============================#
# context     2.0.3 | linux/x86_64 |  | git://github.com/ocaml-cross/opam-cross-windows
# path        ~/.opam/4.08.0+32bit/.opam-switch/build/ocaml-windows32.4.08.0
# command     ~/.opam/4.08.0+32bit/.opam-switch/build/ocaml-windows32.4.08.0/./build.sh i686-w64-mingw32
# exit-code   2
# env-file    ~/.opam/log/ocaml-windows32-9959-a4abd5.env
# output-file ~/.opam/log/ocaml-windows32-9959-a4abd5.out
### output ###
# (echo '#define CAML_INTERNALS'; \
# [...]
#  sed -e 's/.*/	"&",/' primitives; \
#  echo '	 0 };') > prims.c
# i686-w64-mingw32-gcc -c -O2 -mms-bitfields -fno-strict-aliasing -Wall -fno-tree-vrp -g -DCAML_NAME_SPACE -DUNICODE -D_UNICODE -DWINDOWS_UNICODE=1 -DOCAML_STDLIB_DIR='L"/home/dinosaure/.opam/4.08.0+32bit/windows-sysroot/lib/ocaml"' -I/home/dinosaure/.opam/4.08.0+32bit/lib/flexdll-windows -o prims.o prims.c
# /home/dinosaure/.opam/4.08.0+32bit/lib/flexdll-windows/flexlink -chain mingw -stack 16777216 -link -static-libgcc -exe -link "-municode" -o ocamlrun.exe prims.o libcamlrun.a -lws2_32 -lversion 
# ** Cannot resolve symbols for libcamlrun.a(floats_b.o):
#  __configthreadlocale
# Makefile:279: recipe for target 'ocamlrun.exe' failed
# make[1]: *** [ocamlrun.exe] Error 2
# make[1]: Leaving directory '/home/dinosaure/.opam/4.08.0+32bit/.opam-switch/build/ocaml-windows32.4.08.0/runtime'
# Makefile:323: recipe for target 'coldstart' failed
# make: *** [coldstart] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build ocaml-windows32 4.08.0
└─ 
╶─ No changes have been performed

I don't know how to go further then. May be I missing something? I followed the README.md, note that I tried with 4.08.0+32bit and 4.08.0.

@shindere
Copy link
Contributor

shindere commented Mar 9, 2020 via email

@dinosaure
Copy link
Author

Are you perhaps missing a Windows system library?

I installed all mingw stuffs, but I don't know how to get the "Windows system library" on my Ubuntu.

@shindere
Copy link
Contributor

shindere commented Mar 9, 2020 via email

@toots
Copy link
Member

toots commented Apr 1, 2021

Hi all! The docker images we are using for the tests are based on debian distributions. Their dockerfile should provide a step-by-step example of how to install mxe. They all use this shared file: https://github.com/dockcross/dockcross/blob/master/common.windows

Then, this dockerfile provides all the step that we do on our end: https://github.com/ocaml-cross/opam-cross-windows/blob/master/tests/Dockerfile.base

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants