Closed psifertex closed 2 years ago
While trying to use sudo port install semgrep:
sudo port install semgrep
:info:build [ERROR] The compilation of pfff.0.40.4 failed at "make". :info:build #=== ERROR while compiling pfff.0.40.4 ========================================# :info:build # context 2.1.2 | macos/arm64 | ocaml.4.12.1 | pinned(git+file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_semgrep/semgrep/work/semgrep-0.14.0/pfff#HEAD#c554bc0c) :info:build # path ~/.opam/default/.opam-switch/build/pfff.0.40.4 :info:build # command /usr/bin/make :info:build # exit-code 2 :info:build # env-file ~/.opam/log/pfff-69080-0c5aa6.env :info:build # output-file ~/.opam/log/pfff-69080-0c5aa6.out :info:build ### output ### :info:build # [...] :info:build # value_type :info:build # virtual_method :info:build # virtual_method_type :info:build # virtual_value :info:build # with_constraint :info:build # with_type_binder :info:build # ocamlc.opt -g -thread -w +a-4-6-7-29-41-44-45-48-52-67 -warn-error +a -bin-annot -absname -I ../../commons -I ../../external/ppx_deriving -I ../../commons_core -I ../../globals -I ../../h_program-lang -c parser_ml.ml :info:build # File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_semgrep/semgrep/work/.home/.opam/default/.opam-switch/build/pfff.0.40.4/lang_ml/parsing/parser_ml.ml", line 1: :info:build # Error: I/O error: parser_ml.ml: No such file or directory :info:build # make[2]: *** [parser_ml.cmo] Error 2 :info:build # make[1]: *** [rec] Error 1 :info:build # make: *** [all] Error 2 :info:build <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ð« :info:build ┌─ The following actions failed :info:build │ λ build pfff 0.40.4 :info:build └─ :info:build ┌─ The following changes have been performed :info:build │ ∗ install base-bytes base :info:build │ ∗ install conf-perl 2 :info:build │ ∗ install cppo 1.6.9 :info:build │ ∗ install grain_dypgen 0.2 :info:build │ ∗ install json-wheel 1.0.6+safe-string :info:build │ ∗ install menhir 20220210 :info:build │ ∗ install menhirLib 20220210 :info:build │ ∗ install menhirSdk 20220210 :info:build │ ∗ install ocaml-compiler-libs v0.12.4 :info:build │ ∗ install ocamlgraph 2.0.0 :info:build │ ∗ install ocamlnet 4.1.9-2 :info:build │ ∗ install ppx_derivers 1.2.1 :info:build │ ∗ install ppx_deriving 5.2.1 :info:build │ ∗ install ppxlib 0.27.0 :info:build │ ∗ install result 1.5 :info:build │ ∗ install sexplib0 v0.15.1 :info:build │ ∗ install uucp 14.0.0 :info:build │ ∗ install uutf 1.0.3 :info:build └─ :info:build The former state can be restored with: :info:build /opt/local/bin/opam switch import :info:build "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_semgrep/semgrep/work/.home/.opam/default/.opam-switch/backup/state-20220826204252.export" :info:build Command failed: . /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_semgrep/semgrep/work/opam.env && opam install -j 10 -y ./pfff :info:build Exit code: 31 :error:build Failed to build semgrep: command execution failed :debug:build Error code: NONE :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_semgrep/semgrep/main.log for details.
Let me know if I can provide any other information.
The macports build is ancient and probably should just be removed, I'll file this there.
While trying to use
sudo port install semgrep
: