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

Feature Wish : cmxa and cma manipulation tool like ar #2375

Closed
vicuna opened this issue Mar 25, 2004 · 5 comments
Closed

Feature Wish : cmxa and cma manipulation tool like ar #2375

vicuna opened this issue Mar 25, 2004 · 5 comments

Comments

@vicuna
Copy link

vicuna commented Mar 25, 2004

Original bug ID: 2375
Reporter: administrator
Status: acknowledged
Resolution: open
Priority: normal
Severity: feature
Category: tools (ocaml{lex,yacc,dep,debug,...})
Tags: junior_job
Parent of: #8490

Bug description

Full_Name: Benjamin Monate
Version: 3.07+2
OS: All
Submission from: is002447.saclay.cea.fr (132.166.134.145)

Bonjour,

Un outil de manipulation des bibliothèques OCaml serait très utile pour
les gros projets.

Il faudrait des fonctions similaires à celles de gnu ar :

  • extraire les unités de compilation contenues dans la lib (ar x)
  • récupérer la liste des noms des unités de compilation de la lib (ar t)
  • récupérer la liste des informations d'"auto-link" (--clib, -I, ...) contenues
    dans la lib.

Moins utiles mais quand même intéressant :

  • ajouter/remplacer/supprimer une unité dans une lib existante
  • ajouter/supprimer des options d'auto-link
  • fusionner des libs

En vous remerciant pour la qualité d'OCaml
Benjamin

@vicuna
Copy link
Author

vicuna commented Apr 1, 2004

Comment author: administrator

Suggestion makes a lot of sense.

@vicuna
Copy link
Author

vicuna commented Dec 7, 2016

Comment author: @mshinwell

Maybe ocamlobjinfo suffices?

@avsm
Copy link
Member

avsm commented May 6, 2020

I ran this through Google Translate:

An OCaml library manipulation tool would be very useful for big projects.
It would need functions similar to those of gnu ar:

  • extract the compilation units contained in the lib (ar x)
  • get the list of names of lib (ar t) compilation units
  • retrieve the list of "auto-link" information (--clib, -I, ...) contained in lib.

Less useful but still interesting:

  • add / replace / delete a unit in an existing lib
  • add / remove auto-link options
  • merge libs

Thanking you for the quality of OCaml
Benjamin

@github-actions
Copy link

This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.

@github-actions github-actions bot added the Stale label Aug 10, 2022
@xavierleroy
Copy link
Contributor

I'm going to put this feature wish to rest after all these years.

I know Unix ar is not just a library builder, but actually a file archiver. I also know that the last time I used ar to extract .o files from a .a archive was 30 years ago.

Other toolchains (e.g. MSVC) have tools to build libraries from object files but nothing to extract object files from a library or replace them.

As to getting information on what's in a .cma or .cmxa archive, ocamlobjinfo does the job already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants