[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Pb installation jocaml sous Linux
Bonjour,
Est-ce que vous pouvez modifier dans le fichier
jocaml/tools/Makefile
les définitions pour opnames.ml et optype.ml en:
opnames.ml: ../camlrun/instruct.h
unset LC_ALL LC_CTYPE LC_COLLATE LANG; \
sed -e '/\/\*/d' \
-e '/^#/d' \
-e 's/enum \(.*\) {/let names_of_\1 = [|/' \
-e 's/};$$/ |]/' \
-e 's/\([A-Z][A-Z_0-9a-z]*\)/"\1"/g' \
-e 's/,/;/g' \
../camlrun/instruct.h > opnames.ml
optype.ml: ../camlrun/instruct.h Makefile
unset LC_ALL LC_CTYPE LC_COLLATE LANG; \
sed -e '/\/\*/d' \
-e '/^#/d' \
-e 's/enum \(.*\) {/type \1 = /' \
-e 's/};$$/ /' \
-e 's/\([A-Z][A-Z_0-9a-z]*\)/Op\1/g' \
-e 's/,/|/g' \
../camlrun/instruct.h > optype.ml
J'ai effectué cette modification dans le cvs de jocaml.
Cordialement,
Alan Schmitt
* collé frédéric (frederic.colle@univ-lr.fr) wrote:
> Voici le message d'aeereur rencontré pouvez vous nous aider
>
> Merci
>
> ---
>
> ../boot/jocamlrun ../boot/jocamlc -I ../boot -c -I ../utils -I
> ../parsing -I ../typing -I ../bytecomp -I ../asmcomp opnames.ml
> File "opnames.ml", line 4, characters 0-5:
> This expression is not a function, it cannot be applied
> make[1]: *** [opnames.cmo] Erreur 2
> make[1]: Quitte le répertoire `/home/fredo/JoCaml/jocaml/tools'
> make: *** [jocamltools] Erreur 2
>
>
> Le fichier opnames est
>
>
>
>
> "let" "names_of_instructions" = [|
> "ACC0"; "ACC1"; "ACC2"; "ACC3"; "ACC4"; "ACC5"; "ACC6"; "ACC7";
> "ACC"; "PUSH";
> "PUSHACC0"; "PUSHACC1"; "PUSHACC2"; "PUSHACC3";
> "PUSHACC4"; "PUSHACC5"; "PUSHACC6"; "PUSHACC7";
> "PUSHACC"; "POP"; "ASSIGN";
> "ENVACC1"; "ENVACC2"; "ENVACC3"; "ENVACC4"; "ENVACC";
>
>
>
--
The hacker: someone who figured things out and made something cool happen.