Skip to content

Cross-compilers cannot link bytecode executables using custom primitives #6779

@vicuna

Description

@vicuna

Original bug ID: 6779
Reporter: @whitequark
Assigned to: @damiendoligez
Status: closed (set by @xavierleroy on 2016-12-07T10:29:43Z)
Resolution: fixed
Priority: normal
Severity: minor
Target version: 4.02.2+dev / +rc1
Fixed in version: 4.02.2
Category: ~DO NOT USE (was: OCaml general)
Related to: #6845
Monitored by: @gasche

Bug description

The reason is that Symtable.num_of_prim uses Dll, but a cross-compiler cannot load shared libraries at compile-time. Thus a cross-compiler should always build executables with -custom, or at least do that if any cma's using custom primitives are linked in.

Alternatively, just drop the check entirely if cross-compiling. It does not seem to serve any purpose besides making really sure that the primitive actually exists.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions