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

OCaml @-Paths on latest cygwin #4061

Closed
vicuna opened this issue Jul 7, 2006 · 1 comment
Closed

OCaml @-Paths on latest cygwin #4061

vicuna opened this issue Jul 7, 2006 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 7, 2006

Original bug ID: 4061
Reporter: Christoph Bauer
Status: closed (set by @xavierleroy on 2006-07-28T08:32:08Z)
Resolution: unable to duplicate
Priority: normal
Severity: major
Version: 3.09.2
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hi,

it seems that the latest cygwin drops support for @-Paths.
Maybe it's a bug in cygwin, because i couldn't find a note about that in
the Changes. When building ocaml you see that make opt.opt fails
with link errors (stdlib.a has a size of 8 bytes).

Christoph Bauer

Additional information

From http://caml.inria.fr/pub/ml-archives/caml-list/2006/03/928bf76b5c662d3b3c4f72dae606e87f.en.html

diff -uwNr ./ocaml-3.08.4/utils/ccomp.ml ./ocaml-3.08.4
_unicode/utils/ccomp.ml
--- ./ocaml-3.08.4/utils/ccomp.ml 2005-02-02 16:39:40.000000000 +0100
+++ ./ocaml-3.08.4_unicode/utils/ccomp.ml 2005-09-08 15:46:02.000000000
+0200
@@ -42,9 +42,9 @@
let s =
String.concat " "
(List.map (fun f -> if f = "" then f else Filename.quote f) lst)
in

  • if Sys.os_type = "Win32" && String.length s >= 256
  • (*if Sys.os_type = "Win32" && String.length s >= 256
    then build_diversion lst
  • else s
  • else*) s

let compile_file name =
match Config.ccomp_type with

@vicuna
Copy link
Author

vicuna commented Jul 28, 2006

Comment author: @xavierleroy

Could not reproduce using an installation of Cygwin updated on 27/07/2006.
Will need more info to decide what to do.
Proposed patch is unsatisfactory since Windows puts strong limitations
on length of command-line (2048 chars under W2000, 8192 under XP).
Several Caml programs need longer command lines to build, e.g. Coq.

@vicuna vicuna closed this as completed Jul 28, 2006
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant