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

ocamlc/ocamlopt -a #8488

Closed
vicuna opened this issue Feb 19, 2004 · 3 comments
Closed

ocamlc/ocamlopt -a #8488

vicuna opened this issue Feb 19, 2004 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 19, 2004

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

Bug description

Hello,

Deux choses:

  • "ocamlc -a" demande obligatoirement de spécifier
    le fichier résultat (-o ...). Le manuel indique que le nom
    par défaut est library.cma. Idem avec ocamlopt.

  • il est possible d'inclure des bibliothèques dans des bibliothèques
    avec ocamlc:

    ocamlc -a -o bla.cma unix.cma

    Mais pas avec ocamlopt:

    ocamlopt -a -o bla.cmxa unix.cmxa
    =====>
    /home/frisch/godi/lib/ocaml/std-lib/unix.cmxa
    is not a compilation unit description.

    Est-ce normal ?

-- Alain

@vicuna
Copy link
Author

vicuna commented Apr 14, 2004

Comment author: administrator

Salut Alain,

  • "ocamlc -a" demande obligatoirement de spécifier
    le fichier résultat (-o ...). Le manuel indique que le nom
    par défaut est library.cma. Idem avec ocamlopt.

C'est fixe dans la version de travail.

  • il est possible d'inclure des bibliothèques dans des bibliothèques
    avec ocamlc:

Mais pas avec ocamlopt:

Est-ce normal ?

Oui car ocamlopt repose sur les outils unix (ld et ar) et ar ne sait pas
inclure une archive dans une autre.

Merci pour le rapport de bug,

-- Damien

@vicuna
Copy link
Author

vicuna commented Apr 14, 2004

Comment author: administrator

1- Fix the doc. fixed DD 2004-04-14
2- Yes, it's normal ("ar" is too stupid, see discussion on caml-list)

@vicuna vicuna closed this as completed Apr 14, 2004
@vicuna
Copy link
Author

vicuna commented Apr 14, 2004

Comment author: administrator

On Wed, 14 Apr 2004, Damien Doligez wrote:

Oui car ocamlopt repose sur les outils unix (ld et ar) et ar ne sait pas
inclure une archive dans une autre.

N'est-il pas possible d'extraire les fichiers d'une archive et de les
rajouter dans l'autre ? Des problèmes d'espace de nom ?

-- Alain

@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