Skip to content

[BUG]: <linux build error> #1013

@rainbowball

Description

@rainbowball

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<vsomeip_v3::local_socket>, std::shared_ptr<vsomeip_v3::local_receive_buffer>, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions