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

Compiling 3GPP TS 29.002 ASN.1 files #130

Open
alishir opened this issue Jan 20, 2025 · 1 comment
Open

Compiling 3GPP TS 29.002 ASN.1 files #130

alishir opened this issue Jan 20, 2025 · 1 comment

Comments

@alishir
Copy link
Contributor

alishir commented Jan 20, 2025

Hi,
I downloaded the relevant ASN.1 files from this link. However, when I tried to compile these files with hampi ASN.1 compiler I encountered the following error:

$ rs-asn1c --module test --codec aper -- map/*.EXP                                                                                                   
[2025-01-20T08:02:53Z INFO  asn1_compiler::compiler] Processing file: "map/MAP-CallHandlingOperations.EXP"
[2025-01-20T08:02:54Z INFO  asn1_compiler::compiler] Processing file: "map/MAP-DialogueInformation.EXP"
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::choice] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 1 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::seq] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z WARN  asn1_compiler::parser::asn::types::constructed::choice] No tokens consumed in 2 iterations of the loop
[2025-01-20T08:02:54Z ERROR asn1_compiler::parser::asn::defs] Failed to parse a definition at Token: Token { type: Identifier, span: Span { start: LineColumn { line: 20, column: 0 }, end: LineColumn { line: 20, column: 15 } }, text: "MAP-DialoguePDU" }
Error: Parsing Error: Failed to parse a definition at Token: Token { type: Identifier, span: Span { start: LineColumn { line: 20, column: 0 }, end: LineColumn { line: 20, column: 15 } }, text: "MAP-DialoguePDU" }
@gabhijit
Copy link
Collaborator

gabhijit commented Jan 22, 2025

@alishir : Thanks for reporting the issue.

It appears like there is some issue with the Parser - I ran it with -ddd to get the trace output. Will update the details later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants