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

Problem compiling: contains no objects #495

Open
JSKim-Ranix opened this issue Jan 4, 2024 · 0 comments
Open

Problem compiling: contains no objects #495

JSKim-Ranix opened this issue Jan 4, 2024 · 0 comments

Comments

@JSKim-Ranix
Copy link

JSKim-Ranix commented Jan 4, 2024

There is a "v2x.asn" file like below.

===================================================================================

V2X DEFINITIONS AUTOMATIC TAGS::= BEGIN

CommTxPDU ::= SEQUENCE {
index INTEGER (1..2147483647),
payload OCTET STRING
}

CommRxPDU ::= SEQUENCE {
psid INTEGER (0..270549119),
payload OCTET STRING
}

V2X-MESSAGE ::= CLASS {
&id OBJECT IDENTIFIER,
&MessageBody
}

Message V2X-MESSAGE ::= {
{&id {1 0 15784 1 0 1}, &MessageBody SEQUENCE OF CommTxPDU} |
{&id {1 0 15784 1 0 2}, &MessageBody SEQUENCE OF CommRxPDU}
}

EndApplicationMessage ::= SEQUENCE
{
endApplication-Message-id V2X-MESSAGE.&id ({Message}),
endApplication-Message-msg V2X-MESSAGE.&MessageBody ({Message}{@endApplication-Message-id})
}
END

===================================================================================

When I run compile, the following error occurs.

===================================================================================

./asn1c -S ./share/asn1c -D ./src -fcompound-names -fincludes-quoted -fline-refs -fwide-types -gen-autotools -pdu=EndApplicationMessage v2x.asn

FATAL: Information Object Set Message contains no objects at line 18
FATAL: Cannot compile "EndApplicationMessage" (20:1) at line 25
FATAL: Cannot compile "EndApplicationMessage" (20:1) at line 25

===================================================================================

The cause of the error is adding "({Message})" and "({Message}{@endApplication-Message-id})".
However, I am unable to delete the part or request modification.
First, it has been determined based on specification(standard) and is already being used by other companies.
Another reason is that the syntex check shows no problems, and compilation proceeds well with other compilers (Obj-system).
And, we've already done so much with the asn1c compiler.
Thank you to everyone who helps.
The share folder is attached.
share.zip

v2x.asn.zip

@JSKim-Ranix JSKim-Ranix changed the title Problem compiling Problem compiling: contains no objects Jan 5, 2024
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

1 participant