fsprojects / FSharp.Data

F# Data: Library for Data Access
https://fsprojects.github.io/FSharp.Data
Other
816 stars 287 forks source link

Failure in build #1331

Closed kam1986 closed 3 years ago

kam1986 commented 4 years ago

Hey I'm trying to build FSharp.Data.dll with the build.sh file. but get this error?

I know why it throw the error with the first error since I use pacman (on manjaro) that I have fixed. i.e. at line 217 in build.fsx I needed to specify the type in order to run it?

please help me

sudo ./build.sh All sudo: apt-get: Kommando ikke fundet (not found) Paket version 6.0.0-alpha050 The last restore is still up to date. Nothing left to do. Performance:

Install the [2.1.403] .NET Core SDK or update [/home/kam/Skrivebord/Learn FSharp/FSharp.Data/global.json] with an installed .NET Core SDK:
Finished (Failed) 'DotNet:version' in 00:00:00.0071789 Retrieving version failed, assuming because it doesn't match global.json, error was: dotnet --version failed with code 145
Starting task 'DotNet:version': running dotnet --version /root/.dotnet/dotnet --version 2.1.403
Finished (Success) 'DotNet:version' in 00:00:00.0666560 run All Building project with version: LocalBuild Shortened DependencyGraph for Target All: <== All
<== NuGet
<== Build
<== AssemblyInfo
<== Clean
<== BuildTests
<== RunTests

The running order is:
Group - 1

Welcome to .NET Core!


Learn more about .NET Core: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

Telemetry


The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

Configuring...


A command is running to populate your local package cache to improve restore speed and enable offline access. This command takes up to one minute to complete and only runs once.
Decompressing 100% 5179 ms
Expanding 100% 18448 ms
No usable version of the libssl was found
Finished (Failed) 'DotNet:build' in 00:00:24.2417510 Finished (Failed) 'Build' in 00:00:24.2427284


Build Time Report


Target Duration


Clean 00:00:00.2957094
AssemblyInfo 00:00:00.0103481
Build 00:00:24.2425535 (dotnet build failed with code 134) NuGet 00:00:00 (skipped) BuildTests 00:00:00 (skipped)
RunTests 00:00:00 (skipped)
All 00:00:00 (skipped)
Total: 00:00:24.5907285 Status: Failure

FsiEvaluationException:

Error:

nitVar) [0x001a5] in <5b5f575eccf1c534a74503835e575f5b>:0

671ef0784b04474c83bb500a849492f2>:0

Output: [Loading /home/kam/Skrivebord/Learn FSharp/FSharp.Data/paket-files/fsharp/FAKE/modules/Octokit/Octokit.fsx Loading /home/kam/Skrivebord/Learn FSharp/FSharp.Data/build.fsx] Starting task 'DotNet:version': running dotnet --version /usr/bin/mono --version /usr/bin/dotnet --version 3.1.108 [/usr/share/dotnet/sdk] Finished (Failed) 'DotNet:version' in 00:00:00.0513888 Desired .NET SDK version = 2.1.403 DotNetCli.isInstalled() = false *** The .NET SDK version '2.1.403' will be installed (no other version was found by FAKE helpers) Starting task 'DotNet:version': running dotnet --version /usr/bin/dotnet --version 3.1.108 [/usr/share/dotnet/sdk]

Input: /home/kam/Skrivebord/Learn FSharp/FSharp.Data/build.fsx \Arguments: C:\fsi.exe --define:MONO

Exception: Yaaf.FSharp.Scripting.FsiEvaluationException: Error while compiling or executing fsharp snippet. ---> System.Exception: Operation failed. The error text has been printed in the error stream. To return the corresponding FSharpErrorInfo use the EvalInteractionNonThrowing, EvalScriptNonThrowing or EvalExpressionNonThrowing at Microsoft.FSharp.Compiler.Interactive.Shell+FsiEvaluationSession.commitResult[a,b] (Microsoft.FSharp.Core.FSharpChoice2[T1,T2] res) [0x0002f] in <5b1072e5033d4b1da7450383e572105b>:0 at Microsoft.FSharp.Compiler.Interactive.Shell+FsiEvaluationSession.EvalScript (System.String filePath) [0x00016] in <5b1072e5033d4b1da7450383e572105b>:0 at Yaaf.FSharp.Scripting.Helper+evalScript@1325.Invoke (System.String arg00) [0x00000] in <5b5f575eccf1c534a74503835e575f5b>:0 at Yaaf.FSharp.Scripting.Helper+save_@1298-2[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00000] in <5b5f575eccf1c534a74503835e575f5b>:0 at Yaaf.FSharp.Scripting.Helper.consoleCapture[a] (System.IO.TextWriter out, System.IO.TextWriter err, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] f) [0x00019] in <5b5f575eccf1c534a74503835e575f5b>:0 at Yaaf.FSharp.Scripting.Helper.redirectOut@1269[a] (System.Boolean preventStdOut, Yaaf.FSharp.Scripting.Helper+OutStreamHelper out, Yaaf.FSharp.Scripting.Helper+OutStreamHelper err, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] f) [0x0006c] in <5b5f575eccf1c534a74503835e575f5b>:0 at Yaaf.FSharp.Scripting.Helper+save_@1297-1[a].Invoke (System.String text) [0x0002a] in <5b5f575eccf1c534a74503835e575f5b>:0 --- End of inner exception stack trace --- at Yaaf.FSharp.Scripting.Helper+save_@1297-1[a].Invoke (System.String text) [0x0009c] in <5b5f575eccf1c534a74503835e575f5b>:0 at Yaaf.FSharp.Scripting.Helper+session@1328.Yaaf-FSharp-Scripting-IFsiSession-EvalScriptWithOutput (System.String path) [0x00000] in <5b5f575eccf1c534a74503835e575f5b>:0 at Fake.FSIHelper.runScriptUncached (System.Boolean useCache, System.Collections.Generic.IEnumerable1[T] fsiOptions, System.Boolean printDetails, Fake.FSIHelper+CacheInfo cacheInfo, System.IO.TextWriter out, System.IO.TextWriter err) [0x002a9] in <5b5f575eccf1c534a74503835e575f5b>:0 /home/kam/Skrivebord/Learn FSharp/FSharp.Data/build.fsx(205,10): warning FS0044: This construct is deprecated. This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module. /home/kam/Skrivebord/Learn FSharp/FSharp.Data/build.fsx(205,5): warning FS0044: This construct is deprecated. This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module. Fake.Core.BuildFailedException: Target 'Build' failed. ---> System.AggregateException: One or more errors occurred. (dotnet build failed with code 134) ---> System.Exception: dotnet build failed with code 134 at Microsoft.FSharp.Core.PrintfModule+PrintFormatToStringThenFail@1645[TResult].Invoke (System.String message) [0x00000] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0 at Fake.DotNet.DotNet.build (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] setParams, System.String project) [0x00068] in <5b5f575eccf1c534a74503835e575f5b>:0 at FSI_0005.Build+clo@165-16.Invoke (System.String proj) [0x00005] in <4e926cae0a3648abb70fe31f81695eff>:0 at Microsoft.FSharp.Collections.SeqModule.Iterate[T] (Microsoft.FSharp.Core.FSharpFunc2[T,TResult] action, System.Collections.Generic.IEnumerable1[T] source) [0x0002c] in <5b5a6cc1904cf4daa7450383c16c5a5b>:0 at FSI_0005.Build+clo@163-15.Invoke (Fake.Core.TargetParameter _arg1) [0x0000a] in <4e926cae0a3648abb70fe31f81695eff>:0 at Fake.Core.TargetModule.runSimpleInternal (Fake.Core.TargetContext context, Fake.Core.Target target) [0x0002b] in <5b5f575eccf1c534a74503835e575f5b>:0 --- End of inner exception stack trace --- --- End of inner exception stack trace --- at Fake.Core.TargetModule.runInternal (System.Boolean singleTarget, System.Int32 parallelJobs, System.String targetName, Microsoft.FSharp.Collections.FSharpList1[T] args) [0x002fa] in <5b5f575eccf1c534a74503835e575f5b>:0 at Fake.Core.TargetModule.runWithDefault$cont@795-1 (System.Boolean allowArgs, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] fDefault, Microsoft.FSharp.Collections.FSharpMap2[TKey,TValue] results, Microsoft.FSharp.Core.Unit unitVar) [0x001a5] in <5b5f575eccf1c534a74503835e575f5b>:0 at <StartupCode$FSI_0005>.$FSI_0005_Build$fsx.main@ () [0x00610] in <4e926cae0a3648abb70fe31f81695eff>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <671ef0784b04474c83bb500a849492f2>:0 Stopped due to error

dsyme commented 3 years ago

Build has been updated should be ok now