Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Warn if num installed to a broken system compiler #11300
This follows on from #11207.
If the num library was installed in a system switch where the user had write permissions to the system compiler's lib directory before #11207 was merged, then fresh installations of the ocamlfind package will detect this "system" installation of num and create a META file for it.
This in turn will cause the num package installation to fail. Annoyingly, this failure only appears once because opam then executes
This patch displays a comprehensive error message the first time, strongly suggesting that the user manually delete the files which were incorrectly installed previously.
If you have a system compiler where num has been manually installed to