【问题标题】:FSharp.Data build error (dotnet build failed with code 134)FSharp.Data 构建错误(dotnet 构建失败,代码 134)
【发布时间】:2020-11-03 11:48:02
【问题描述】:

我正在尝试在 manjaro KDE linux 上构建 FSharp.Data.dll

在 build.fsx 的第 217 行进行一些小错误后,在执行类型推断时出现此错误。

首先,如果 FAKE 已被弃用,那不应该修复吗? 其次我可以看到错误代码134与stackoverflow有关。

sudo ./build.sh 全部 advarsel:libunwind-1.3.1-2 er opdateret - springer over 喜欢... kigger efter konflikter mellem pakker...

帕克(1) libunwind-1.3.1-2

Samlet 安装数量:0,26 MiB Netto opgraderingsstørrelse: 0,00 MiB

:: Fortsæt med 安装? [J/n] n(已经知道了) 包版本 6.0.0-alpha050 上次还原仍然是最新的。无事可做。 性能:

  • 运行时间:56 毫秒 此运行器现在已被 FAKE 5 淘汰,请升级到新的 .Net Core 运行器。见https://fake.build/fake-migrate-to-fake-5.html 要删除此警告,您可以附加“--removeLegacyFakeWarning”参数或将“FAKE_NO_LEGACY_WARNING”环境变量设置为“真” 启动任务“DotNet:version”:运行 dotnet --version /usr/bin/mono --version /usr/bin/dotnet --version
    3.1.108 [/usr/share/dotnet/sdk] 未找到来自 [/home/kam/Skrivebord/Learn FSharp/FSharp.Data/global.json] 的适用于 global.json 版本 [2.1.403] 的兼容安装 .NET Core SDK 安装 [2.1.403] .NET Core SDK 或使用已安装的 .NET Core SDK 更新 [/home/kam/Skrivebord/Learn FSharp/FSharp.Data/global.json]: 在 00:00:00.0482152 完成(失败)'DotNet:version' 所需的 .NET SDK 版本 = 2.1.403 DotNetCli.isInstalled() = false
    *** 将安装 .NET SDK 版本“2.1.403”(FAKE 助手未找到其他版本)
    启动任务“DotNet:version”:运行 dotnet --version /usr/bin/dotnet --version 未找到来自 [/home/../FSharp.Data/global.json] 的适用于 global.json 版本 [2.1.403] 的兼容安装 .NET Core SDK 3.1.108 [/usr/share/dotnet/sdk] 安装 [2.1.403] .NET Core SDK 或使用已安装的 .NET Core SDK 更新 [/home/../FSharp.Data/global.json]: 在 00:00:00.0028985 完成(失败)'DotNet:version' 检索版本失败,假设因为它与 global.json 不匹配,错误是:dotnet --version failed with code 145 (??? what) 启动任务“DotNet:version”:运行 dotnet --version /root/.dotnet/dotnet --version 2.1.403
    在 00:00:00.0614412 完成(成功)'DotNet:version' 全部运行 使用版本构建项目:LocalBuild 目标全部的缩短的依赖关系图:

运行顺序是:
组 - 1

  • 干净
    组 - 2
  • 装配信息
    组 - 3
  • 构建
    组 - 4
  • NuGet
  • 构建测试
    组 - 5
  • 运行测试
    组 - 6
  • 全部
    启动目标“清洁” 在 00:00:00.2714356 完成(成功)“清理” 启动目标“AssemblyInfo” 在 00:00:00.0147815 完成(成功)“AssemblyInfo” 启动目标“构建” 启动任务“DotNet:build”:src/FSharp.Data.DesignTime/FSharp.Data.DesignTime.fsproj /root/.dotnet/dotnet build /v:n /p:SourceLinkCreate=true src/FSharp.Data.DesignTime/FSharp.Data.DesignTime.fsproj --configuration Release 找不到可用的 libssl 版本 在 00:00:00.3258991 完成(失败)'DotNet:build' 在 00:00:00.3269533 完成(失败)“构建”

构建时间报告

目标持续时间


清洁 00:00:00.2701083

AssemblyInfo 00:00:00.0147495

构建 00:00:00.3267785(dotnet 构建失败,代码 134)

NuGet 00:00:00(跳过)

BuildTests 00:00:00(跳过)

RunTests 00:00:00(跳过)

全部 00:00:00(跳过)

总计:00:00:00.6523077

状态:失败

System.Reflection.TargetInvocationException:调用的目标已抛出异常。 ---> Fake.Core.BuildFailedException:目标“构建”失败。 ---> System.AggregateException:发生一个或多个错误。 (dotnet 构建失败,代码 134)---> System.Exception:dotnet 构建失败,代码 134 在 Microsoft.FSharp.Core.PrintfModule+PrintFormatToStringThenFail@1645[TResult].Invoke (System.String message) [0x00000] in :0 在 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] 操作,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] 在 :0 在 Fake.Core.TargetModule.runWithDefault$cont@795-1 (System.Boolean allowArgs, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] fDefault, Microsoft.FSharp.Collections.FSharpMap2[TKey,TValue] 结果, Microsoft.FSharp.Core.Unit unitVar) [0x001a5]在 :0 在 .$FSI_0005_Build$fsx.main@ () [0x00610] 在 :0 在(包装器托管到本机)System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) 在 System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] 参数, System.Globalization.CultureInfo 文化) [0x0006a] 在 中: 0 --- 内部异常堆栈跟踪结束 --- 在 System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] 参数, System.Globalization.CultureInfo 文化) [0x00083] 在 中: 0 在 System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] 参数) [0x00000] in :0 在 Fake.FSIHelper+runScriptCached@360.Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00082] in :0 /home/kam/Skrivebord/Learn FSharp/FSharp.Data/build.fsx(205,10):警告 FS0044:此构造已弃用。此 API 已过时。 FAKE 5 中还没有其他选择。您可以通过移植此模块来提供帮助。 /home/kam/Skrivebord/Learn FSharp/FSharp.Data/build.fsx(205,5):警告 FS0044:此构造已弃用。此 API 已过时。 FAKE 5 中还没有其他选择。您可以通过移植此模块来提供帮助。 Fake.Core.BuildFailedException:目标“构建”失败。 ---> System.AggregateException:发生一个或多个错误。 (dotnet 构建失败,代码 134)---> System.Exception:dotnet 构建失败,代码 134 在 Microsoft.FSharp.Core.PrintfModule+PrintFormatToStringThenFail@1645[TResult].Invoke (System.String message) [0x00000] in :0 在 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] 操作,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] 在 :0 在 Fake.Core.TargetModule.runWithDefault$cont@795-1 (System.Boolean allowArgs, Microsoft.FSharp.Core.FSharpFunc2[T,TResult] fDefault, Microsoft.FSharp.Collections.FSharpMap2[TKey,TValue] 结果, Microsoft.FSharp.Core.Unit unitVar) [0x001a5]在 :0 在 .$FSI_0005_Build$fsx.main@ () [0x00610] 在 :0 在(包装器托管到本机)System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) 在 System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] 参数, System.Globalization.CultureInfo 文化) [0x0006a] 在 中: 0 由于错误而停止

【问题讨论】:

    标签: f# build-error f#-data


    【解决方案1】:

    在继续之前解决此问题:

     A compatible installed .NET Core SDK for global.json version [2.1.403] from [/home/kam/Skrivebord/Learn FSharp/FSharp.Data/global.json] was not found 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:
    

    上面提到的global.json是指sdk版本的fake/dotnet不要以为你已经安装了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-18
      • 2021-08-09
      • 2021-10-10
      • 2022-06-22
      • 2019-09-05
      • 2017-02-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多