caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* automake and ocaml
@ 2009-09-21  3:41 Daniel Molina
  2009-09-21  7:53 ` [Caml-list] " Vincent Aravantinos
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Daniel Molina @ 2009-09-21  3:41 UTC (permalink / raw)
  To: caml-list

Hello all.

I have searching in the net about ocaml compatibility for automake. I
have found a patch from automake by Tom Murray in 2003

http://sourceware.org/ml/automake/2003-12/msg00153.html

and I had seen that this issue was talked in the caml mailing list

http://mirror.ocamlcore.org/caml.inria.fr/pub/ml-archives/caml-list/2006/11/e3887787f977667f7277226415d632c0.en.html

Do anybody knows the state of this matter nowadays? Some page that I can
read? I only want to find a method that works properly.

Many thanks.


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

* Re: [Caml-list] automake and ocaml
  2009-09-21  3:41 automake and ocaml Daniel Molina
@ 2009-09-21  7:53 ` Vincent Aravantinos
  2009-09-21  7:59   ` Stéphane Glondu
  2009-09-22 10:34   ` [Caml-list] " Richard Jones
  2009-09-21  8:01 ` Stéphane Glondu
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 11+ messages in thread
From: Vincent Aravantinos @ 2009-09-21  7:53 UTC (permalink / raw)
  To: Daniel Molina; +Cc: caml-list


Le 21 sept. 09 à 05:41, Daniel Molina a écrit :

> Hello all.
>
> I have searching in the net about ocaml compatibility for automake. I
> have found a patch from automake by Tom Murray in 2003
>
> http://sourceware.org/ml/automake/2003-12/msg00153.html
>
> and I had seen that this issue was talked in the caml mailing list
>
> http://mirror.ocamlcore.org/caml.inria.fr/pub/ml-archives/caml-list/2006/11/e3887787f977667f7277226415d632c0.en.html
>
> Do anybody knows the state of this matter nowadays? Some page that I  
> can
> read? I only want to find a method that works properly.

There is also this project:

http://forge.ocamlcore.org/projects/ocaml-autobuild/

which seems quite dead, though.

V.

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

* Re: [Caml-list] automake and ocaml
  2009-09-21  7:53 ` [Caml-list] " Vincent Aravantinos
@ 2009-09-21  7:59   ` Stéphane Glondu
  2009-09-21  8:10     ` Vincent Aravantinos
  2009-09-22 10:34   ` [Caml-list] " Richard Jones
  1 sibling, 1 reply; 11+ messages in thread
From: Stéphane Glondu @ 2009-09-21  7:59 UTC (permalink / raw)
  To: Vincent Aravantinos; +Cc: Daniel Molina, caml-list

Vincent Aravantinos a écrit :
> There is also this project:
> 
> http://forge.ocamlcore.org/projects/ocaml-autobuild/
> 
> which seems quite dead, though.

The last commit was two months ago:

http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=ocaml-autobuild;a=summary

I don't think this qualifies as "dead"...

-- 
Stéphane


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

* Re: [Caml-list] automake and ocaml
  2009-09-21  3:41 automake and ocaml Daniel Molina
  2009-09-21  7:53 ` [Caml-list] " Vincent Aravantinos
@ 2009-09-21  8:01 ` Stéphane Glondu
  2009-09-21  8:23 ` Sylvain Le Gall
  2009-09-22 10:36 ` [Caml-list] " Richard Jones
  3 siblings, 0 replies; 11+ messages in thread
From: Stéphane Glondu @ 2009-09-21  8:01 UTC (permalink / raw)
  To: Daniel Molina; +Cc: caml-list

Daniel Molina a écrit :
> I have searching in the net about ocaml compatibility for automake. I
> have found a patch from automake by Tom Murray in 2003
> 
> http://sourceware.org/ml/automake/2003-12/msg00153.html

There are autoconf macros for OCaml available there:

  http://ocaml-autoconf.forge.ocamlcore.org/


Cheers,

-- 
Stéphane


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

* Re: [Caml-list] automake and ocaml
  2009-09-21  7:59   ` Stéphane Glondu
@ 2009-09-21  8:10     ` Vincent Aravantinos
  2009-09-21  8:18       ` Sylvain Le Gall
  0 siblings, 1 reply; 11+ messages in thread
From: Vincent Aravantinos @ 2009-09-21  8:10 UTC (permalink / raw)
  To: Stéphane Glondu; +Cc: Daniel Molina, caml-list


Le 21 sept. 09 à 09:59, Stéphane Glondu a écrit :

> Vincent Aravantinos a écrit :
>> There is also this project:
>>
>> http://forge.ocamlcore.org/projects/ocaml-autobuild/
>>
>> which seems quite dead, though.
>
> The last commit was two months ago:
>
> http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=ocaml-autobuild;a=summary
>
> I don't think this qualifies as "dead"...

Indeed, sorry. btw how did you get this link ? I couldn't find it from  
the project site.

Notice I didn't said it *was* dead but it *seems* dead, and indeed:
- no announce
- 0% activity
- no activity on any forum, list or bug reports
- no homepage except the default one
- dvpt status = Planning after having been registered one year ago
- no file available (in the section "files")

I guess it's not currently "usable" (?)

V.

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

* Re: automake and ocaml
  2009-09-21  8:10     ` Vincent Aravantinos
@ 2009-09-21  8:18       ` Sylvain Le Gall
  2009-09-21  8:23         ` [Caml-list] " Vincent Aravantinos
  0 siblings, 1 reply; 11+ messages in thread
From: Sylvain Le Gall @ 2009-09-21  8:18 UTC (permalink / raw)
  To: caml-list

On 21-09-2009, Vincent Aravantinos <vincent.aravantinos@gmail.com> wrote:
>
> Le 21 sept. 09 à 09:59, Stéphane Glondu a écrit :
>
>> Vincent Aravantinos a écrit :
>>> There is also this project:
>>>
>>> http://forge.ocamlcore.org/projects/ocaml-autobuild/
>>>
>>> which seems quite dead, though.
>>
>> The last commit was two months ago:
>>
>> http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=ocaml-autobuild;a=summary
>>
>> I don't think this qualifies as "dead"...
>
> Indeed, sorry. btw how did you get this link ? I couldn't find it from  
> the project site.
>
> Notice I didn't said it *was* dead but it *seems* dead, and indeed:
> - no announce

Not yet released and not finished enough to be announced.

> - 0% activity

That is because I use darcs which is not accounted for activity.

>
> I guess it's not currently "usable" (?)
>

Well, it is usable for pure ocaml projects. I am still working on C
file. I use it on several of my own project. 

I am REALLY planning to work on it quite soon to have something
released. Please give me time...

Regards,
Sylvain Le Gall -- ocaml-autobuild dev.


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

* Re: [Caml-list] Re: automake and ocaml
  2009-09-21  8:18       ` Sylvain Le Gall
@ 2009-09-21  8:23         ` Vincent Aravantinos
  0 siblings, 0 replies; 11+ messages in thread
From: Vincent Aravantinos @ 2009-09-21  8:23 UTC (permalink / raw)
  To: Sylvain Le Gall; +Cc: caml-list


Le 21 sept. 09 à 10:18, Sylvain Le Gall a écrit :

>> I guess it's not currently "usable" (?)
>
> Well, it is usable for pure ocaml projects. I am still working on C
> file. I use it on several of my own project.

Nice! Worth waiting for it then.

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

* Re: automake and ocaml
  2009-09-21  3:41 automake and ocaml Daniel Molina
  2009-09-21  7:53 ` [Caml-list] " Vincent Aravantinos
  2009-09-21  8:01 ` Stéphane Glondu
@ 2009-09-21  8:23 ` Sylvain Le Gall
  2009-09-22 10:36 ` [Caml-list] " Richard Jones
  3 siblings, 0 replies; 11+ messages in thread
From: Sylvain Le Gall @ 2009-09-21  8:23 UTC (permalink / raw)
  To: caml-list

On 21-09-2009, Daniel Molina <lalluviamola@gmail.com> wrote:
> Hello all.
>
> I have searching in the net about ocaml compatibility for automake. I
> have found a patch from automake by Tom Murray in 2003
>
> http://sourceware.org/ml/automake/2003-12/msg00153.html
>
> and I had seen that this issue was talked in the caml mailing list
>
> http://mirror.ocamlcore.org/caml.inria.fr/pub/ml-archives/caml-list/2006/11/e3887787f977667f7277226415d632c0.en.html
>
> Do anybody knows the state of this matter nowadays? Some page that I can
> read? I only want to find a method that works properly.
>

I try it and even try it to work a new version on my own. The problem is
that automake is deeply tight with C compilation. Supporting other
languages that do not compile the same way as C (.c -> .o -> .exe / no
header compilation) is a nightmare and really difficult to maintain
overtime inside automake...

Take a look at ocaml-autoconf for configure time and ocamlbuild for link
time.
http://ocaml-autoconf.forge.ocamlcore.org

If it is a pure OCaml project, you can try to use ocaml-autobuild (but
it dev. status, you will need to fecth the darcs repo):
http://ocaml-autobuild.forge.ocamlcore.org
http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=ocaml-autobuild;a=summary

Regards,
Sylvain Le Gall


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

* Re: [Caml-list] automake and ocaml
  2009-09-21  7:53 ` [Caml-list] " Vincent Aravantinos
  2009-09-21  7:59   ` Stéphane Glondu
@ 2009-09-22 10:34   ` Richard Jones
  1 sibling, 0 replies; 11+ messages in thread
From: Richard Jones @ 2009-09-22 10:34 UTC (permalink / raw)
  To: Vincent Aravantinos; +Cc: Daniel Molina, caml-list

On Mon, Sep 21, 2009 at 09:53:40AM +0200, Vincent Aravantinos wrote:
> There is also this project:
> 
> http://forge.ocamlcore.org/projects/ocaml-autobuild/
> 
> which seems quite dead, though.

I don't think that one is dead.

Also for autoconf macros for OCaml, see:

  http://forge.ocamlcore.org/projects/ocaml-autoconf/

Rich.

-- 
Richard Jones
Red Hat


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

* Re: [Caml-list] automake and ocaml
  2009-09-21  3:41 automake and ocaml Daniel Molina
                   ` (2 preceding siblings ...)
  2009-09-21  8:23 ` Sylvain Le Gall
@ 2009-09-22 10:36 ` Richard Jones
  3 siblings, 0 replies; 11+ messages in thread
From: Richard Jones @ 2009-09-22 10:36 UTC (permalink / raw)
  To: Daniel Molina; +Cc: caml-list

On Mon, Sep 21, 2009 at 05:41:14AM +0200, Daniel Molina wrote:
> Do anybody knows the state of this matter nowadays? Some page that I can
> read? I only want to find a method that works properly.

You don't really need automake to support OCaml directly.

See for example:

http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/ocaml-libvirt--devel/
http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virt-top--devel/
http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virt-df--devel/

for some ideas on how to use automake with OCaml projects.

Rich.

-- 
Richard Jones
Red Hat


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

* Re: automake and ocaml
  2009-09-22  1:25 Daniel Molina
@ 2009-09-22  8:52 ` Sylvain Le Gall
  0 siblings, 0 replies; 11+ messages in thread
From: Sylvain Le Gall @ 2009-09-22  8:52 UTC (permalink / raw)
  To: caml-list

Hello,

On 22-09-2009, Daniel Molina <lalluviamola@gmail.com> wrote:
> Thanks for the reply!
>
> I have been trying to compile the ocaml-autobuild but it seem that it do
> not works.
>
> I have done make/(make test) after/before apply the patch and I obtain
> the following error:
>         
> $ make test
> ocamlbuild -classic-display ocaml-autobuild.otarget
> /usr/bin/ocamlopt -I /usr/lib/ocaml/3.10.0/ocamlbuild
> unix.cmxa /usr/lib/ocaml/3.10.0/ocamlbuild/ocamlbuildlib.cmxa
> myocamlbuild.ml /usr/lib/ocaml/3.10.0/ocamlbuild/ocamlbuild.cmx -o
> myocamlbuild
> ocamlfind ocamldep -modules src/tools/ocamlmod.ml >
> src/tools/ocamlmod.ml.depends
> ocamlfind ocamlc -c -I src/tools -I src -I src/ocamlbuild -I
> src/ocamlmakefile -I src/omake -I src/oasis -I src/base -o
> src/tools/ocamlmod.cmo src/tools/ocamlmod.ml
> ocamlfind ocamlc -linkpkg src/tools/ocamlmod.cmo -o
> src/tools/ocamlmod.byte
> src/tools/ocamlmod.byte src/base/BaseSys.mod
> ocamlfind ocamldep -package findlib -pp '-package findlib' -modules
> src/base/BaseSys.ml > src/base/BaseSys.ml.depends
> + ocamlfind ocamldep -package findlib -pp '-package findlib' -modules
> src/base/BaseSys.ml > src/base/BaseSys.ml.depends
> sh: Illegal option -p
> Preprocessing error on file src/base/BaseSys.ml
> Command exited with code 2.
> make: *** [all] Error 10
>
> Can some one help me?
>
> I downloaded the tree with 'wget -r' which did not did this very smooth.
> I have uploaded a tar version  of it (without to apply the patch).
>
> https://doppelgaenger.ath.cx/~daniel/ocaml-autobuild.tar
>

I download and build it (from your website) and I have no problem to
compile: 

gildor@yotta(lenny/amd64):~/tmp/ocaml-autobuild$ make
ocamlbuild -classic-display ocaml-autobuild.otarget
/usr/bin/ocamlopt.opt -I /usr/lib/ocaml/3.10.2/ocamlbuild unix.cmxa
/usr/lib/ocaml/3.10.2/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml
/usr/lib/ocaml/3.10.2/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
[...]
 src/tools/ocamlmod.byte src/base/BaseSys.mod
 ocamlfind ocamldep -package fileutils -package findlib -modules
 src/base/BaseSys.ml > src/base/BaseSys.ml.depends
 src/tools/ocamlmod.byte src/ocamlbuild/OCamlbuildSys.mod
 ocamlfind ocamldep -package fileutils -modules
 src/ocamlbuild/OCamlbuildSys.ml >
 src/ocamlbuild/OCamlbuildSys.ml.depends
 ocamlfind ocamldep -package fileutils -package findlib -modules
 src/base/BaseEnvironment.ml > src/base/BaseEnvironment.ml.depends
 ocamlfind ocamldep -package fileutils -package findlib -modules
 src/base/BaseMessage.ml > src/base/BaseMessage.ml.depends
 ocamlfind ocamlc -c -package fileutils -package findlib -I src/base -I
 src -I src/omake -I src/ocamlbuild -I src/oasis -I src/ocamlmakefile -o
  src/base/BaseMessage.cmo src/base/BaseMessage.ml
  ocamlfind ocamldep -package fileutils -package findlib -modules
  src/base/BaseExec.ml > src/base/BaseExec.ml.depends
[...]
(test not ok because it try to install things in /usr/lib/ocaml...)

Can you check you have build and install ocamlify 
http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=ocamlify;a=summary
(I will try to get rid of this small dependency in the final release)

Also OCaml 3.10.0 is a quite old version that is maybe still containing
some bugs with ocamlbuild (it was the first version of ocamlbuild). Can
you try with a more recent version (3.10.2 or 3.11.1).

You can get the tree with 
darcs get http://darcs.ocamlcore.org/repos/ocamlify
darcs get http://darcs.ocamlcore.org/repos/ocaml-autobuild

Regards,
Sylvain Le Gall


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

end of thread, other threads:[~2009-09-22 10:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-21  3:41 automake and ocaml Daniel Molina
2009-09-21  7:53 ` [Caml-list] " Vincent Aravantinos
2009-09-21  7:59   ` Stéphane Glondu
2009-09-21  8:10     ` Vincent Aravantinos
2009-09-21  8:18       ` Sylvain Le Gall
2009-09-21  8:23         ` [Caml-list] " Vincent Aravantinos
2009-09-22 10:34   ` [Caml-list] " Richard Jones
2009-09-21  8:01 ` Stéphane Glondu
2009-09-21  8:23 ` Sylvain Le Gall
2009-09-22 10:36 ` [Caml-list] " Richard Jones
2009-09-22  1:25 Daniel Molina
2009-09-22  8:52 ` Sylvain Le Gall

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).