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

OCaml CVS fails to build on AMD64 - undefined reference to `aligned_caml_munmap' #8430

Closed
vicuna opened this issue Jan 3, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 3, 2004

Original bug ID: 2016
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Aleksey Nogin
Version: CVS - 3.07+11 (2004-01-02)
OS: Fedora Core Development
Submission from: charter-242-037.caltech.edu (131.215.242.37)

When trying to compile the current CVS version of OCaml on AMD64, I get:

...

gcc -DCAML_NAME_SPACE -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64
-D_REENTRANT -c -o prims.o prims.c
gcc -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wl,-E
-o ocamlrun
prims.o libcamlrun.a -lm -ldl -lcurses -lpthread
libcamlrun.a(memory.o)(.text+0x60): In function caml_free_for_heap': : undefined reference to aligned_caml_munmap'
collect2: ld returned 1 exit status
make[1]: *** [ocamlrun] Error 1

@vicuna
Copy link
Author

vicuna commented Jan 3, 2004

Comment author: administrator

On Saturday, January 3, 2004, at 03:25 AM, nogin@cs.caltech.edu wrote:

When trying to compile the current CVS version of OCaml on AMD64, I
get:

...

gcc -DCAML_NAME_SPACE -O -fno-defer-pop -Wall -Wno-unused
-D_FILE_OFFSET_BITS=64
-D_REENTRANT -c -o prims.o prims.c
gcc -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64
-D_REENTRANT -Wl,-E
-o ocamlrun
prims.o libcamlrun.a -lm -ldl -lcurses -lpthread
libcamlrun.a(memory.o)(.text+0x60): In function caml_free_for_heap': : undefined reference to aligned_caml_munmap'
collect2: ld returned 1 exit status
make[1]: *** [ocamlrun] Error 1

It's just a typo in my latest modifications. At line 66 of memory.c,
change "aligned_caml_munmap" to "caml_aligned_munmap". I'll fix it
in the CVS tree very soon.

Thanks for the report,

-- Damien

@vicuna
Copy link
Author

vicuna commented Jan 3, 2004

Comment author: administrator

fixed 2003-01-03 -DD

@vicuna vicuna closed this as completed Jan 3, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant