Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CamlLight sous MacOS X #2761

Closed
vicuna opened this issue May 12, 2001 · 0 comments
Closed

CamlLight sous MacOS X #2761

vicuna opened this issue May 12, 2001 · 0 comments

Comments

@vicuna
Copy link

vicuna commented May 12, 2001

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant