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

[Bug] Failed to build SHM examples due to the missing z_move #588

Open
YuanYuYuan opened this issue Aug 12, 2024 · 0 comments
Open

[Bug] Failed to build SHM examples due to the missing z_move #588

YuanYuYuan opened this issue Aug 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@YuanYuYuan
Copy link
Contributor

YuanYuYuan commented Aug 12, 2024

Describe the bug

It would be nice to include the following check in the CI.

To reproduce

cmake -B build -DCMAKE_BUILD_TYPE=Debug -DZENOHC_BUILD_WITH_UNSTABLE_API=true -DZENOHC_BUILD_WITH_SHARED_MEMORY=truecmake --build build --config Debug --target examples
[  0%] Built target cargo
[  3%] Built target z_sub_thr
[  5%] Built target z_delete
[  9%] Built target z_get
[ 13%] Built target z_get_liveliness
[ 15%] Building C object examples/CMakeFiles/z_get_shm.dir/z_get_shm.c.o
src/zenoh-c/examples/z_get_shm.c: In function ‘main’:
src/zenoh-c/examples/z_get_shm.c:106:24: error: incompatible types when assigning to type ‘struct z_moved_bytes_t’ from type ‘z_owned_bytes_t *’
  106 |         opts.payload = &payload;
      |                        ^
make[3]: *** [examples/CMakeFiles/z_get_shm.dir/build.make:76: examples/CMakeFiles/z_get_shm.dir/z_get_shm.c.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:1100: examples/CMakeFiles/z_get_shm.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1003: examples/CMakeFiles/examples.dir/rule] Error 2
make: *** [Makefile:556: examples] Error 2

System info

@YuanYuYuan YuanYuYuan added the bug Something isn't working label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant