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

DSDL compiler error #11711

Closed
NiranjanRavi1993 opened this issue Mar 24, 2019 · 1 comment
Closed

DSDL compiler error #11711

NiranjanRavi1993 opened this issue Mar 24, 2019 · 1 comment

Comments

@NiranjanRavi1993
Copy link

NiranjanRavi1993 commented Mar 24, 2019

Hi,
I cloned the latest version of px4 firmware from git. I added new files in UAVCAN. When I built it,

FAILED: cd /home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan && /usr/bin/python /home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc test/dsdl_test/root_ns_a test/dsdl_test/root_ns_b /home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/…/dsdl/uavcan -Oinclude/dsdlc_generated && /usr/bin/cmake -E touch /home/niran/Firmware/build/px4_fmu-v5_default/libuavcan_dsdlc_run.stamp
Internal error
Traceback (most recent call last):
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/uavcan/dsdl/parser.py”, line 606, in parse**
** return self.parse_source(filename, source_text)**
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/uavcan/dsdl/parser.py”, line 598, in parse_source**
** raise ex**
DsdlException: /home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Invalid type name [uavcan.equipment.teste.TesteReceive ]
Compiler failure
Traceback (most recent call last):
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc”, line 61, in **
** dsdlc_run(args.source_dir, args.incdir, args.outdir)**
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py”, line 58, in run**
** types = run_parser(source_dirs, include_dirs + source_dirs)**
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py”, line 97, in run_parser**
** die(ex)**
** File “/home/niran/Firmware/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/init.py”, line 90, in die**
** raise DsdlCompilerException(str(text))**
DsdlCompilerException: /home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Internal error: /home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Invalid type name [uavcan.equipment.teste.TesteReceive ]
/home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Internal error: /home/niran/Firmware/src/drivers/uavcan/libuavcan/dsdl/uavcan/equipment/teste/761.TesteReceive .uavcan: Invalid type name [uavcan.equipment.teste.TesteReceive ]

I had a previous import from git few weeks ago and this error is not popping up in that one.
Any ideas how this is happening?
it would be great if someone could help me in this.
Thanks and Regards
Niranjan

@NiranjanRavi1993
Copy link
Author

It was a problem with extra spaces in data type names. Closing this issue. Thank you

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