You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6616 Reporter:@whitequark Assigned to:@whitequark Status: closed (set by @xavierleroy on 2016-12-07T10:49:01Z) Resolution: fixed Priority: normal Severity: minor Version: 4.02.1 Fixed in version: 4.02.2+dev / +rc1 Category: ~DO NOT USE (was: OCaml general) Tags: junior_job Monitored by:@gasche
ocamlc -use-runtime without -custom simply embeds the value as the path to the runtime interpreter at the beginning of the file. However, it doesn't prepend '#!', and as a result the executables can't be ran, at least not without directly invoking ocamlrun (which sort of defeats the point of using -use-runtime). It's possible to pass a path starting with #!, but this fails when Symtable tries to autodetect the primitive list. This can be worked around using -use-prims, but then Bytelink tries to absolutize a path starting with #! and breaks it.
This couldn't possibly ever work, and based on git blame, it was never changed since 2001 (!) Am I the first one using it?..