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

Opam for windows: Error when running make lib-pkg #5859

Open
Chimrod opened this issue Feb 28, 2024 · 1 comment
Open

Opam for windows: Error when running make lib-pkg #5859

Chimrod opened this issue Feb 28, 2024 · 1 comment

Comments

@Chimrod
Copy link

Chimrod commented Feb 28, 2024

I’m trying to compile opam by my own. I’ve successfully compiled the compiler, and I want to apply the next step.

$ make lib-pkg
make -j -C src_ext lib-pkg
make[1]: Entering directory '/home/opam/src_ext'
mkdir -p tmp-dune-local
mkdir -p tmp-findlib
cd tmp-dune-local && tar xfj ../dune-local.tbz
cd tmp-findlib && tar xfz ../findlib.tar.gz
mkdir -p tmp-ocamlbuild
mkdir -p tmp-topkg
cd tmp-ocamlbuild && tar xfz ../ocamlbuild.tar.gz
cd tmp-topkg && tar xfj ../topkg.tbz
rm -rf topkg
rm -rf findlib
rm -rf ocamlbuild
make MAKEFLAGS= -f ../Makefile.packages -C topkg topkg-pkg-build && touch topkg.pkgbuild
make[2]: Entering directory '/home/opam/src_ext/topkg'
ocaml pkg/pkg.ml build --pkg-name topkg --dev-pkg false
mkdir 'C:\cygwin64\home\opam\src_ext\topkg\_build'
rm -rf dune-local
Le chemin d’accès spécifié est introuvable.
mkdir pkg
mkdir src
''ocamlfind ocamldep -modules src/topkg.ml > src/topkg.ml.depends
''ocamlfind ocamldep -modules src/topkg.mli > src/topkg.mli.depends
''ocamlfind ocamlc -c -g -bin-annot -safe-string -I src -I test -I src-care -I src-bin -o src/topkg.cmi src/topkg.mli
Exit code 126 while executing this command:
  ''ocamlfind ocamlc -c -g -bin-annot -safe-string -I src -I test -I src-care -I src-bin -o src/topkg.cmi src/topkg.mli
pkg.ml: [ERROR] cmd ["ocamlbuild" "-use-ocamlfind" "-classic-display" "-j" "4" "-tag" "debug"
     "-build-dir" "_build" "CHANGES.md" "LICENSE.md" "README.md" "pkg/META"
     "topkg.opam" "src/topkg.a" "src/topkg.cmxs" "src/topkg.cmxa"
     "src/topkg.cma" "src/topkg_vcs.cmx" "src/topkg_test.cmx"
     "src/topkg_string.cmx" "src/topkg_result.cmx" "src/topkg_publish.cmx"
     "src/topkg_pkg.cmx" "src/topkg_os.cmx" "src/topkg_opam.cmx"
     "src/topkg_main.cmx" "src/topkg_log.cmx" "src/topkg_ipc.cmx"
     "src/topkg_install.cmx" "src/topkg_fpath.cmx" "src/topkg_fexts.cmx"
     "src/topkg_distrib.cmx" "src/topkg_conf.cmx" "src/topkg_codec.cmx"
     "src/topkg_cmd.cmx" "src/topkg_build.cmx" "src/topkg.cmx"
     "src/topkg.cmi" "src/topkg.mli"]: exited with 126
make[2]: *** [../Makefile.packages:102: topkg-pkg-build] Error 1
make[2]: Leaving directory '/home/opam/src_ext/topkg'
make[1]: *** [Makefile:125: topkg.pkgbuild] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/opam/src_ext'
make: *** [Makefile:85: lib-pkg] Error 2

What’s surprising is the error message in french (my windows is localized in french), even if I try to execute the command with LANG=C make lib-pkg

env.log

@kit-ty-kate
Copy link
Member

While it is in the README (sorry about that), I would not recommend using make lib-pkg as it is currently untested. There is a PR to remove it at #5494.

Instead I would suggest using ./configure --with-vendored-deps or the more general make cold if you do not already have the compiler.

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

No branches or pull requests

2 participants