Page 1 sur 1
[compilation] camllight
Publié : mar. 05 janv. 2010, 22:00
par erdnaxeli
Bonjour,
Étant en classe préparatoire, je fais du caml light. J'ai donc voulu l'installer, mais j'ai cette erreur lors du «make world» :
Code : Tout sélectionner
rm -f libcaml.a
ar rc libcaml.a interp.o misc.o stacks.o fix_code.o main.o fail.o signals.o debugcom.o freelist.o major_gc.o minor_gc.o memory.o alloc.o roots.o compare.o ints.o floats.o str.o io.o extern.o externcp.o intern.o interncp.o hash.o sys.o meta.o parsing.o lexing.o gc_ctrl.o
if test -f /usr/bin/ranlib -o -f /bin/ranlib; then ranlib libcaml.a; else true; fi
make[1]: quittant le r?pertoire ? /home/erdnaxeli/caml/cl75/src/runtime ?
cp runtime/camlrun .
cd yacc; make CC="gcc" OPTS="-fno-defer-pop -D__FAVOR_BSD" all
make[1]: entrant dans le r?pertoire ? /home/erdnaxeli/caml/cl75/src/yacc ?
make[1]: Rien ? faire pour ? all ?.
make[1]: quittant le r?pertoire ? /home/erdnaxeli/caml/cl75/src/yacc ?
cp yacc/camlyacc .
cd lib; make CPP="/lib/cpp -P -traditional -Dunix" all
make[1]: entrant dans le r?pertoire ? /home/erdnaxeli/caml/cl75/src/lib ?
../camlrun ../camlcomp -stdlib . -O none -g -W arg.mli
make[1]: *** [arg.zi] Erreur de segmentation
make[1]: *** Destruction du fichier ? arg.zi ?
make[1]: quittant le r?pertoire ? /home/erdnaxeli/caml/cl75/src/lib ?
make: *** [world] Erreur 2
Re: [compilation] camllight
Publié : mar. 05 janv. 2010, 23:20
par Skunnyk
Hello,
Aucune idée, mais il faudrait peut être plus de précisions.
Tu utilises le PKGBUILD camllight ? Je viens de tenter le build, j'ai le même problème.
En regardant les versions (
http://caml.inria.fr/caml-light/release.fr.html) , c'est la 0.75, qui à l'air très très vieille, donc pas étonnant que cela ne compile pas/plus !
La dernière version de Caml Light est 0.75. C'est une version stable, publiée le 2002-01-26.
Re: [compilation] camllight
Publié : mer. 06 janv. 2010, 10:33
par gyo
Sinon, tu pourrais installer OCaml, non ?
Re: [compilation] camllight
Publié : mer. 06 janv. 2010, 14:58
par erdnaxeli
Non je ne peux pas installer Ocaml, ce n'est pas tout à fait pareil.
En fait il y a une erreur dans le code source mais seul le cvs est à jour. Ça marche très bien avec le code juste.
Maintenant c'est la compilation de l'interface qui bloque :
Code : Tout sélectionner
cd compiler; make CC='gcc' OPTS='' CPP='/usr/bin/cpp -P' RANLIBTEST='test -f /usr/bin/ranlib -o -f /bin/ranlib' RANLIB='ranlib' BINDIR='/usr/local/bin' LIBDIR='/usr/local/lib/caml-light' MANDIR='/usr/local/man/man1' MANEXT='1' X11_INCLUDES='/usr/X11R6/include/X11' X11_LIB='/usr/X11R6/lib' TCLINCLDIR='/usr/include' TKINCLDIR='/usr/include' TKLIBDIR='/usr/local/lib' TCLLIBDIR='/usr/local/lib' TKLIBS='-ltk85 -ltcl85 -lX11'
make[2]: entrant dans le r?pertoire ? /home/erdnaxeli/caml/cvs/camllight/contrib/camltk4/compiler ?
make[2]: ? tkcompiler ? est ? jour.
make[2]: quittant le r?pertoire ? /home/erdnaxeli/caml/cvs/camllight/contrib/camltk4/compiler ?
cd lib; make CC='gcc' OPTS='' CPP='/usr/bin/cpp -P' RANLIBTEST='test -f /usr/bin/ranlib -o -f /bin/ranlib' RANLIB='ranlib' BINDIR='/usr/local/bin' LIBDIR='/usr/local/lib/caml-light' MANDIR='/usr/local/man/man1' MANEXT='1' X11_INCLUDES='/usr/X11R6/include/X11' X11_LIB='/usr/X11R6/lib' TCLINCLDIR='/usr/include' TKINCLDIR='/usr/include' TKLIBDIR='/usr/local/lib' TCLLIBDIR='/usr/local/lib' TKLIBS='-ltk85 -ltcl85 -lX11' all
make[2]: entrant dans le r?pertoire ? /home/erdnaxeli/caml/cvs/camllight/contrib/camltk4/lib ?
camlmktop -o camltktop -I ../libsupport \
-custom ../libsupport/catchexc.zo ../libsupport/hashtblc.zo ../libsupport/support.zo ../libsupport/protocol.zo ../libsupport/textvariable.zo ../libsupport/optionmenu.zo tk.zo scale.zo radiobutton.zo selection.zo toplevelw.zo frame.zo canvas.zo pack.zo listbox.zo grab.zo button.zo imagephoto.zo bell.zo winfo.zo imagebitmap.zo tkwait.zo scrollbar.zo checkbutton.zo palette.zo focus.zo wm.zo entry.zo text.zo resource.zo message.zo clipboard.zo menubutton.zo label.zo place.zo menu.zo \
-ccopt -L/usr/local/lib -ccopt -L/usr/local/lib -ccopt -L/usr/X11R6/lib ../libsupport/camltk.o -ltk85 -ltcl85 -lX11
/usr/bin/ld: cannot find -ltk85
collect2: ld a retourn? 1 code d'?tat d'ex?cution
make[2]: *** [camltktop] Erreur 2
make[2]: quittant le r?pertoire ? /home/erdnaxeli/caml/cvs/camllight/contrib/camltk4/lib ?
make[1]: *** [all] Erreur 2
make[1]: quittant le r?pertoire ? /home/erdnaxeli/caml/cvs/camllight/contrib/camltk4 ?
make: *** [all] Erreur 2
edit : j'ai trouvé, c'était une erreur dans le makefile. Mais maintenant j'ai ceci :
Code : Tout sélectionner
camlmktop -o camltktop -I ../libsupport \
-custom ../libsupport/support.zo ../libsupport/protocol.zo ../libsupport/textvariable.zo tk.zo place.zo resource.zo wm.zo canvas.zo button.zo text.zo label.zo scrollbar.zo menubar.zo message.zo menu.zo entry.zo focus.zo listbox.zo menubutton.zo wait.zo pack.zo toplevelw.zo frame.zo radiobutton.zo grab.zo contrib.zo colormodel.zo selection.zo scale.zo winfo.zo checkbutton.zo \
-ccopt -L/usr/lib -ccopt -L/usr/lib -ccopt -L/usr/X11R6/lib ../libsupport/camltk.o -lcaml -ltk8.5 -ltcl8.5 -lX11 -ldl -lm
../libsupport/camltk.o: In function `camltk_opentk':
/home/erdnaxeli/caml/cvs/camllight/contrib/camltk/libsupport/camltk.c:135: undefined reference to `Tk_CreateMainWindow'
collect2: ld a retourn? 1 code d'?tat d'ex?cution
make[2]: *** [camltktop] Erreur 2
make[2]: quittant le r?pertoire ? /home/erdnaxeli/caml/cvs/camllight/contrib/camltk/lib ?
make[1]: *** [all] Erreur 2
make[1]: quittant le r?pertoire ? /home/erdnaxeli/caml/cvs/camllight/contrib/camltk ?
make: *** [all] Erreur 2
Re: [compilation] camllight
Publié : dim. 10 janv. 2010, 20:24
par catwell
Je serais toi, j'installerais Ocaml. La syntaxe ne diffère pas beaucoup pour tout ce qui est algorithmique et vous ne ferez que ça en prépa. Il me semble d'ailleurs qu'en cas de divergence la syntaxe ocaml est admise aux concours. Mais surtout, Ocaml (puissant et maintenu) te servira plus pour plus tard que CAML Light.
Après, tout ça vient d'un ex-taupin qui a eu la malchance de se retrouver dans un lycée où on fait du Pascal
