[BUG]: <linux build error>
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
### vSomeip Version
v3.6.2
### Boost Version
1.88.0
### Environment
Ubuntu 20.04.6
### Describe the bug
1. build boost: ./bootstrap.sh --prefix=$HOME/install && ./b2 --prefix=$HOME/install install -j
2. cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/install -DBOOST_ROOT=$HOME/install -DBoost_LIBRARY_DIR=$HOME/install/lib
**Get this error:**
/vsomeip-3.6.2/implementation/endpoints/src/local_server.cpp: In member function ‘void vsomeip_v3::local_server::add_connection(vsomeip_v3::client_t, std::shared_ptr, std::shared_ptr, uint32_t, std::string)’:
/vsomeip-3.6.2/implementation/endpoints/src/local_server.cpp:184:86: error: conversion from ‘int’ to ‘vsomeip_v3::port_t’ {aka ‘short unsigned int’} may change value [-Werror=conversion]
184 | rh->add_guest(_client, peer_endpoint.address(), peer_endpoint.port() - 1); // -1 taken over from the legacy
| ~~~~~~~~~~~~~~~~~~~~~^~~
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-inconsistent-missing-override’ [-Werror]
cc1plus: error: unrecognized command line option ‘-Wno-tsan’ [-Werror]
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/vsomeip3.dir/build.make:244: CMakeFiles/vsomeip3.dir/implementation/endpoints/src/local_server.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:211: CMakeFiles/vsomeip3.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
### Reproduction Steps
_No response_
### Expected behaviour
_No response_
### Logs and Screenshots
_No response_
Contributor guide
Research direction
Reproduce the build with the listed Boost and CMake commands on Ubuntu 20.04.6, then inspect implementation/endpoints/src/local_server.cpp around line 184 and the compiler-warning flags that produce the reported errors. Done means the vsomeip build completes without the conversion and unrecognized-option failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100