fsprojects / fsprojects/Paket

Building fails due to missing fsc.exe

Open
#3,679 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

Missing Paket/src/Paket.Core/../tools/fsc.exe

OS - Ubuntu 18.04

Repro steps
  1. run ./build.sh

Should build. Fails to do so because of missing file.

Cmd line output

Paket version 5.223.0
The last restore is still up to date. Nothing left to do.
Performance:

  • Runtime: 64 milliseconds
    Building project with version: LocalBuild
    Shortened DependencyGraph for Target All:
    <== All
    <== DotnetTest
    <== RunTests
    <== Build
    <== Clean
    <== AssemblyInfo
    <== BuildCore
    <== DotnetBuild
    <== DotnetRestore
    <== InstallDotNetCore

The running order is:

  • Clean
  • AssemblyInfo
  • Build
  • InstallDotNetCore
  • DotnetRestore
  • DotnetBuild
  • BuildCore
  • RunTests
  • DotnetTest
  • All
    Running build with 1 worker
    Starting Target: Clean
    Deleting contents of /home/richard/projects/Paket/bin
    Finished Target: Clean
    Starting Target: AssemblyInfo (==> Clean)
    Created AssemblyInfo file "src/Paket/AssemblyInfo.fs".
    Created AssemblyInfo file "src/Paket.Core/AssemblyInfo.fs".
    Created AssemblyInfo file "/home/richard/projects/Paket/src/Paket.Bootstrapper/Properties/AssemblyInfo.cs".
    Finished Target: AssemblyInfo
    Starting Target: Build (==> Clean, AssemblyInfo)
    Building project: /home/richard/projects/Paket/Paket.sln
    /usr/bin/xbuild /home/richard/projects/Paket/Paket.sln /t:Rebuild /p:RestorePackages="False" /p:Configuration="Release" /p:VisualStudioVersion="14.0" /p:ToolsVersion="14.0" /logger:Fake.MsBuildLogger+ErrorLogger,"/home/richard/projects/Paket/packages/build/FAKE/tools/FakeLib.dll"
    XBuild Engine Version 14.0
    Mono, Version 4.6.2.0
    Copyright (C) 2005-2013 Various Mono authors

Build started 02/10/2019 11:30:53.


/home/richard/projects/Paket/tests/Paket.Bootstrapper.Tests/Paket.Bootstrapper.Tests.csproj: warning : Could not find project file //.paket/paket.targets, to import. Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection ExtensibilityGlobals, Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection Performance, Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection Performance, Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection Performance, Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection Performance, Ignoring.
Project "/home/richard/projects/Paket/Paket.sln" (Rebuild target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Target Rebuild:
Project "/home/richard/projects/Paket/src/Paket.Bootstrapper/Paket.Bootstrapper.csproj" (Rebuild target(s)):
Target CoreClean:
Deleting file '/home/richard/projects/Paket/src/Paket.Bootstrapper/obj/Release/.NETFramework,Version=v4.5.AssemblyAttribute.cs'
Deleting file '/home/richard/projects/Paket/src/Paket.Bootstrapper/obj/Release/paket.bootstrapper.exe'
Deleting file '/home/richard/projects/Paket/src/Paket.Bootstrapper/obj/Release/paket.bootstrapper.exe.mdb'
Deleting file '/home/richard/projects/Paket/src/Paket.Bootstrapper/obj/Release/Paket.Bootstrapper.csproj.FilesWrittenAbsolute.txt'
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /usr/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:pdbonly /optimize+ /out:obj/Release/paket.bootstrapper.exe ArgumentParser.cs BootstrapperHelper.cs BootstrapperOptions.cs DownloadStrategies/IDownloadStrategy.cs DownloadStrategies/IHaveEffectiveStrategy.cs InstallKind/InstallAsTool.cs PaketHashFile.cs Properties/InternalsVisibleTo.cs PaketDependencies.cs PaketRunner.cs Verbosity.cs WindowsProcessArguments.cs DownloadStrategies/CacheDownloadStrategy.cs HelperProxies/IWebRequestProxy.cs HelperProxies/WebRequestProxy.cs DownloadArguments.cs EnvProxy.cs HelperProxies/FileSystemProxy.cs DownloadStrategies/GitHubDownloadStrategy.cs DownloadStrategies/DownloadStrategy.cs HelperProxies/IFileSystemProxy.cs DownloadStrategies/NugetDownloadStrategy.cs ConsoleImpl.cs Program.cs Properties/AssemblyInfo.cs SemVer.cs DownloadStrategies/TemporarilyIgnoreUpdatesDownloadStrategy.cs HelperProxies/DateTimeProxy.cs obj/Release/.NETFramework,Version=v4.5.AssemblyAttribute.cs /target:exe /unsafe- /define:TRACE /nostdlib /platform:AnyCPU /reference:/usr/lib/mono/4.5/System.dll /reference:/usr/lib/mono/4.5/System.Configuration.dll /reference:/usr/lib/mono/4.5/System.Data.dll /reference:/usr/lib/mono/4.5/System.IO.Compression.FileSystem.dll /reference:/usr/lib/mono/4.5/System.Xml.dll /reference:/usr/lib/mono/4.5/System.Xml.Linq.dll /reference:/usr/lib/mono/4.5/System.Core.dll /reference:/usr/lib/mono/4.5//mscorlib.dll /warn:4
Program.cs(42,21): warning CS0219: The variable `exeInWorkingDir' is assigned but its value is never used
Target DeployOutputFiles:
Copying file from '/home/richard/projects/Paket/src/Paket.Bootstrapper/obj/Release/paket.bootstrapper.exe.mdb' to '/home/richard/projects/Paket/bin/paket.bootstrapper.exe.mdb'
Copying file from '/home/richard/projects/Paket/src/Paket.Bootstrapper/obj/Release/paket.bootstrapper.exe' to '/home/richard/projects/Paket/bin/paket.bootstrapper.exe'
Done building project "/home/richard/projects/Paket/src/Paket.Bootstrapper/Paket.Bootstrapper.csproj".
Project "/home/richard/projects/Paket/src/Paket.Core/Paket.Core.fsproj" (Rebuild target(s)):
Target CoreClean:
Deleting file '/home/richard/projects/Paket/src/Paket.Core/obj/Release/.NETFramework,Version=v4.5.AssemblyAttribute.fs'
Deleting file '/home/richard/projects/Paket/src/Paket.Core/obj/Release/Paket.Restore.targets'
Deleting file '/home/richard/projects/Paket/src/Paket.Core/obj/Release/Paket.Core.fsproj.FilesWrittenAbsolute.txt'
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Target CopyFilesMarkedCopyLocal:
Copying file from '/home/richard/projects/Paket/packages/Chessie/lib/net40/Chessie.dll' to '/home/richard/projects/Paket/bin/Chessie.dll'
Copying file from '/home/richard/projects/Paket/packages/FSharp.Core/lib/net45/FSharp.Core.dll' to '/home/richard/projects/Paket/bin/FSharp.Core.dll'
Copying file from '/home/richard/projects/Paket/packages/Mono.Cecil/lib/net40/Mono.Cecil.dll' to '/home/richard/projects/Paket/bin/Mono.Cecil.dll'
Copying file from '/home/richard/projects/Paket/packages/Mono.Cecil/lib/net40/Mono.Cecil.Mdb.dll' to '/home/richard/projects/Paket/bin/Mono.Cecil.Mdb.dll'
Copying file from '/home/richard/projects/Paket/packages/Mono.Cecil/lib/net40/Mono.Cecil.Pdb.dll' to '/home/richard/projects/Paket/bin/Mono.Cecil.Pdb.dll'
Copying file from '/home/richard/projects/Paket/packages/Mono.Cecil/lib/net40/Mono.Cecil.Rocks.dll' to '/home/richard/projects/Paket/bin/Mono.Cecil.Rocks.dll'
Copying file from '/home/richard/projects/Paket/packages/Newtonsoft.Json/lib/net45/Newtonsoft.Json.dll' to '/home/richard/projects/Paket/bin/Newtonsoft.Json.dll'
Copying file from '/home/richard/projects/Paket/packages/System.Runtime.InteropServices.RuntimeInformation/lib/net45/System.Runtime.InteropServices.RuntimeInformation.dll' to '/home/richard/projects/Paket/bin/System.Runtime.InteropServices.RuntimeInformation.dll'
Target CopyNonResxEmbeddedResources:
Copying file from '/home/richard/projects/Paket/src/Paket.Core/embedded/Paket.Restore.targets' to '/home/richard/projects/Paket/src/Paket.Core/obj/Release/Paket.Restore.targets'
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
/home/richard/projects/Paket/packages/FSharp.Compiler.Tools/tools/Microsoft.FSharp.Targets: error : Tool executable '/home/richard/projects/Paket/src/Paket.Core/../tools/fsc.exe' could not be found
Task "Fsc" execution -- FAILED
Done building target "CoreCompile" in project "/home/richard/projects/Paket/src/Paket.Core/Paket.Core.fsproj".-- FAILED
Done building project "/home/richard/projects/Paket/src/Paket.Core/Paket.Core.fsproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "Rebuild" in project "/home/richard/projects/Paket/Paket.sln".-- FAILED
Done building project "/home/richard/projects/Paket/Paket.sln".-- FAILED

Build FAILED.

Warnings:

/home/richard/projects/Paket/tests/Paket.Bootstrapper.Tests/Paket.Bootstrapper.Tests.csproj: warning : Could not find project file //.paket/paket.targets, to import. Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection ExtensibilityGlobals, Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection Performance, Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection Performance, Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection Performance, Ignoring.
/home/richard/projects/Paket/Paket.sln: warning : Don't know how to handle GlobalSection Performance, Ignoring.

/home/richard/projects/Paket/Paket.sln (Rebuild) ->
(Rebuild target) ->
/home/richard/projects/Paket/src/Paket.Bootstrapper/Paket.Bootstrapper.csproj (Rebuild) ->
/usr/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) ->

Program.cs(42,21): warning CS0219: The variable `exeInWorkingDir' is assigned but its value is never used

Errors:

/home/richard/projects/Paket/Paket.sln (Rebuild) ->
(Rebuild target) ->
/home/richard/projects/Paket/src/Paket.Core/Paket.Core.fsproj (Rebuild) ->
/home/richard/projects/Paket/packages/FSharp.Compiler.Tools/tools/Microsoft.FSharp.Targets (CoreCompile target) ->

/home/richard/projects/Paket/packages/FSharp.Compiler.Tools/tools/Microsoft.FSharp.Targets: error : Tool executable '/home/richard/projects/Paket/src/Paket.Core/../tools/fsc.exe' could not be found

 7 Warning(s)
 1 Error(s)

Time Elapsed 00:00:00.7752950
Running build failed.
Error:
Building /home/richard/projects/Paket/Paket.sln failed with exitcode 1.


Build Time Report

Target Duration


Clean 00:00:00.2944593
AssemblyInfo 00:00:00.0202190
Build Failure
Total: 00:00:01.6619180

Status: Failure


  1. Building /home/richard/projects/Paket/Paket.sln failed with exitcode 1.
  2. : /home/richard/projects/Paket/packages/FSharp.Compiler.Tools/tools/Microsoft.FSharp.Targets(0,0): Tool executable '/home/richard/projects/Paket/src/Paket.Core/../tools/fsc.exe' could not be found

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ./build.sh and inspect src/Paket.Core/Paket.Core.fsproj alongside packages/FSharp.Compiler.Tools/tools/Microsoft.FSharp.Targets, which reports the missing ../tools/fsc.exe. Reproduce the failure on the stated Ubuntu setup, then verify that the build completes successfully without the missing compiler executable error.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.