Stream: Coq Platform devs & users

Topic: QuickChick installation issues

view this post on Zulip Josef Gharib (Dec 09 2021 at 09:31):

Hello, I'm currently going through QC in the QuickChick Software Foundations book (, but I'm having issues when trying to run "Sample" (for example "Sample (returnGen 42).").
I'm getting the error:
"Could not compile test program: /var/folders/s2/tt05wb8n45zfytbqf5mqkvhh0000gn/T/QuickChick/102654/"

Anyone who knows what may cause this error?

Running on MACOS with Coq Platform.
QuickChick version 1.5.1
Coq version 8.13.2

view this post on Zulip Karl Palmskog (Dec 09 2021 at 09:33):

@Michael Soegtrop could this be due to the Platform not including an OCaml compiler?

view this post on Zulip Karl Palmskog (Dec 09 2021 at 09:35):

@Josef Gharib if you installed the Coq Platform via an installer, something you could try is manually installing it via the opam scripts, e.g.,

Then you should have a full-fledged OCaml system, which might solve this issue.

view this post on Zulip Michael Soegtrop (Dec 09 2021 at 09:39):

It should work since we have smoke tests for QuickChick and these are tested on installed platform. But possibly the smoke test is not sufficient - I will look into this specific case.

@Josef Gharib : please create an issue at

view this post on Zulip Notification Bot (Dec 09 2021 at 09:41):

This topic was moved here from #Miscellaneous > QuickChick installation issues by Karl Palmskog

view this post on Zulip Bas Spitters (Dec 09 2021 at 11:44):

May be related to either:
based on the error message, although I don't see an immediate solution there.

view this post on Zulip Li-yao (Dec 09 2021 at 13:23):

What's the error in the build.log file, where the QuickChick*****.mlfile is located?

Last updated: Jun 03 2023 at 04:30 UTC