Replies: 2 comments 1 reply
-
Hmm, that's weird. I just tried it with Rust 1.87 on Arch Linux and it worked. It seems CentOS deviate from other Linux distributions. Can you try to build with |
Beta Was this translation helpful? Give feedback.
0 replies
-
@elBoberido Thx! It resolves the previous issues. Now I encountered the new issue. Compiling toml_edit v0.22.22
Compiling iceoryx2-bb-container v0.6.1 (/trunk/branch/socket/iceoryx2/iceoryx2-bb/container)
Compiling cdr v0.2.4
Compiling iceoryx2-bb-system-types v0.6.1 (/trunk/branch/socket/iceoryx2/iceoryx2-bb/system-types)
Compiling iceoryx2-bb-posix v0.6.1 (/trunk/branch/socket/iceoryx2/iceoryx2-bb/posix)
Compiling toml v0.8.19
Compiling iceoryx2-bb-memory v0.6.1 (/trunk/branch/socket/iceoryx2/iceoryx2-bb/memory)
Compiling iceoryx2-cal v0.6.1 (/trunk/branch/socket/iceoryx2/iceoryx2-cal)
Compiling iceoryx2 v0.6.1 (/trunk/branch/socket/iceoryx2/iceoryx2)
Compiling iceoryx2-ffi v0.6.1 (/trunk/branch/socket/iceoryx2/iceoryx2-ffi/ffi)
Finished `release` profile [optimized] target(s) in 30.67s
[ 0%] Built target iceoryx2-build-step
[ 0%] Building C object examples/c/discovery/CMakeFiles/example_c_discovery.dir/src/main.c.o
[ 1%] Linking C executable example_c_discovery
[ 1%] Built target example_c_discovery
[ 1%] Building C object examples/c/domains/CMakeFiles/example_c_domains_publisher.dir/src/publisher.c.o
[ 2%] Linking C executable example_c_domains_publisher
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../../rust/native/release/libiceoryx2_ffi.a(iceoryx2_pal_posix-1f2cd3b544dafd3d.iceoryx2_pal_posix.a375812d70f47f7-cgu.1.rcgu.o): in function `iceoryx2_pal_posix::platform::mman::shm_open':
iceoryx2_pal_posix.a375812d70f47f7-cgu.1:(.text._ZN18iceoryx2_pal_posix8platform4mman8shm_open17h1b4b735648cf8bf7E+0x2): undefined reference to `shm_open'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../../rust/native/release/libiceoryx2_ffi.a(iceoryx2_pal_posix-1f2cd3b544dafd3d.iceoryx2_pal_posix.a375812d70f47f7-cgu.1.rcgu.o): in function `iceoryx2_pal_posix::platform::mman::shm_unlink':
iceoryx2_pal_posix.a375812d70f47f7-cgu.1:(.text._ZN18iceoryx2_pal_posix8platform4mman10shm_unlink17h64b19f43a6d05e8aE+0x2): undefined reference to `shm_unlink'
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../../../rust/native/release/libiceoryx2_ffi.a(std-769ac7a9899f22f3.std.ab9b65b5f5dd2f44-cgu.0.rcgu.o): in function `std::sys::pal::unix::weak::fetch':
/rustc/17067e9ac6d7ecb70e50f92c1944e545188d2359/library/std/src/sys/pal/unix/weak.rs:141: undefined reference to `dlsym'
collect2: error: ld returned 1 exit status
gmake[2]: *** [examples/c/domains/CMakeFiles/example_c_domains_publisher.dir/build.make:98: examples/c/domains/example_c_domains_publisher] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:678: examples/c/domains/CMakeFiles/example_c_domains_publisher.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My OS is CentOS7 with gcc 11.2.1.
I downloaded the code from github.
I executed "cmake -S . -B target/ffi/build -DBUILD_EXAMPLES=ON" successfully.
I updated the rustc to 1.87.0.
I executed "cmake --build target/ffi/build" with the following error.
Beta Was this translation helpful? Give feedback.
All reactions