gildor478 / ocaml-getopt Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
This repository is deprecated in favor of https://github.com/scemama/ocaml-getopt
Getopt does not compile with ocamlc version 5.1.0. It appears to be using the deprecated function String.lowercase. Please patch this as the chase packages makes use of this library.
John
[ERROR] The compilation of getopt.20120615 failed at "ocaml setup.ml -configure
--prefix /Users/ramsdell/.opam/ocaml.5.1.0".
โ installed dune.3.6.1
#=== ERROR while compiling getopt.20120615 ====================================#
# context 2.1.3 | macos/x86_64 | ocaml.5.1.0 | https://opam.ocaml.org#d9307541
# path ~/.opam/ocaml.5.1.0/.opam-switch/build/getopt.20120615
# command ~/.opam/opam-init/hooks/sandbox.sh build ocaml setup.ml -configure --prefix /Users/ramsdell/.opam/ocaml.5.1.0
# exit-code 2
# env-file ~/.opam/log/getopt-60059-878a9e.env
# output-file ~/.opam/log/getopt-60059-878a9e.out
### output ###
# File "/home/pveber/usr/ocamlbrew/ocaml-3.12.1/build/odb/install-oasis/oasis-0.3.0~rc3/src/oasis/OASISUtils.ml", line 46, characters 20-36:
# Error: Unbound value String.lowercase
Pervasives.incr is gone. Please apply this patch.
--- ocaml-getopt/getopt.ml 2022-12-21 16:04:27.000000000 -0500
+++ chase/getopt.ml 2022-12-21 16:48:09.000000000 -0500
@@ -100,7 +100,7 @@
let append lst = Some (fun x -> lst := !lst@[x])
-let incr var = Some (fun () -> Pervasives.incr var)
+let incr var = Some (fun () -> var := succ !var)
let atmost_once var exc = Some (fun x -> if !var="" then var := x else raise exc)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.