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: 5339 Reporter: matt Assigned to:@alainfrisch Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z) Resolution: fixed Priority: normal Severity: major Version: 3.12.1 Category: ~DO NOT USE (was: OCaml general)
Bug description
Hello,
One of my compilation failed during the linking phase, with the following message:
File "caml_startup", line 1, characters 0-1:
Error: Error during linking
Exit code 2 while executing this command:
ocamlfind ocamlopt -o ms_gates.native.dll -linkpkg -package mtsvrac -package gates -output-obj gates/gates_dll.cmx gates/ms_gates_rev.o
After some investigation, it appears that the directive parsing function fails because the last char of the directive string is the closing '"' of an exported symbol. I'm attaching a patch (against rev 195 of http://flexdll.googlecode.com/svn/trunk) that solves the bug, and I hope do not add other one.
Sidenote : this case was encountered during my experiments to use i686-w64-mingw32- cross-compilation tools.
Original bug ID: 5339
Reporter: matt
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.12.1
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hello,
One of my compilation failed during the linking phase, with the following message:
$ ocamlbuild ms_gates.dll
ocamlfind ocamlopt -o ms_gates.native.dll -linkpkg -package mtsvrac -package gates -output-obj gates/gates_dll.cmx gates/ms_gates_rev.o
** Fatal error: Cannot parse directive: -export:"ms_gates_min_max_porte" -export:"ms_gates_get_color" -export:"ms_gates_set_color" -export:"ms_gates_get_mode" -export:"ms_gates_set_mode" -export:"ms_gates_get_synchro" -export:"ms_gates_set_synchro" -export:"ms_gates_set_synchro_with_opt" -export:"ms_gates_get_sme" -export:"ms_gates_set_sme" -export:"ms_gates_get_width" -export:"ms_gates_set_width" -export:"ms_gates_get_shown" -export:"ms_gates_set_shown" -export:"ms_gates_get_active" -export:"ms_gates_set_active" -export:"ms_gates_get_level" -export:"ms_gates_set_level" -export:"ms_gates_get_begin" -export:"ms_gates_set_begin" -export:"ms_gates_compute_ascan_array_u8" -export:"ms_gates_compute_ascan_array_i8" -export:"ms_gates_compute_ascan_array_i16" -export:"ms_gates_compute_u8" -export:"ms_gates_compute_i8" -export:"Java_com_metalscan_ndtcomponents_gatesdevice_GatesDll_computeGates" -export:"ms_gates_compute_i16" -export:"ms_gates_table_size" -export:"ms_gates_mini_maxi" -export:"ms_gates_swap" -export:"ms_gates_suppress_gate" -export:"ms_gates_suppress_gate_with_opt" -export:"ms_gates_add_gate" -export:"ms_gates_add_gate_with_opt" -export:"ms_gates_forget_table" -export:"ms_gates_create_table" -export:"ms_gates_init_ok" -export:"ms_gates_init" -export:"ms_gates_version"
File "caml_startup", line 1, characters 0-1:
Error: Error during linking
Exit code 2 while executing this command:
ocamlfind ocamlopt -o ms_gates.native.dll -linkpkg -package mtsvrac -package gates -output-obj gates/gates_dll.cmx gates/ms_gates_rev.o
After some investigation, it appears that the directive parsing function fails because the last char of the directive string is the closing '"' of an exported symbol. I'm attaching a patch (against rev 195 of http://flexdll.googlecode.com/svn/trunk) that solves the bug, and I hope do not add other one.
Sidenote : this case was encountered during my experiments to use i686-w64-mingw32- cross-compilation tools.
File attachments
The text was updated successfully, but these errors were encountered: