Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-272

REEF.NET build isn't multi-threading-safe

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.12
    • MSBuild, REEF.NET
    • None

    Description

      When trying to compile REEF.NET with the /m switch for enabling multi-threaded builds, I get the following error:

      "c:\src\reef\lang\cs\Org.Apache.REEF.sln" (default target) (1) ->
             "c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj" (default target) (11) ->
             (FinalizeNuspecFiles target) ->
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : Copy-Item : The process cannot access the file  [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : 'C:\src\reef\lang\cs\.nuget\nuspec\Org.Apache.REEF.All.nuspec' because it is  [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : being used by another process. [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : At C:\src\reef\lang\cs\.nuget\finalizeNuspec.ps1:60 char:9 [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : +         Copy-Item $tempNuspecFile.FullName $nuspecDir [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error :     + CategoryInfo          : NotSpecified: (:) [Copy-Item], IOException [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error :     + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Comma  [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error :    nds.CopyItemCommand [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error :   [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : Set-Content : The process cannot access the file  [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : 'C:\src\reef\lang\cs\.nuget\nuspec\Org.Apache.REEF.Client.nuspec' because it  [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : is being used by another process. [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : At C:\src\reef\lang\cs\.nuget\finalizeNuspec.ps1:86 char:9 [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : +         Set-Content -Path $nuspec.FullName -Value $finalizedNuspec [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error : +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error :     + CategoryInfo          : NotSpecified: (:) [Set-Content], IOException [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error :     + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Comma  [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error :    nds.SetContentCommand [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error :   [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
               c:\src\reef\lang\cs\.nuget\NuGet.targets(164,9): error MSB3073: The command "powershell -NonInteractive -NoProfile -Command c:\src\reef\lang\cs\\.nuget\finalizeNuspec.ps1 -SolutionDir c:\src\reef\lang\cs\ -Snapshot -SnapshotNumber
              92" exited with code -1. [c:\src\reef\lang\cs\Org.Apache.REEF.Evaluator\Org.Apache.REEF.Evaluator.csproj]
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              markus.weimer Markus Weimer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: