core
core copied to clipboard
Cannot build WebSharper.Core.JavaScript on Linux
Environment:
Ubuntu 16.04 x86_64
mono --version
Mono JIT compiler version 5.14.0.177 (tarball Mon Aug 6 09:13:43 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(3.6.0svn-mono-/)
GC: sgen (concurrent by default)
ii dotnet-host 2.1.3-1 amd64 Microsoft .NET Core Host - 2.1.3
ii dotnet-hostfxr-2.0.7 2.0.7-1 amd64 Microsoft .NET Core Host FX Resolver - 2.0.7 2.0.7
ii dotnet-hostfxr-2.1 2.1.3-1 amd64 Microsoft .NET Core Host FX Resolver - 2.1.3 2.1.3
ii dotnet-runtime-2.0.7 2.0.7-1 amd64 Microsoft .NET Core Runtime - 2.0.7 Microsoft.NETCore.App 2.0.7
ii dotnet-runtime-2.1 2.1.3-1 amd64 Microsoft .NET Core Runtime - 2.1.3 Microsoft.NETCore.App 2.1.3
ii dotnet-runtime-deps-2.1 2.1.3-1 amd64 dotnet-runtime-deps-2.1 2.1.3
ii dotnet-sdk-2.1 2.1.401-1 amd64 Microsoft .NET Core SDK 2.1.401
[..]
Restore completed in 108.05 ms for /tmp/websharper/src/compiler/WebSharper.CSharp/WebSharper.CSharp.fsproj.
Restore completed in 108.05 ms for /tmp/websharper/src/compiler/WebSharper.Compiler.FSharp/WebSharper.Compiler.FSharp.fsproj.
Restore completed in 108.05 ms for /tmp/websharper/src/compiler/WebSharper.Compiler.CSharp/WebSharper.Compiler.CSharp.fsproj.
Restore completed in 108.03 ms for /tmp/websharper/src/compiler/WebSharper.CSharp.Analyzer/WebSharper.CSharp.Analyzer.fsproj.
Restore completed in 2 ms for /tmp/websharper/src/compiler/WebSharper.Core.JavaScript/WebSharper.Core.JavaScript.fsproj.
Restore completed in 2.38 ms for /tmp/websharper/src/compiler/WebSharper.Core/WebSharper.Core.fsproj.
Restore completed in 4.85 ms for /tmp/websharper/src/compiler/WebSharper.Compiler/WebSharper.Compiler.fsproj.
Restore completed in 39.92 ms for /tmp/websharper/src/compiler/WebSharper.FSharp/WebSharper.FSharp.fsproj.
Restore completed in 1.42 ms for /tmp/websharper/src/compiler/WebSharper.MSBuild.CSharp/WebSharper.MSBuild.CSharp.csproj.
Restore completed in 4.85 ms for /tmp/websharper/src/compiler/WebSharper.InterfaceGenerator/WebSharper.InterfaceGenerator.fsproj.
/usr/share/dotnet/sdk/2.1.401/FSharp/Microsoft.FSharp.Targets(265,9): error MSB6003: The specified task executable "fsc.exe" could not be run. Permission denied [/tmp/websharper/src/compiler/WebSharper.Core.JavaScript/WebSharper.Core.JavaScript.fsproj]
/usr/share/dotnet/sdk/2.1.401/FSharp/Microsoft.FSharp.Targets(265,9): error MSB6003: The specified task executable "fsc.exe" could not be run. Permission denied [/tmp/websharper/src/compiler/WebSharper.Core.JavaScript/WebSharper.Core.JavaScript.fsproj]
WebSharper.MSBuild.CSharp -> /tmp/websharper/build/Debug/CSharp/net46/WebSharper.MSBuild.CSharp.dll
WebSharper.MSBuild.CSharp -> /tmp/websharper/build/Debug/CSharp/netstandard2.0/WebSharper.MSBuild.CSharp.dll
Build FAILED.
/usr/share/dotnet/sdk/2.1.401/FSharp/Microsoft.FSharp.Targets(265,9): error MSB6003: The specified task executable "fsc.exe" could not be run. Permission denied [/tmp/websharper/src/compiler/WebSharper.Core.JavaScript/WebSharper.Core.JavaScript.fsproj]
/usr/share/dotnet/sdk/2.1.401/FSharp/Microsoft.FSharp.Targets(265,9): error MSB6003: The specified task executable "fsc.exe" could not be run. Permission denied [/tmp/websharper/src/compiler/WebSharper.Core.JavaScript/WebSharper.Core.JavaScript.fsproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:08.41
Running build failed.
Error:
System.Exception: Build failed on "build" "WebSharper.Compiler.sln" --configuration Debug
at Microsoft.FSharp.Core.PrintfModule+PrintFormatToStringThenFail@1645[TResult].Invoke (System.String message) [0x00000] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0
at Fake.DotNetCli.Build (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] setBuildParams) [0x0020b] in <5b5f575eccf1c534a74503835e575f5b>:0
at [email protected] (FSI_0005.WebSharper.Fake+BuildMode mode) [0x00012] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at FSI_0005.WebSharper.Fake.build@318 (FSI_0005.WebSharper.Fake+BuildMode mode, FSI_0005.WebSharper.Fake+BuildAction action) [0x000ae] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at [email protected] (FSI_0005.WebSharper.Fake+BuildMode mode, FSI_0005.WebSharper.Fake+BuildAction action) [0x00000] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at Microsoft.FSharp.Collections.SeqModule.Iterate[T] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] action, System.Collections.Generic.IEnumerable`1[T] source) [0x0002c] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0
at [email protected] (Microsoft.FSharp.Core.Unit unitVar0) [0x00005] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x00049] in <5b5f575eccf1c534a74503835e575f5b>:0
---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target Duration
------ --------
WS-Restore 00:00:17.9850129
WS-GenAssemblyInfo 00:00:00.1272288
Prepare 00:00:00.4709612
WS-BuildDebug Failure
Total: 00:00:27.5786078
---------------------------------------------------------------------
Status: Failure
---------------------------------------------------------------------
---------------------------------------------------------------------
1) System.Exception: Build failed on "build" "WebSharper.Compiler.sln" --configuration Debug
at Microsoft.FSharp.Core.PrintfModule+PrintFormatToStringThenFail@1645[TResult].Invoke (System.String message) [0x00000] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0
at Fake.DotNetCli.Build (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] setBuildParams) [0x0020b] in <5b5f575eccf1c534a74503835e575f5b>:0
at [email protected] (FSI_0005.WebSharper.Fake+BuildMode mode) [0x00012] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at FSI_0005.WebSharper.Fake.build@318 (FSI_0005.WebSharper.Fake+BuildMode mode, FSI_0005.WebSharper.Fake+BuildAction action) [0x000ae] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at [email protected] (FSI_0005.WebSharper.Fake+BuildMode mode, FSI_0005.WebSharper.Fake+BuildAction action) [0x00000] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at Microsoft.FSharp.Collections.SeqModule.Iterate[T] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] action, System.Collections.Generic.IEnumerable`1[T] source) [0x0002c] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0
at [email protected] (Microsoft.FSharp.Core.Unit unitVar0) [0x00005] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x00049] in <5b5f575eccf1c534a74503835e575f5b>:0
---------------------------------------------------------------------
It seems that changing the executable flag on this binary:
chmod +x $HOME/.nuget/packages/fsharp.compiler.tools/10.0.2/buildCrossTargeting/../tools/fsc.exe
And registering the CLR exe binfmt to mono:
echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
Will help a bit to continue but later it deliver the following errors:
/usr/share/dotnet/sdk/2.1.401/Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/tmp/websharper/tests/Web/Web.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error MSB3883: Unexpected exception: [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : System.ComponentModel.Win32Exception (13): Permission denied [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow) [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at System.Diagnostics.Process.Start() [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at Microsoft.CodeAnalysis.BuildTasks.ManagedCompiler.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error MSB3883: Unexpected exception: [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : System.ComponentModel.Win32Exception (13): Permission denied [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow) [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at System.Diagnostics.Process.Start() [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
$HOME/.nuget/packages/microsoft.net.compilers/2.8.2/tools/Microsoft.CSharp.Core.targets(52,5): error : at Microsoft.CodeAnalysis.BuildTasks.ManagedCompiler.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/tmp/websharper/tests/WebSharper.CSharp.Sitelets.Tests/WebSharper.CSharp.Sitelets.Tests.csproj]
12 Warning(s)
15 Error(s)
Time Elapsed 00:02:50.98
Running build failed.
Error:
System.Exception: Build failed on "build" "WebSharper.sln" --configuration Debug
at Microsoft.FSharp.Core.PrintfModule+PrintFormatToStringThenFail@1645[TResult].Invoke (System.String message) [0x00000] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0
at Fake.DotNetCli.Build (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] setBuildParams) [0x0020b] in <5b5f575eccf1c534a74503835e575f5b>:0
at [email protected] (FSI_0005.WebSharper.Fake+BuildMode mode) [0x00012] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at FSI_0005.WebSharper.Fake.build@318 (FSI_0005.WebSharper.Fake+BuildMode mode, FSI_0005.WebSharper.Fake+BuildAction action) [0x000ae] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at [email protected] (FSI_0005.WebSharper.Fake+BuildMode mode, FSI_0005.WebSharper.Fake+BuildAction action) [0x00000] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at Microsoft.FSharp.Collections.SeqModule.Iterate[T] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] action, System.Collections.Generic.IEnumerable`1[T] source) [0x0002c] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0
at [email protected] (Microsoft.FSharp.Core.Unit unitVar0) [0x00005] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x00049] in <5b5f575eccf1c534a74503835e575f5b>:0
---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target Duration
------ --------
WS-Restore 00:00:13.7515768
WS-GenAssemblyInfo 00:00:00.1095753
Prepare 00:00:00.2371450
WS-BuildDebug Failure
Total: 00:04:38.7108464
---------------------------------------------------------------------
Status: Failure
---------------------------------------------------------------------
---------------------------------------------------------------------
1) System.Exception: Build failed on "build" "WebSharper.sln" --configuration Debug
at Microsoft.FSharp.Core.PrintfModule+PrintFormatToStringThenFail@1645[TResult].Invoke (System.String message) [0x00000] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0
at Fake.DotNetCli.Build (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] setBuildParams) [0x0020b] in <5b5f575eccf1c534a74503835e575f5b>:0
at [email protected] (FSI_0005.WebSharper.Fake+BuildMode mode) [0x00012] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at FSI_0005.WebSharper.Fake.build@318 (FSI_0005.WebSharper.Fake+BuildMode mode, FSI_0005.WebSharper.Fake+BuildAction action) [0x000ae] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at [email protected] (FSI_0005.WebSharper.Fake+BuildMode mode, FSI_0005.WebSharper.Fake+BuildAction action) [0x00000] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at Microsoft.FSharp.Collections.SeqModule.Iterate[T] (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] action, System.Collections.Generic.IEnumerable`1[T] source) [0x0002c] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0
at [email protected] (Microsoft.FSharp.Core.Unit unitVar0) [0x00005] in <5211c8024ce74d42a5acb0be9624e7cf>:0
at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x00049] in <5b5f575eccf1c534a74503835e575f5b>:0
---------------------------------------------------------------------