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

Zenoh build fails with specific options #857

Closed
vortex314 opened this issue Mar 22, 2024 · 1 comment
Closed

Zenoh build fails with specific options #857

vortex314 opened this issue Mar 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vortex314
Copy link

Describe the bug

Warning at beginning

warning: output filename collision.
The lib target `zenoh_plugin_storage_manager` in package `zenoh-plugin-storage-manager v0.11.0-dev (/home/lieven/workspace/zenoh/plugins/zenoh-plugin-storage-manager)` has the same output filename as the lib target `zenoh_plugin_storage_manager` in package `zenoh-plugin-storage-manager v0.11.0-dev (/home/lieven/workspace/zenoh/plugins/zenoh-plugin-storage-manager)`.
Colliding filename is: /home/lieven/workspace/zenoh/target/release/deps/libzenoh_plugin_storage_manager.so
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
warning: output filename collision.
The lib target `zenoh_plugin_storage_manager` in package `zenoh-plugin-storage-manager v0.11.0-dev (/home/lieven/workspace/zenoh/plugins/zenoh-plugin-storage-manager)` has the same output filename as the lib target `zenoh_plugin_storage_manager` in package `zenoh-plugin-storage-manager v0.11.0-dev (/home/lieven/workspace/zenoh/plugins/zenoh-plugin-storage-manager)`.
Colliding filename is: /home/lieven/workspace/zenoh/target/release/deps/libzenoh_plugin_storage_manager.so.dwp
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.

Compilation error at the end

   Compiling unix-named-pipe v0.2.0
   Compiling tokio-vsock v0.5.0
   Compiling shared_memory v0.12.4
   Compiling advisory-lock v0.3.0
   Compiling filepath v0.1.2
   Compiling zenoh-link-unixpipe v0.11.0-dev (/home/lieven/workspace/zenoh/io/zenoh-links/zenoh-link-unixpipe)
error: failed to build archive from rlib: No such file or directory

error: could not compile `zenoh-plugin-storage-manager` (test "wildcard") due to previous error
warning: build failed, waiting for other jobs to finish...
./zenoh.sh: line 10: ./target/release/zenohd: No such file or directory

To reproduce

Compilation setup arguments

cargo build --bin zenohd  --features transport_tcp --features transport_serial --release --all-targets -j2

System info

lieven@pcpav2:~/workspace/zenoh$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

@vortex314 vortex314 added the bug Something isn't working label Mar 22, 2024
@vortex314
Copy link
Author

Could be just more a rust / cargo issue : https://users.rust-lang.org/t/crate-type-cdylib-dylib-confuses-cargo-nowadays/25447
Normal cargo build succeeded.

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