ocaml / ocaml/flexdll

Cannot resolve symbols for swscanf

Open
#137 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
OCaml
Stars
115
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Using https://github.com/ocaml/setup-ocaml/pull/794

#=== ERROR while compiling dune.3.15.2 ========================================#
# context     2.2.0~beta2 | win32/x86_64 | ocaml-base-compiler.4.14.2 | git+https://github.com/dra27/opam-repository.git#windows-initial
# path        D:\a\mirage-torrent\mirage-torrent\_opam\.opam-switch\build\dune.3.15.2
# command     D:\a\mirage-torrent\mirage-torrent\_opam\bin\ocaml.exe boot/bootstrap.ml -j 4
# exit-code   2
# env-file    D:\.opam\log\dune-8180-dff03d.env
# output-file D:\.opam\log\dune-8180-dff03d.out
### output ###
# ocamlc -output-complete-exe -w -24 -g -o .duneboot.exe -I boot unix.cma boot/libs.ml boot/duneboot.ml
# ** Cannot resolve symbols for D:/a/mirage-torrent/mirage-torrent/_opam/lib/ocaml\libcamlrun.a(startup_aux.b.o):
#  swscanf
# ** Cannot resolve symbols for descriptor object:
#  _vscwprintf
# File "boot/duneboot.ml", line 1:
# Error: Error while building custom runtime system

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing setup-ocaml pull request 794 and the failing Dune bootstrap command in boot/bootstrap.ml on Windows. Investigate how flexdll handles the unresolved swscanf and _vscwprintf symbols, then verify that the Dune custom runtime builds successfully in the reported OCaml and Windows environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.