janestreet / core_kernel

Jane Street's standard library overlay (kernel)
MIT License
219 stars 63 forks source link

Pattern matching error at old version. #106

Closed laurent01-sw closed 2 years ago

laurent01-sw commented 2 years ago

Hi, I need to build the version tagged by "111.25.00". However, after type make, following error is occurred.

File "setup_dev.ml", line 8, characters 8-21: Error: This pattern matches values of type 'a * 'b * 'c but a pattern was expected which matches values of type OASISTypes.common_section * OASISTypes.build_section * OASISTypes.library * OASISTypes.unix_dirname option

Here is my environment. OS : Ubuntu 14.04 Ocaml Compiler Version : 4.02.0 OPAM Version : 1.2.0 (Repository seems to be redirected to 1.2.2)

I'm sorry to ask question about old version. Forgive me please. Thanks.

bcc32 commented 2 years ago

Can you try an older version of oasis? It appears that this commit changed the type of the lib_hook function, which is used in setup.ml. The change appears in oasis-0.4.7, so oasis-0.4.6 or older should fix this particular error.

laurent01-sw commented 2 years ago

It works! Thanks!