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

Unable to compile a program in bytecode, undefined symbol: extern_sp #3043

Closed
vicuna opened this issue Nov 20, 2001 · 1 comment
Closed

Unable to compile a program in bytecode, undefined symbol: extern_sp #3043

vicuna opened this issue Nov 20, 2001 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 20, 2001

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

Bug description

Full_Name: David Mentr'e
Version: 3.03 alpha -with-pthread
OS: Linux RedHat 7.1, glibc 2.2.4, x86
Submission from: pochi.inria.fr (128.93.8.128)

Hello,

I cannot compile my program with O'Caml 3.03 alpha in byte code mode. No
problem
with native code.

The error :
Error on dynamically loaded library:
/local/mentre/install/ocaml-3.03-alpha//lib/ocaml/libthreads.so: undefined
symbol: extern_sp

This error is produced at the final linking step.

I put an archive of this program at the URL:
http://www-rocq.inria.fr/~mentre/tmp/adhocfs-bug-3.03alpha-no-bytecode.tar.gz

Do a 'make' to compile the bytecode program.
Do a 'make opt' to compile the program in native mode.

Sorry if this bug was already reported (I made a quick search but found
nothing).

Best regards,
d.

PS : I've made a ldd on the libthreads.so library:
ldd /local/mentre/install/ocaml-3.03-alpha//lib/ocaml/libthreads.so
libpthread.so.0 => /lib/libpthread.so.0 (0x40015000)
libc.so.6 => /lib/libc.so.6 (0x4002c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)

@vicuna
Copy link
Author

vicuna commented Feb 21, 2002

Comment author: administrator

This problem occurs with ocamlc.opt, not bytecoded ocamlc. Need to include
dummy definitions of the global variables in question in the native runtime.
Fixed 2002-02-21 by XL.

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