Ticket MAGETWO-45357
diff -Nuar a/vendor/magento/framework/App/ObjectManager/ConfigLoader/Compiled.php b/vendor/magento/framework/App/ObjectManager/ConfigLoader/Compiled.php
--- a/vendor/magento/framework/App/ObjectManager/ConfigLoader/Compiled.php
+++ b/vendor/magento/framework/App/ObjectManager/ConfigLoader/Compiled.php
@@ -37,6 +37,9 @@ class Compiled implements ConfigLoaderInterface
      */
     public static function getFilePath($area)
     {
+        if ($area == 'setup') {
+            $area = 'global';
+        }
         return BP . '/var/di/' . $area . '.ser';
     }
 }
