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

ocamlc -custom fails with undefined references to caml_builtin_cprim #8434

Closed
vicuna opened this issue Jan 4, 2004 · 2 comments
Closed

ocamlc -custom fails with undefined references to caml_builtin_cprim #8434

vicuna opened this issue Jan 4, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 4, 2004

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

Bug description

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

matrix41:/tmp> ocamlc -custom test.ml
/usr/lib64/ocaml/libcamlrun.a(dynlink.o)(.text+0x15): In function
lookup_primitive': : undefined reference to caml_names_of_builtin_cprim'
/usr/lib64/ocaml/libcamlrun.a(dynlink.o)(.text+0x1e): In function
lookup_primitive': : undefined reference to caml_names_of_builtin_cprim'
/usr/lib64/ocaml/libcamlrun.a(dynlink.o)(.text+0x3a): In function
lookup_primitive': : undefined reference to caml_builtin_cprim'
/usr/lib64/ocaml/libcamlrun.a(dynlink.o)(.text+0x49): In function
lookup_primitive': : undefined reference to caml_names_of_builtin_cprim'
/usr/lib64/ocaml/libcamlrun.a(startup.o)(.text+0x3b9): In function
parse_command_line': : undefined reference to caml_names_of_builtin_cprim'
/usr/lib64/ocaml/libcamlrun.a(startup.o)(.text+0x3c1): In function
parse_command_line': : undefined reference to caml_names_of_builtin_cprim'
/usr/lib64/ocaml/libcamlrun.a(startup.o)(.text+0x89b): In function
caml_startup_code': : undefined reference to caml_builtin_cprim'
collect2: ld returned 1 exit status
Error while building custom runtime system
Exit 2

matrix41:/tmp> cat test.ml
print_string "foo\n";;

matrix41:/tmp> ocamlc -version
3.07+12 (2004-01-03)

matrix41:/tmp> uname -a
Linux matrix41.cs.caltech.edu 2.6.0-1.21smp #1 SMP Tue Dec 23 19:47:04 EST 2003
x86_64 x86_64 x86_64 GNU/Linux

@vicuna
Copy link
Author

vicuna commented Jan 4, 2004

Comment author: administrator

On Sunday, January 4, 2004, at 04:49 AM, nogin@cs.caltech.edu wrote:

: undefined reference to caml_names_of_builtin_cprim' [...] : undefined reference to caml_builtin_cprim'

Lines 120 and 125 in bytecomp/symtable.ml, add "caml_" at the
obvious place in the printf statements. I'll commit that change
to the CVS tree shortly.

Thanks for the bug report,

-- Damien

@vicuna
Copy link
Author

vicuna commented Jan 4, 2004

Comment author: administrator

fixed 2004-01-04 -DD

@vicuna vicuna closed this as completed Jan 4, 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