[GH-ISSUE #250] Build issue on LinuxMint 18.1 #221

Closed
opened 2026-02-26 00:32:04 +03:00 by kerem · 7 comments
Owner

Originally created by @lunetic on GitHub (May 30, 2017).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/250

Hello,
on LinuxMint 18.1 with all updates I get these build errors:

/home/linux/nbfc/NoteBookFanControl.sln (Build) ->
(Build target) ->
/home/linux/nbfc/Tests/StagWare.FanControl.Tests/StagWare.FanControl.Tests.csproj (default targets) ->
/usr/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

FanControlTests.cs(52,66): error CS8082: An argument to nameof operator cannot include sub-expression
FanControlTests.cs(97,66): error CS8082: An argument to nameof operator cannot include sub-expression
FanControlTests.cs(193,62): error CS8082: An argument to nameof operator cannot include sub-expression

 4 Warning(s)
 3 Error(s)

This is with nbfc 1.5.0.
With nbfc 1.5.3 I get even more errors and warnings.

mono-complete 4.2.1 and build-essential is installed.

Build on Ubuntu 16.04.2 works ok!

Any idea?

Originally created by @lunetic on GitHub (May 30, 2017). Original GitHub issue: https://github.com/hirschmann/nbfc/issues/250 Hello, on LinuxMint 18.1 with all updates I get these build errors: /home/linux/nbfc/NoteBookFanControl.sln (Build) -> (Build target) -> /home/linux/nbfc/Tests/StagWare.FanControl.Tests/StagWare.FanControl.Tests.csproj (default targets) -> /usr/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) -> FanControlTests.cs(52,66): error CS8082: An argument to nameof operator cannot include sub-expression FanControlTests.cs(97,66): error CS8082: An argument to nameof operator cannot include sub-expression FanControlTests.cs(193,62): error CS8082: An argument to nameof operator cannot include sub-expression 4 Warning(s) 3 Error(s) This is with nbfc 1.5.0. With nbfc 1.5.3 I get even more errors and warnings. mono-complete 4.2.1 and build-essential is installed. Build on Ubuntu 16.04.2 works ok! Any idea?
kerem closed this issue 2026-02-26 00:32:04 +03:00
Author
Owner

@Tilogorn commented on GitHub (Jun 7, 2017):

Can confirm build errors on Linux Mint 18.1

Cloned current master, installed fresh mono-complete 4.2.1

CSC: error CS0518: The predefined type `System.Object' is not defined or imported
CSC: error CS0518: The predefined type `System.ValueType' is not defined or imported
CSC: error CS0518: The predefined type `System.Attribute' is not defined or imported
CSC: error CS0518: The predefined type `System.Int32' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt32' is not defined or imported
CSC: error CS0518: The predefined type `System.Int64' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt64' is not defined or imported
CSC: error CS0518: The predefined type `System.Single' is not defined or imported
CSC: error CS0518: The predefined type `System.Double' is not defined or imported
CSC: error CS0518: The predefined type `System.Char' is not defined or imported
CSC: error CS0518: The predefined type `System.Int16' is not defined or imported
CSC: error CS0518: The predefined type `System.Decimal' is not defined or imported
CSC: error CS0518: The predefined type `System.Boolean' is not defined or imported
CSC: error CS0518: The predefined type `System.SByte' is not defined or imported
CSC: error CS0518: The predefined type `System.Byte' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt16' is not defined or imported
CSC: error CS0518: The predefined type `System.String' is not defined or imported
CSC: error CS0518: The predefined type `System.Enum' is not defined or imported
CSC: error CS0518: The predefined type `System.Delegate' is not defined or imported
CSC: error CS0518: The predefined type `System.MulticastDelegate' is not defined or imported
CSC: error CS0518: The predefined type `System.Void' is not defined or imported
CSC: error CS0518: The predefined type `System.Array' is not defined or imported
CSC: error CS0518: The predefined type `System.Type' is not defined or imported
CSC: error CS0518: The predefined type `System.Collections.IEnumerator' is not defined or imported
CSC: error CS0518: The predefined type `System.Collections.IEnumerable' is not defined or imported
CSC: error CS0518: The predefined type `System.IDisposable' is not defined or imported
CSC: error CS0518: The predefined type `System.IntPtr' is not defined or imported
CSC: error CS0518: The predefined type `System.UIntPtr' is not defined or imported
CSC: error CS0518: The predefined type `System.RuntimeFieldHandle' is not defined or imported
CSC: error CS0518: The predefined type `System.RuntimeTypeHandle' is not defined or imported
CSC: error CS0518: The predefined type `System.Exception' is not defined or imported

 9 Warning(s)
 31 Error(s)
<!-- gh-comment-id:306885231 --> @Tilogorn commented on GitHub (Jun 7, 2017): Can confirm build errors on Linux Mint 18.1 Cloned current master, installed fresh mono-complete 4.2.1 CSC: error CS0518: The predefined type `System.Object' is not defined or imported CSC: error CS0518: The predefined type `System.ValueType' is not defined or imported CSC: error CS0518: The predefined type `System.Attribute' is not defined or imported CSC: error CS0518: The predefined type `System.Int32' is not defined or imported CSC: error CS0518: The predefined type `System.UInt32' is not defined or imported CSC: error CS0518: The predefined type `System.Int64' is not defined or imported CSC: error CS0518: The predefined type `System.UInt64' is not defined or imported CSC: error CS0518: The predefined type `System.Single' is not defined or imported CSC: error CS0518: The predefined type `System.Double' is not defined or imported CSC: error CS0518: The predefined type `System.Char' is not defined or imported CSC: error CS0518: The predefined type `System.Int16' is not defined or imported CSC: error CS0518: The predefined type `System.Decimal' is not defined or imported CSC: error CS0518: The predefined type `System.Boolean' is not defined or imported CSC: error CS0518: The predefined type `System.SByte' is not defined or imported CSC: error CS0518: The predefined type `System.Byte' is not defined or imported CSC: error CS0518: The predefined type `System.UInt16' is not defined or imported CSC: error CS0518: The predefined type `System.String' is not defined or imported CSC: error CS0518: The predefined type `System.Enum' is not defined or imported CSC: error CS0518: The predefined type `System.Delegate' is not defined or imported CSC: error CS0518: The predefined type `System.MulticastDelegate' is not defined or imported CSC: error CS0518: The predefined type `System.Void' is not defined or imported CSC: error CS0518: The predefined type `System.Array' is not defined or imported CSC: error CS0518: The predefined type `System.Type' is not defined or imported CSC: error CS0518: The predefined type `System.Collections.IEnumerator' is not defined or imported CSC: error CS0518: The predefined type `System.Collections.IEnumerable' is not defined or imported CSC: error CS0518: The predefined type `System.IDisposable' is not defined or imported CSC: error CS0518: The predefined type `System.IntPtr' is not defined or imported CSC: error CS0518: The predefined type `System.UIntPtr' is not defined or imported CSC: error CS0518: The predefined type `System.RuntimeFieldHandle' is not defined or imported CSC: error CS0518: The predefined type `System.RuntimeTypeHandle' is not defined or imported CSC: error CS0518: The predefined type `System.Exception' is not defined or imported 9 Warning(s) 31 Error(s)
Author
Owner

@hirschmann commented on GitHub (Jun 8, 2017):

The mono version in the Mint 18.1 repositories is too old.

There are multiple solutions to this problem:

  • Update to Mint 18.2
  • Build NBFC on a Distro with an up-to-date mono (e.g. a Ubuntu 17.04 VM) and copy the binaries to your Mint machine
  • Open the NBFC solution in Monodevelop and disable all the test projects for the ReleaseLinux build configuration
<!-- gh-comment-id:307079277 --> @hirschmann commented on GitHub (Jun 8, 2017): The mono version in the Mint 18.1 repositories is too old. There are multiple solutions to this problem: - Update to Mint 18.2 - Build NBFC on a Distro with an up-to-date mono (e.g. a Ubuntu 17.04 VM) and copy the binaries to your Mint machine - Open the NBFC solution in Monodevelop and disable all the test projects for the _ReleaseLinux_ build configuration
Author
Owner

@hirschmann commented on GitHub (Jun 13, 2017):

The problem should be fixed with commit 3b1721f

<!-- gh-comment-id:308122459 --> @hirschmann commented on GitHub (Jun 13, 2017): The problem should be fixed with commit 3b1721f
Author
Owner

@iguerendiain commented on GitHub (Aug 6, 2017):

The problem is still present after the commit. Same error on LInux Mint 18.2

<!-- gh-comment-id:320505461 --> @iguerendiain commented on GitHub (Aug 6, 2017): The problem is still present after the commit. Same error on LInux Mint 18.2
Author
Owner

@hirschmann commented on GitHub (Aug 7, 2017):

Commit 3b1721f fixes @lunetic's issue only.
@Tilogorn's issue is due to an outdated version of mono.

If you want to build NBFC on Linux, follow these instructions: https://github.com/hirschmann/nbfc/wiki/How-to-build-NBFC#build-on-linux

<!-- gh-comment-id:320770990 --> @hirschmann commented on GitHub (Aug 7, 2017): Commit 3b1721f fixes @lunetic's issue only. @Tilogorn's issue is due to an outdated version of mono. If you want to build NBFC on Linux, follow these instructions: https://github.com/hirschmann/nbfc/wiki/How-to-build-NBFC#build-on-linux
Author
Owner

@iguerendiain commented on GitHub (Aug 7, 2017):

I understand, however, you answerd @Tilogorn with "Update to Mint 18.2" as s possible solution and I wanted to let you know that trying to compile it on Linux Mint 18.2 yields the same result.

What version of Mono should I be using in order to successfully compile NBFC?

Thanks

<!-- gh-comment-id:320772224 --> @iguerendiain commented on GitHub (Aug 7, 2017): I understand, however, you answerd @Tilogorn with "Update to Mint 18.2" as s possible solution and I wanted to let you know that trying to compile it on Linux Mint 18.2 yields the same result. What version of Mono should I be using in order to successfully compile NBFC? Thanks
Author
Owner

@hirschmann commented on GitHub (Aug 7, 2017):

Thanks for the information, I just assumed Mint 18.2 would ship an up-to-date version of mono.

I've successfully built nbfc on Ubuntu/mono 4.6.2, but you don't have to use that specific version.
It's usually easier to update to the latest version, following these instructions: http://www.mono-project.com/download/#download-lin

<!-- gh-comment-id:320779763 --> @hirschmann commented on GitHub (Aug 7, 2017): Thanks for the information, I just assumed Mint 18.2 would ship an up-to-date version of mono. I've successfully built nbfc on Ubuntu/mono 4.6.2, but you don't have to use that specific version. It's usually easier to update to the latest version, following these instructions: http://www.mono-project.com/download/#download-lin
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nbfc-hirschmann#221
No description provided.