Comments (5)
I no longer have access to an OSX machine, unfortunately.
I just did a rebuild of ASN1SCC in my Debian stable, with...
$ dpkg -l | grep mono- | awk '{print $3}' | sort -u
3.2.8+dfsg-10
...and it built fine. Maybe there's a regression in the version you are using...
from asn1scc.
$ xbuild /p:TargetFrameworkVersion="v4.6"
XBuild Engine Version 12.0
Mono, Version 3.12.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 11/8/2016 9:19:58 PM.
__________________________________________________
/Users/uri/src/asn1scc/Asn1.sln: warning : Ignoring vcproj 'asn1crt'.
/Users/uri/src/asn1scc/Asn1.sln: warning : Failed to find project 6094fc85-8ce9-4716-9255-41c428f3b9ea
/Users/uri/src/asn1scc/Asn1.sln: warning : Don't know how to handle GlobalSection TestCaseManagementSettings, Ignoring.
Project "/Users/uri/src/asn1scc/Asn1.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Debug|Mixed Platforms".
Target Build:
Project "/Users/uri/src/asn1scc/Antlr/Antlr.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Target GetFrameworkPaths:
/opt/local/lib/mono/4.5/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.6' not supported by this toolset (ToolsVersion: 4.0).
Target GetReferenceAssemblyPaths:
/opt/local/lib/mono/4.5/Microsoft.Common.targets: warning : Unable to find framework corresponding to the target framework moniker '.NETFramework,Version=v4.6'. Framework assembly references will be resolved from the GAC, which might not be the intended behavior.
Target PreBuildEvent:
Executing: java -jar /Users/uri/src/asn1scc/Antlr/antlr313/antlr-3.2.jar -o /Users/uri/src/asn1scc/Antlr/ /Users/uri/src/asn1scc/Antlr/asn1.g
java -jar /Users/uri/src/asn1scc/Antlr/antlr313/antlr-3.2.jar -o /Users/uri/src/asn1scc/Antlr/ /Users/uri/src/asn1scc/Antlr/acn.g
warning(200): /Users/uri/src/asn1scc/Antlr/asn1.g:487:2: Decision can match input such as "{UID, NULL..BIT, BOOLEAN..ENUMERATED, INTEGER..SET, OCTET..UTCTime, OBJECT, RELATIVE_OID}" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
warning(200): /Users/uri/src/asn1scc/Antlr/asn1.g:515:7: Decision can match input such as "L_BRACKET LID {R_BRACKET, COMMA, ':'}" using multiple alternatives: 16, 17
As a result, alternative(s) 17 were disabled for that input
warning(200): /Users/uri/src/asn1scc/Antlr/asn1.g:515:7: Decision can match input such as "L_BRACKET LID LID {R_BRACKET, ':'}" using multiple alternatives: 15, 17
As a result, alternative(s) 17 were disabled for that input
warning(200): /Users/uri/src/asn1scc/Antlr/acn.g:170:2: Decision can match input such as "SIZE NULL_TERMINATED" using multiple alternatives: 1, 4
As a result, alternative(s) 4 were disabled for that input
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /opt/local/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/Antlr.dll acnLexer.cs acnParser.cs asn1Lexer.cs asn1Parser.cs Comments.cs Properties/AssemblyInfo.cs obj/Debug/.NETFramework,Version=v4.6.AssemblyAttribute.cs /target:library /define:"DEBUG;TRACE" /nostdlib /reference:antlr313/antlr.runtime.dll /reference:antlr313/Antlr3.Runtime.dll /reference:antlr313/Antlr3.Utility.dll /reference:antlr313/StringTemplate.dll /reference:/opt/local/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll /reference:/opt/local/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll /reference:/opt/local/lib/mono/gac/System.Data.DataSetExtensions/4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll /reference:/opt/local/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll /reference:/opt/local/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll /reference:/opt/local/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll /reference:/opt/local/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll /warn:4
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
Task "Csc" execution -- FAILED
Done building target "CoreCompile" in project "/Users/uri/src/asn1scc/Antlr/Antlr.csproj".-- FAILED
Done building project "/Users/uri/src/asn1scc/Antlr/Antlr.csproj".-- FAILED
Project "/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj" (default target(s)):
/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj: error : Target named 'Build' not found in the project.
Done building project "/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "Build" in project "/Users/uri/src/asn1scc/Asn1.sln".-- FAILED
Done building project "/Users/uri/src/asn1scc/Asn1.sln".-- FAILED
Build FAILED.
Warnings:
/Users/uri/src/asn1scc/Asn1.sln: warning : Ignoring vcproj 'asn1crt'.
/Users/uri/src/asn1scc/Asn1.sln: warning : Failed to find project 6094fc85-8ce9-4716-9255-41c428f3b9ea
/Users/uri/src/asn1scc/Asn1.sln: warning : Don't know how to handle GlobalSection TestCaseManagementSettings, Ignoring.
/Users/uri/src/asn1scc/Asn1.sln (default targets) ->
(Build target) ->
/Users/uri/src/asn1scc/Antlr/Antlr.csproj (default targets) ->
/opt/local/lib/mono/4.5/Microsoft.Common.targets (GetFrameworkPaths target) ->
/opt/local/lib/mono/4.5/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.6' not supported by this toolset (ToolsVersion: 4.0).
/Users/uri/src/asn1scc/Asn1.sln (default targets) ->
(Build target) ->
/Users/uri/src/asn1scc/Antlr/Antlr.csproj (default targets) ->
/opt/local/lib/mono/4.5/Microsoft.Common.targets (GetReferenceAssemblyPaths target) ->
/opt/local/lib/mono/4.5/Microsoft.Common.targets: warning : Unable to find framework corresponding to the target framework moniker '.NETFramework,Version=v4.6'. Framework assembly references will be resolved from the GAC, which might not be the intended behavior.
Errors:
/Users/uri/src/asn1scc/Asn1.sln (default targets) ->
(Build target) ->
/Users/uri/src/asn1scc/Antlr/Antlr.csproj (default targets) ->
/opt/local/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->
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
/Users/uri/src/asn1scc/Asn1.sln (default targets) ->
(Build target) ->
/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj (default targets) ->
/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj: error : Target named 'Build' not found in the project.
5 Warning(s)
32 Error(s)
Time Elapsed 00:00:24.8065560
$ xbuild /p:TargetFrameworkVersion="v4.0"
XBuild Engine Version 12.0
Mono, Version 3.12.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 11/8/2016 9:26:32 PM.
__________________________________________________
/Users/uri/src/asn1scc/Asn1.sln: warning : Ignoring vcproj 'asn1crt'.
/Users/uri/src/asn1scc/Asn1.sln: warning : Failed to find project 6094fc85-8ce9-4716-9255-41c428f3b9ea
/Users/uri/src/asn1scc/Asn1.sln: warning : Don't know how to handle GlobalSection TestCaseManagementSettings, Ignoring.
Project "/Users/uri/src/asn1scc/Asn1.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Debug|Mixed Platforms".
Target Build:
Project "/Users/uri/src/asn1scc/Antlr/Antlr.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Target PreBuildEvent:
Executing: java -jar /Users/uri/src/asn1scc/Antlr/antlr313/antlr-3.2.jar -o /Users/uri/src/asn1scc/Antlr/ /Users/uri/src/asn1scc/Antlr/asn1.g
java -jar /Users/uri/src/asn1scc/Antlr/antlr313/antlr-3.2.jar -o /Users/uri/src/asn1scc/Antlr/ /Users/uri/src/asn1scc/Antlr/acn.g
warning(200): /Users/uri/src/asn1scc/Antlr/asn1.g:487:2: Decision can match input such as "{UID, NULL..BIT, BOOLEAN..ENUMERATED, INTEGER..SET, OCTET..UTCTime, OBJECT, RELATIVE_OID}" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
warning(200): /Users/uri/src/asn1scc/Antlr/asn1.g:515:7: Decision can match input such as "L_BRACKET LID {R_BRACKET, COMMA, ':'}" using multiple alternatives: 16, 17
As a result, alternative(s) 17 were disabled for that input
warning(200): /Users/uri/src/asn1scc/Antlr/asn1.g:515:7: Decision can match input such as "L_BRACKET LID LID {R_BRACKET, ':'}" using multiple alternatives: 15, 17
As a result, alternative(s) 17 were disabled for that input
warning(200): /Users/uri/src/asn1scc/Antlr/acn.g:170:2: Decision can match input such as "SIZE NULL_TERMINATED" using multiple alternatives: 1, 4
As a result, alternative(s) 4 were disabled for that input
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
Target CoreCompile:
Tool /opt/local/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/Antlr.dll acnLexer.cs acnParser.cs asn1Lexer.cs asn1Parser.cs Comments.cs Properties/AssemblyInfo.cs /target:library /define:"DEBUG;TRACE" /nostdlib /reference:antlr313/antlr.runtime.dll /reference:antlr313/Antlr3.Runtime.dll /reference:antlr313/Antlr3.Utility.dll /reference:antlr313/StringTemplate.dll /reference:/opt/local/lib/mono/4.0/System.dll /reference:/opt/local/lib/mono/4.0/System.Xml.Linq.dll /reference:/opt/local/lib/mono/4.0/System.Data.DataSetExtensions.dll /reference:/opt/local/lib/mono/4.0/Microsoft.CSharp.dll /reference:/opt/local/lib/mono/4.0/System.Data.dll /reference:/opt/local/lib/mono/4.0/System.Xml.dll /reference:/opt/local/lib/mono/4.0/System.Core.dll /reference:/opt/local/lib/mono/4.0/mscorlib.dll /warn:4
Target DeployOutputFiles:
Copying file from '/Users/uri/src/asn1scc/Antlr/obj/Debug/Antlr.dll.mdb' to '/Users/uri/src/asn1scc/Antlr/bin/Debug/Antlr.dll.mdb'
Copying file from '/Users/uri/src/asn1scc/Antlr/obj/Debug/Antlr.dll' to '/Users/uri/src/asn1scc/Antlr/bin/Debug/Antlr.dll'
Done building project "/Users/uri/src/asn1scc/Antlr/Antlr.csproj".
Project "/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj" (default target(s)):
/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj: error : Target named 'Build' not found in the project.
Done building project "/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "Build" in project "/Users/uri/src/asn1scc/Asn1.sln".-- FAILED
Done building project "/Users/uri/src/asn1scc/Asn1.sln".-- FAILED
Build FAILED.
Warnings:
/Users/uri/src/asn1scc/Asn1.sln: warning : Ignoring vcproj 'asn1crt'.
/Users/uri/src/asn1scc/Asn1.sln: warning : Failed to find project 6094fc85-8ce9-4716-9255-41c428f3b9ea
/Users/uri/src/asn1scc/Asn1.sln: warning : Don't know how to handle GlobalSection TestCaseManagementSettings, Ignoring.
Errors:
/Users/uri/src/asn1scc/Asn1.sln (default targets) ->
(Build target) ->
/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj (default targets) ->
/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj: error : Target named 'Build' not found in the project.
3 Warning(s)
1 Error(s)
Time Elapsed 00:00:08.7047360
Are you suggesting that I should try with a different Mono?
from asn1scc.
Your log shows "4.5" - did you try with this one?
i..e
$ xbuild /p:TargetFrameworkVersion="v4.5"
from asn1scc.
I don't think it's related to the framework version - the original error reported here drills down to...
"Project "/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj" (default target(s)):
/Users/uri/src/asn1scc/AntlrUtils/AntlrUtils.fsproj: error : Target named 'Build' not found in the project."
It seems that mono 3.12.1.0 (which is the one @mouse07410 is using, had a regression in xbuild
.
To make sure, I also built the compiler in my Arch linux, using the latest mono (4.6) - it worked there as well (with xbuild /p:TargetFrameworkVersion="v4.6"
).
@mouse07410 - can you install an up-to-date (or an older - e.g 3.2.8, the one used in Debian stable) version of Mono?
from asn1scc.
Installing the current Mono from http://www.mono-project.com/docs/about-mono/supported-platforms/osx/ resolved this problem. Therefore the bug indeed lies with the Macports mono version.
mono Asn1f2/bin/Debug/Asn1f2.exe
No input files
Semantix ASN.1 Compiler
Current Version is: 3.3.07
Usage:
asn1 <OPTIONS> file1, file2, ..., fileN
Where OPTIONS are:
. . . . .
Thanks!
from asn1scc.
Related Issues (20)
- [SCALA] wrong method call HOT 2
- typedef byte compatibility issue HOT 1
- [Feature request] "Namespaced" include paths HOT 1
- Lack of two declarations HOT 1
- C global constant variable name collision HOT 2
- PER Real codec does not handle special cases according to standard HOT 1
- ACN optional choice with determinant HOT 5
- ACN optional choice with determinant and present-when HOT 2
- Failure when encoding/decoding messages in Streaming Mode with large Bit Strings (and smaller BitStream buffers) HOT 3
- Function optimisation in the RTL HOT 2
- Support for Explicit Bit Naming in XML Output and Python/XML Backends HOT 1
- --field-prefix AUTO Flag Causes Command to Hang HOT 1
- XER decoding and -slim
- pErrCode not set in ACN decoder for OCTET STRING with external size HOT 1
- Telecommunications support HOT 1
- Append Functions are not hierarchical
- ACN Support for Simple Arithmetic on Size Determinant Values HOT 1
- Inefficient and Incorrect Generated Code for CHOICEs HOT 1
- BOOLEAN ACN Encoding Issue HOT 1
- BOOLEAN with true-value check swapped HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asn1scc.