-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I am unable to build a project with MLton after MPL has been installed using its make install. I need to build this project using make hmc and I face the following errors:
mlton -verbose 1 -output hmc src/hmc/hmc.mlb
MLton 20210117.153942-gb1f1f0f09-dirty starting
Compile SML starting
Error: $(SML_LIB)/basis/primitive/prim-mlton.sml 181.13-182.43.
Invalid type for _import.
C_Pthread_Key.t * 'a array -> unit
Error: $(SML_LIB)/basis/primitive/prim-mlton.sml 193.13-193.87.
Unknown primitive: Array_update_noWriteBarrier.
Error: $(SML_LIB)/basis/primitive/prim-mlton.sml 196.13-196.68.
Unknown primitive: Ref_assign_noWriteBarrier.
Error: $(SML_LIB)/basis/primitive/prim-mlton.sml 199.13-199.76.
Unknown primitive: Array_sub_noReadBarrier.
Error: $(SML_LIB)/basis/primitive/prim-mlton.sml 202.13-202.59.
Unknown primitive: Ref_deref_noReadBarrier.
Error: $(SML_LIB)/basis/primitive/prim-mlton.sml 215.9-215.48.
Unknown primitive: Ref_cas.
Error: $(SML_LIB)/basis/primitive/prim-mlton.sml 218.9-218.67.
Unknown primitive: Array_cas.
Error: $(SML_LIB)/basis/primitive/prim-mlton.sml 356.9-357.50.
Invalid type for _import.
'a ref * 'b ref * 'c ref * thread -> bool
Compile SML reported errors in 1.55 + 0.78 (34% GC)
MLton 20210117.153942-gb1f1f0f09-dirty reported errors in 1.55 + 0.78 (34% GC)
make: *** [Makefile:34: hmc] Error 1
I have discussed with @MatthewFluet about a very similar issue (MLton/mlton#488 (comment)) who seems to indicate that the problem comes from MPL rather than MLton. Interestingly, I am able to build project using the root Docker shwestrick/mpl... so I don't really understand 🤔
Metadata
Metadata
Assignees
Labels
No labels