caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re: Re: automake and ocaml
@ 2009-09-22  1:25 Daniel Molina
  2009-09-22  8:52 ` Sylvain Le Gall
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Molina @ 2009-09-22  1:25 UTC (permalink / raw)
  To: caml-list

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

(My https could worry your browser but while do not share your account
numbers with me there is no problem ;-)


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

* Re: automake and ocaml
  2009-09-22  1:25 Re: automake and ocaml Daniel Molina
@ 2009-09-22  8:52 ` Sylvain Le Gall
  0 siblings, 0 replies; 5+ 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] 5+ messages in thread

* Re: automake and ocaml
  2009-09-21  3:41 Daniel Molina
  2009-09-21  7:53 ` [Caml-list] " Vincent Aravantinos
@ 2009-09-21  8:23 ` Sylvain Le Gall
  1 sibling, 0 replies; 5+ 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] 5+ messages in thread

* Re: automake and ocaml
  2009-09-21  8:10     ` Vincent Aravantinos
@ 2009-09-21  8:18       ` Sylvain Le Gall
  0 siblings, 0 replies; 5+ 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] 5+ messages in thread

* automake and ocaml
@ 2009-09-21  3:41 Daniel Molina
  2009-09-21  7:53 ` [Caml-list] " Vincent Aravantinos
  2009-09-21  8:23 ` Sylvain Le Gall
  0 siblings, 2 replies; 5+ 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] 5+ messages in thread

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-22  1:25 Re: automake and ocaml Daniel Molina
2009-09-22  8:52 ` Sylvain Le Gall
  -- strict thread matches above, loose matches on Subject: below --
2009-09-21  3:41 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 ` 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).