[~/public_html]# php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/9 [====>-----------------------]  11% 1 sec 198.5 
[~/public_html]

Solution:

In app/bootstrap.php (line 14). Enable ini_set('display_errors', 1);

Then run setup:di:compile again, you will see detail error message. It's already tested.

Read more »