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

mingw, response file et ar #8335

Closed
vicuna opened this issue Oct 23, 2003 · 2 comments
Closed

mingw, response file et ar #8335

vicuna opened this issue Oct 23, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 23, 2003

Original bug ID: 1892
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hello,

J'ai installé un peu en vrac Cygwin et MinGW pour essayer de compiler
OCaml sur une machine Windows. Au moment de construire stdlib.cmxa,
j'ai une erreur:

../boot/ocamlrun ../ocamlopt -a -o stdlib.cmxa pervasives.cmx array.cmx
list.cmx
char.cmx string.cmx sys.cmx hashtbl.cmx sort.cmx marshal.cmx obj.cmx
int32.cmx
int64.cmx nativeint.cmx lexing.cmx parsing.cmx set.cmx map.cmx stack.cmx
queue.c
mx stream.cmx buffer.cmx printf.cmx format.cmx scanf.cmx arg.cmx
printexc.cmx gc
.cmx digest.cmx random.cmx camlinternalOO.cmx oo.cmx genlex.cmx
callback.cmx wea
k.cmx lazy.cmx filename.cmx complex.cmx arrayLabels.cmx listLabels.cmx
stringLab
els.cmx moreLabels.cmx stdLabels.cmx
ar: @c:\tmp\camlresp90eda2: Invalid argument
Error while creating the library stdlib.a
make[1]: *** [stdlib.cmxa] Error 2

C'est le ar de MinGW. Si je mets /bin avant /cygdrive/c/MinGW dans le
PATH, pour utiliser le ar de Cygwin, ça a l'air de marcher.

Si j'enleve suffisament de .cmx sur la ligne de commande ci-dessus, ca
passe aussi avec le ar de MinGW. Ca doit etre un problème avec les
response files.

Est-ce que c'est un problème connu?

Pour info:
$ /cygdrive/c/MinGW/bin/ar --version
GNU ar 2.13.90 20030111
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.

$ /bin/ar --version
GNU ar 2.13.90 20030308
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.

Sinon, le README.win32 ne dit meme pas qu'il faut avoir MinGW installé;
c'est un oubli?

-- Alain

@vicuna
Copy link
Author

vicuna commented Oct 23, 2003

Comment author: administrator

J'ai installé un peu en vrac Cygwin et MinGW pour essayer de compiler
OCaml sur une machine Windows. Au moment de construire stdlib.cmxa,
j'ai une erreur:
ar: @c:\tmp\camlresp90eda2: Invalid argument

C'est le ar de MinGW. Si je mets /bin avant /cygdrive/c/MinGW dans le
PATH, pour utiliser le ar de Cygwin, ça a l'air de marcher.

Oui, c'est un problème connu des outils de compilation fournis dans la
distrib MinGW.

L'astuce est de ne pas installer MinGW du tout: la distrib Cygwin
contient toutes les libs MinGW et le flag -mno-cygwin de gcc lui dit
de compiler avec ces libs.

Sinon, le README.win32 ne dit meme pas qu'il faut avoir MinGW installé;
c'est un oubli?

Au contraire! Il devrait même dire plus clairement qu'il ne faut PAS
avoir MinGW installé.

Logique de Shadok, je sais.

  • Xavier

@vicuna
Copy link
Author

vicuna commented Feb 14, 2004

Comment author: administrator

README.win32 clarified 2004-02-14 by XL

@vicuna vicuna closed this as completed Feb 14, 2004
@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