caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* MinGW release running out of command line before passing to GCC?
@ 2006-03-06  0:44 Jeremy Shute
  2006-03-06 10:48 ` [Caml-list] " Xavier Leroy
  2006-03-16 12:43 ` spiralvoice
  0 siblings, 2 replies; 3+ messages in thread
From: Jeremy Shute @ 2006-03-06  0:44 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

Hi,

I'm running 3.09 MinGW.  When trying to compile like this...

ocamlopt.opt -warn-error A -I . -o A.opt unix.cmxa str.cmxa nums.cmxa
libB.cmxa A.cmx

...I get this error...

gcc: @F:\DOCUME~1\user\LOCALS~1\Temp\camlresp33a735: Invalid argument
Error during linking

When I fiddle around with it, I discover that the problems come when I add
another object to be linked.  This can be either my own binary or one of the
Caml included libraries.

Can anyone explain why this might be, and what I can do to remedy it?

Jeremy

[-- Attachment #2: Type: text/html, Size: 1108 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] MinGW release running out of command line before passing to GCC?
  2006-03-06  0:44 MinGW release running out of command line before passing to GCC? Jeremy Shute
@ 2006-03-06 10:48 ` Xavier Leroy
  2006-03-16 12:43 ` spiralvoice
  1 sibling, 0 replies; 3+ messages in thread
From: Xavier Leroy @ 2006-03-06 10:48 UTC (permalink / raw)
  To: Jeremy Shute; +Cc: caml-list

> I'm running 3.09 MinGW.  When trying to compile like this...
>
> ocamlopt.opt -warn-error A -I . -o A.opt unix.cmxa str.cmxa nums.cmxa
> libB.cmxa A.cmx
>
> ...I get this error...
>
> gcc: @F:\DOCUME~1\user\LOCALS~1\Temp\camlresp33a735: Invalid argument
> Error during linking
>
> When I fiddle around with it, I discover that the problems come when I
> add another object to be linked.  This can be either my own binary or
> one of the Caml included libraries.
>
> Can anyone explain why this might be

You're using a set of MinGW compilers that do not understand the
@responsefile notation for bypassing Window's stupidly low limits on
command-line length.

> , and what I can do to remedy it?

See the installation instructions (file README.win32), paragraph
starting with "Do *not* install the Mingw/MSYS development tools from
www.mingw.org".

- Xavier Leroy


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MinGW release running out of command line before passing to GCC?
  2006-03-06  0:44 MinGW release running out of command line before passing to GCC? Jeremy Shute
  2006-03-06 10:48 ` [Caml-list] " Xavier Leroy
@ 2006-03-16 12:43 ` spiralvoice
  1 sibling, 0 replies; 3+ messages in thread
From: spiralvoice @ 2006-03-16 12:43 UTC (permalink / raw)
  To: caml-list

On Mo 06 Mrz 2006 01:44:19a Jeremy Shute wrote:

> gcc: @F:\DOCUME~1\user\LOCALS~1\Temp\camlresp33a735: Invalid
> argument Error during linking

Hi,

this patch fixed it for me:

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

Greetings, spiralvoice


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-16 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-06  0:44 MinGW release running out of command line before passing to GCC? Jeremy Shute
2006-03-06 10:48 ` [Caml-list] " Xavier Leroy
2006-03-16 12:43 ` spiralvoice

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).