Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building CKAN from source: Error: Method 'String.Format' not found #2421

Closed
ghost opened this issue Apr 23, 2018 · 6 comments
Closed

Building CKAN from source: Error: Method 'String.Format' not found #2421

ghost opened this issue Apr 23, 2018 · 6 comments
Labels
Build Issues affecting the build system

Comments

@ghost
Copy link

ghost commented Apr 23, 2018

CKAN Version 1.25.0
KSP Version 1.4.2 + Making History DLC
Linux Mint 18.3 Xfce Edition (x86_64)
No manual edits to CKAN

Problem:
Building CKAN from source fails on Linux Mint 18.3, exception is thrown early on during CAKE install:

./build 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 4940k  100 4940k    0     0  6134k      0 --:--:-- --:--:-- --:--:-- 6129k
Restoring NuGet package Cake.0.23.0.
  GET https://api.nuget.org/v3-flatcontainer/cake/0.23.0/cake.0.23.0.nupkg
  OK https://api.nuget.org/v3-flatcontainer/cake/0.23.0/cake.0.23.0.nupkg 13ms
Installing Cake 0.23.0.
Adding package 'Cake.0.23.0' to folder '/home/nhaede/src/CKAN-1.25.0/_build/lib/nuget'
Added package 'Cake.0.23.0' to folder '/home/nhaede/src/CKAN-1.25.0/_build/lib/nuget'

NuGet Config files used:
    /home/nhaede/src/CKAN-1.25.0/nuget.config
    /home/nhaede/.config/NuGet/NuGet.Config

Feeds used:
    https://api.nuget.org/v3/index.json

Installed:
    1 package(s) to packages.config projects
Error: Method 'String.Format' not found.
Unhandled Exception:
System.MissingMethodException: Method 'Array.Empty' not found.
  at Cake.Core.Diagnostics.CakeBuildLog.Write (Verbosity verbosity, LogLevel level, System.String format, System.Object[] args) <0x40fc1180 + 0x002fb> in <filename unknown>:0 
  at Cake.Core.Diagnostics.LogExtensions.Error (ICakeLog log, Verbosity verbosity, System.String format, System.Object[] args) <0x40fc1130 + 0x00042> in <filename unknown>:0 
  at Cake.Core.Diagnostics.LogExtensions.Error (ICakeLog log, System.String format, System.Object[] args) <0x40fc10f0 + 0x00023> in <filename unknown>:0 
  at Cake.Program.LogException[T] (ICakeLog log, Cake.T ex) <0x40fc0df0 + 0x0014f> in <filename unknown>:0 
  at Cake.Program.Main () <0x40f86d60 + 0x004a3> in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method 'Array.Empty' not found.
  at Cake.Core.Diagnostics.CakeBuildLog.Write (Verbosity verbosity, LogLevel level, System.String format, System.Object[] args) <0x40fc1180 + 0x002fb> in <filename unknown>:0 
  at Cake.Core.Diagnostics.LogExtensions.Error (ICakeLog log, Verbosity verbosity, System.String format, System.Object[] args) <0x40fc1130 + 0x00042> in <filename unknown>:0 
  at Cake.Core.Diagnostics.LogExtensions.Error (ICakeLog log, System.String format, System.Object[] args) <0x40fc10f0 + 0x00023> in <filename unknown>:0 
  at Cake.Program.LogException[T] (ICakeLog log, Cake.T ex) <0x40fc0df0 + 0x0014f> in <filename unknown>:0 
  at Cake.Program.Main () <0x40f86d60 + 0x004a3> in <filename unknown>:0
@HebaruSan
Copy link
Member

Did you install mono-complete?

@HebaruSan HebaruSan added Support Issues that are support requests Build Issues affecting the build system labels Apr 23, 2018
@ghost
Copy link
Author

ghost commented Apr 23, 2018

Yes, I did install mono-complete. In fact I wiped the whole machine and did a fresh install of Mint 18.3 including mono-complete.

Sorry, something went wrong.

@HebaruSan
Copy link
Member

What version of Mono is it? cake-build/cake#1929 suggests this could be due to a bug in older versions of Mono.

Sorry, something went wrong.

@ghost
Copy link
Author

ghost commented Apr 23, 2018

Here's the version info:

Mono JIT compiler version 4.2.1 (Debian 4.2.1.102+dfsg2-7ubuntu4)
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
LLVM: supported, not enabled.
GC: sgen

Sorry, something went wrong.

@HebaruSan
Copy link
Member

Yup, that issue mentions that Mono 4.2.1 would suffer from this. Please install a newer Mono.

@HebaruSan HebaruSan removed the Support Issues that are support requests label Apr 23, 2018
@ghost
Copy link
Author

ghost commented Apr 23, 2018

Confirmed! Installing mono through the official mono-project repositories (http://www.mono-project.com/download/stable/#download-lin) installs mono 5.10.1.47 which works just fine!

Mono JIT compiler version 5.10.1.47 (tarball Tue Apr 17 15:12:35 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: supported, not enabled.
GC: sgen (concurrent by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Issues affecting the build system
Projects
None yet
Development

No branches or pull requests

1 participant