OpenDDS is an open source C++ implementation of the Object Management Group (OMG) Data Distribution Service (DDS). OpenDDS also supports Java bindings through JNI.
Originally posted by **vermaete** May 2, 2024
On a Yocto build with meta-opendds the test 'MetaStructTest' is failing.
```
root@rpi4-opendds:/usr/share/DDS_ROOT/tests/DCPS/MetaStruct# ./run_test.pl
run_test_i(Unaligned CDR)
ERROR: Serialized type of a.w does not match. expected 1 received 2
run_test_i(XCDR2)
ERROR: Serialized type of a.w does not match. expected 1 received 2
run_test_i(Unaligned CDR)
ERROR: Serialized type of a.w does not match. expected 1 received 2
run_test_i(XCDR2)
ERROR: Serialized type of a.w does not match. expected 1 received 2
run_test_i(Unaligned CDR)
ERROR: Serialized type of a.w does not match. expected 1 received 2
run_test_i(XCDR2)
ERROR: Serialized type of a.w does not match. expected 1 received 2
ERROR: test returned 1
```
https://github.com/OpenDDS/OpenDDS/blob/master/tests/DCPS/MetaStruct/MetaStructTest.cpp#L128
https://github.com/OpenDDS/OpenDDS/blob/master/tests/DCPS/MetaStruct/MetaStructTest.cpp#L173
Version of OpenDDS: 3.28.0
Version of gcc: 13.2 !
The same test at Debian with GCC12.2 is passing.
I assume it's related to the size of wchar_t?
Br,
Discussed in https://github.com/OpenDDS/OpenDDS/discussions/4620