Code Monkey home page Code Monkey logo

Comments (10)

dra27 avatar dra27 commented on June 8, 2024 1

@rusty-key - no problem. I was sharing that in case you still needed to get up and running! I expect that that patch will be present in opam2 rc4 which is due out "soon".

from homebrew-ocaml.

tantignac avatar tantignac commented on June 8, 2024

Same here!

from homebrew-ocaml.

dbuenzli avatar dbuenzli commented on June 8, 2024

That looks like safe-string issue.

from homebrew-ocaml.

dbuenzli avatar dbuenzli commented on June 8, 2024

@tantignac or @rusty-key could one of you please do the install with -b -d so that we can get more details about the failure.

/cc @dra27

from homebrew-ocaml.

rusty-key avatar rusty-key commented on June 8, 2024

@dbuenzli, not sure how to extract more information. Here is a log with backtrace:
https://gist.github.com/rusty-key/cb21fe3bf07c2f331f3d243057165aa7

from homebrew-ocaml.

rusty-key avatar rusty-key commented on June 8, 2024

I tweaked formula to disalble treating warnings as errors with

# ...
ENV["OCAMLPARAM"] = "warn-error=-a,w=-3,_"
# ...

Now make produces real error:

==> make
Last 15 lines from /Users/rusty/Library/Logs/Homebrew/opam@2/03.make:
       The value `replace_seq' is required but not provided
       File "hashtbl.mli", line 345, characters 4-54: Expected declaration
       At position module Hashtbl : sig module type S = <here> end
       The value `add_seq' is required but not provided
       File "hashtbl.mli", line 342, characters 4-50: Expected declaration
       At position module Hashtbl : sig module type S = <here> end
       The value `to_seq_values' is required but not provided
       File "hashtbl.mli", line 339, characters 4-40: Expected declaration
       At position module Hashtbl : sig module type S = <here> end
       The value `to_seq_keys' is required but not provided
       File "hashtbl.mli", line 336, characters 4-38: Expected declaration
       At position module Hashtbl : sig module type S = <here> end
       The value `to_seq' is required but not provided
       File "hashtbl.mli", line 333, characters 4-41: Expected declaration
make: *** [opam.install] Error 1

Maybe this will help

from homebrew-ocaml.

dra27 avatar dra27 commented on June 8, 2024

It does - you’re building opam with OCaml 4.07.0 which clearly doesn’t work.

from homebrew-ocaml.

dra27 avatar dra27 commented on June 8, 2024

@rusty-key I believe that something like this should work:

patch do
  url "https://github.com/dra27/opam/commit/818aedbcf064bf377384b75d9fb13d521956ee45.diff"
  sha256 "02959b1e7c69517da8a69dd7bef6f70153a6b34ee156d9b56f8ac4dd5610af21"
end

from homebrew-ocaml.

rusty-key avatar rusty-key commented on June 8, 2024

@dra27, I already built opam2 from source and too afraid to try reinstalling with brew. Is there a way I can help without installing? Maybe there is a dry run?

from homebrew-ocaml.

Leonidas-from-XIV avatar Leonidas-from-XIV commented on June 8, 2024

@rusty-key Once #12 is merged you should be good to go. I tested it and it seems to build on 4.07.0 that is shipped with brew.

from homebrew-ocaml.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.