You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 356 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: -for Caml light use https://github.com/camllight/camllight/issues
Description:
La compilation de CamlLight sous MacOS X échoue avec le message:
Fatal error: the file ../camlcomp is not a bytecode executable file
Cause:
Le lseek dans la fonction read_trailer de src/runtime/main.c échoue
car sous MacOS X, l'offset pris par la fonction lseek est un entier 64 bits.
En l'absence de protoypage, le compilateur passe un int (32 bits), ce
qui provoque un décalage de la pile, et lseek échoue avec errno == EINVAL.
Une solution:
Prototyper correctement lseek en incluant <unistd.h>.
Il faut faire de même dans src/runtime.io.c.
The text was updated successfully, but these errors were encountered:
Original bug ID: 356
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for Caml light use https://github.com/camllight/camllight/issues
Bug description
Full_Name: Sébastien Carlier
Version: CamlLight 0.74
OS: MacOS X
Submission from: 217.11.165.22 (217.11.165.22)
Description:
La compilation de CamlLight sous MacOS X échoue avec le message:
Fatal error: the file ../camlcomp is not a bytecode executable file
Cause:
Le lseek dans la fonction read_trailer de src/runtime/main.c échoue
car sous MacOS X, l'offset pris par la fonction lseek est un entier 64 bits.
En l'absence de protoypage, le compilateur passe un int (32 bits), ce
qui provoque un décalage de la pile, et lseek échoue avec errno == EINVAL.
Une solution:
Prototyper correctement lseek en incluant <unistd.h>.
Il faut faire de même dans src/runtime.io.c.
The text was updated successfully, but these errors were encountered: