Discussion:
[Mono-list] Mono issue on Ubuntu
Vaibhav Vaingankar
2017-07-17 06:20:23 UTC
Permalink
Hi,

When I compile CSharp code on Ubuntu 16.04 using mono-complete, it failed
to compile with following error

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

0 Warning(s)
31 Error(s)

any idea why this is so? or something is missing?

Thanks and regards,
Vaibhav Vaingankar
Andres
2017-07-17 07:33:30 UTC
Permalink
The most likely reason for this is that the Mono version that comes
bundled in Ubuntu (4.2.1) doesn't have 4.6.2 support. Change your
project settings to target 4.6.1 instead, and it will compile.
Post by Vaibhav Vaingankar
Hi,
When I compile CSharp code on Ubuntu 16.04 using mono-complete, it
failed to compile with following error
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
0 Warning(s)
31 Error(s)
any idea why this is so? or something is missing?
Thanks and regards,
Vaibhav Vaingankar
_______________________________________________
http://lists.dot.net/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - Mono-***@lists.d
Vaibhav Vaingankar
2017-07-17 10:44:50 UTC
Permalink
so higher version of mono will support 4.6.2 target? or is there any
specific version of mono?

regards,
Vaibhav Vaingankar



From: Andres <***@gmail.com>
To: Mono-***@lists.ximian.com
Date: 17-07-17 13:03
Subject: Re: [Mono-list] Mono issue on Ubuntu
Sent by: "Mono-list" <mono-list-***@lists.dot.net>



The most likely reason for this is that the Mono version that comes
bundled in Ubuntu (4.2.1) doesn't have 4.6.2 support. Change your
project settings to target 4.6.1 instead, and it will compile.
Post by Vaibhav Vaingankar
Hi,
When I compile CSharp code on Ubuntu 16.04 using mono-complete, it
failed to compile with following error
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
0 Warning(s)
31 Error(s)
any idea why this is so? or something is missing?
Thanks and regards,
Vaibhav Vaingankar
_______________________________________________
http://lists.dot.net/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - Mono-***@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list
Andres
2017-07-17 10:46:58 UTC
Permalink
Yes, newer versions of mono support .NET 4.6.2 version.
Post by Vaibhav Vaingankar
so higher version of mono will support 4.6.2 target? or is there any
specific version of mono?
regards,
Vaibhav Vaingankar
Inactive hide details for Andres ---17-07-2017 13:03:50---The most
likely reason for this is that the Mono version that comes Andres
---17-07-2017 13:03:50---The most likely reason for this is that the
Mono version that comes bundled in Ubuntu (4.2.1) doesn
Date: 17-07-17 13:03
Subject: Re: [Mono-list] Mono issue on Ubuntu
------------------------------------------------------------------------
The most likely reason for this is that the Mono version that comes
bundled in Ubuntu (4.2.1) doesn't have 4.6.2 support. Change your
project settings to target 4.6.1 instead, and it will compile.
Post by Vaibhav Vaingankar
Hi,
When I compile CSharp code on Ubuntu 16.04 using mono-complete, it
failed to compile with following error
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
0 Warning(s)
31 Error(s)
any idea why this is so? or something is missing?
Thanks and regards,
Vaibhav Vaingankar
_______________________________________________
http://lists.dot.net/mailman/listinfo/mono-list
_______________________________________________
http://lists.dot.net/mailman/listinfo/mono-list
_______________________________________________
http://lists.dot.net/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - Mono-***@lists.dot.net
http://lists.dot.ne
Vaibhav Vaingankar
2017-07-17 11:41:58 UTC
Permalink
I was building 4.8.0 version of mono on Ubuntu 16.04(s390x), the build got
aborted.
here is the Stacktrace:

