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

Bytes and CamlinternalFormat missing from threads stdlib.cma #6544

Closed
vicuna opened this issue Sep 5, 2014 · 1 comment
Closed

Bytes and CamlinternalFormat missing from threads stdlib.cma #6544

vicuna opened this issue Sep 5, 2014 · 1 comment
Assignees
Milestone

Comments

@vicuna
Copy link

vicuna commented Sep 5, 2014

Original bug ID: 6544
Reporter: madroach
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:34:46Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 4.02.0+beta1 / +rc1
Target version: 4.02.1+dev
Category: otherlibs
Monitored by: @gasche

Bug description

Bytes and CamlinternalFormat are missing from threads stdlib.cma leading to linker failures:

ocamlc -I ptests -dtypes -vmthread -g -o bin/ptests.byte unix.cma threads.cma str.cma dynlink.cma ptests/ptests_config.ml ptests/ptests.ml
File "ptests/ptests.ml", line 1:
Error: Error while linking /usr/local/lib/ocaml/vmthreads/stdlib.cma(String):
Reference to undefined global `Bytes'

Steps to reproduce

$ ./configure && gmake world && gmake bootstrap
$ ocamlobjinfo stdlib/stdlib.cma |grep Bytes
Unit name: Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
Unit name: BytesLabels
f6f25f5328b09c590f56c7e37005c501 BytesLabels
4c433013a088edac8556bb94512e4988 Bytes
f6f25f5328b09c590f56c7e37005c501 BytesLabels
$ ocamlobjinfo otherlibs/threads/stdlib.cma |grep Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
4c433013a088edac8556bb94512e4988 Bytes
f6f25f5328b09c590f56c7e37005c501 BytesLabels

Additional information

Patch is attached.

File attachments

@vicuna
Copy link
Author

vicuna commented Sep 18, 2014

Comment author: @gasche

Fixed in 4.02 branch.

@vicuna vicuna closed this as completed Dec 7, 2016
@vicuna vicuna added this to the 4.02.1 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
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

2 participants