at <unknown> <0xffffffff>
at System.Configuration.ConfigurationElement.get_Properties () [0x00012]
in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ElementInformation..ctor
(System.Configuration.ConfigurationElement,System.Configuration.PropertyInformation)
[0x0001f] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ConfigurationElement.InitFromProperty
(System.Configuration.PropertyInformation) [0x00000] in
<c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ConfigurationElementCollection.InitFromProperty
(System.Configuration.PropertyInformation) [0x00057] in
<c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.PropertyInformation.get_Value () [0x0002d] in
<c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ConfigurationElement.get_Item (string) [0x0002e]
in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ConfigurationElement.get_Item
(System.Configuration.ConfigurationProperty) [0x00007] in
<c88268b2ab694baf8f53384cac3b8843>:0
at System.Diagnostics.TraceSection.get_Listeners () [0x00000] in
<65d66c5eaa6a48038257422d3c294dab>:0
at System.Diagnostics.SystemDiagnosticsSection.InitializeDefault ()
[0x00006] in <65d66c5eaa6a48038257422d3c294dab>:0
at System.Configuration.ConfigurationElement.Reset
(System.Configuration.ConfigurationElement) [0x00023] in
<c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.Configuration.GetSectionInstance
(System.Configuration.SectionInfo,bool) [0x000b8] in
<c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.Configuration.GetSectionInstance
(System.Configuration.SectionInfo,bool) [0x0005f] in
<c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ConfigurationSectionCollection.get_Item (string)
[0x00032] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.Configuration.GetSection (string) [0x00021] in
<c88268b2ab694baf8f53384cac3b8843>:0
at
System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
(string) [0x00006] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ConfigurationManager.GetSection (string)
[0x00005] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.PrivilegedConfigurationManager.GetSection
(string) [0x00000] in <65d66c5eaa6a48038257422d3c294dab>:0
at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection ()
[0x00000] in <65d66c5eaa6a48038257422d3c294dab>:0
at System.Diagnostics.DiagnosticsConfiguration.Initialize () [0x00033] in
<65d66c5eaa6a48038257422d3c294dab>:0
at System.Diagnostics.DiagnosticsConfiguration.get_SwitchSettings ()
[0x00000] in <65d66c5eaa6a48038257422d3c294dab>:0
at System.Diagnostics.Switch.InitializeConfigSettings () [0x00019] in
<65d66c5eaa6a48038257422d3c294dab>:0
at System.Diagnostics.Switch.InitializeWithStatus () [0x0004f] in
<65d66c5eaa6a48038257422d3c294dab>:0
at System.Diagnostics.Switch.get_SwitchSetting () [0x0000d] in
<65d66c5eaa6a48038257422d3c294dab>:0
at System.Diagnostics.BooleanSwitch.get_Enabled () [0x00000] in
<65d66c5eaa6a48038257422d3c294dab>:0
at System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly
(System.Type,string,System.Xml.Serialization.XmlSerializerImplementation&)
[0x0001d] in <01e02d689b4c460495ca118978021e9c>:0
at System.Xml.Serialization.XmlSerializer..ctor (System.Type,string)
[0x00096] in <01e02d689b4c460495ca118978021e9c>:0
at System.Xml.Serialization.XmlSerializer..ctor (System.Type) [0x00000]
in <01e02d689b4c460495ca118978021e9c>:0
at Monodoc.Providers.ErrorProvider.ReadConfig (string) [0x00000] in
<f473cf764b5a4184a0cef04309157754>:0
at Monodoc.Providers.ErrorProvider..ctor (string) [0x00006] in
<f473cf764b5a4184a0cef04309157754>:0
at Mono.Documentation.MDocAssembler.<Run>m__1 (string) [0x00000] in
<3ecec4ced7504597a57e2788a3f10c06>:0
at System.Linq.Enumerable/WhereSelectListIterator`2<TSource_REF,
TResult_REF>.MoveNext () [0x00064] in <2392cff65f724abaaed9de072f62bc4a>:0
at System.Collections.Generic.List`1<T_REF>.InsertRange
(int,System.Collections.Generic.IEnumerable`1<T_REF>) [0x000ff] in
<641d7a4f169d4b6ea62ef011565cf856>:0
at System.Collections.Generic.List`1<T_REF>.AddRange
(System.Collections.Generic.IEnumerable`1<T_REF>) [0x00000] in
<641d7a4f169d4b6ea62ef011565cf856>:0
at Mono.Documentation.MDocAssembler.Run
(System.Collections.Generic.IEnumerable`1<string>) [0x002c0] in
<3ecec4ced7504597a57e2788a3f10c06>:0
at Mono.Documentation.MDoc.Run (string[]) [0x001f6] in
<3ecec4ced7504597a57e2788a3f10c06>:0
at Mono.Documentation.MDoc.Main (string[]) [0x00006] in
<3ecec4ced7504597a57e2788a3f10c06>:0
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) [0x0004e] in
<3ecec4ced7504597a57e2788a3f10c06>:0

on Red Had and Suse servers mono 4.8.0 build perfectly, only on Ubuntu this
issue is seen.
is this because of missing dependency or the broken code?

thanks and regards,
Vaibhav Vaingankar



From: Andres <***@gmail.com>
To: Mono-***@lists.ximian.com
Date: 17-07-17 16:17
Subject: Re: [Mono-list] Mono issue on Ubuntu
Sent by: "Mono-list" <mono-list-***@lists.dot.net>




Yes, newer versions of mono support .NET 4.6.2 version.
Post by Vaibhav Vaingankar
so higher version of mono will support 4.6.2 target? or is there any
specific version of mono?
regards,
Vaibhav Vaingankar
Inactive hide details for Andres ---17-07-2017 13:03:50---The most
likely reason for this is that the Mono version that comes Andres
---17-07-2017 13:03:50---The most likely reason for this is that the
Mono version that comes bundled in Ubuntu (4.2.1) doesn
Date: 17-07-17 13:03
Subject: Re: [Mono-list] Mono issue on Ubuntu
------------------------------------------------------------------------
The most likely reason for this is that the Mono version that comes
bundled in Ubuntu (4.2.1) doesn't have 4.6.2 support. Change your
project settings to target 4.6.1 instead, and it will compile.
Post by Vaibhav Vaingankar
Hi,
When I compile CSharp code on Ubuntu 16.04 using mono-complete, it
failed to compile with following error
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'
Post by Vaibhav Vaingankar
Post by Vaibhav Vaingankar
is not defined or imported
CSC: error CS0518: The predefined type
`System.Collections.IEnumerable'
Post by Vaibhav Vaingankar
Post by Vaibhav Vaingankar
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
0 Warning(s)
31 Error(s)
any idea why this is so? or something is missing?
Thanks and regards,
Vaibhav Vaingankar
_______________________________________________
http://lists.dot.net/mailman/listinfo/mono-list
_______________________________________________
http://lists.dot.net/mailman/listinfo/mono-list
_______________________________________________
http://lists.dot.net/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - Mono-***@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list

Loading...