Bazel build fails on macOS #526
Labels
P3
Priority 3 issue (default for bugs or new feature requests; things we'd like to work on)
platform: apple
An issue with the macOS or iOS implementation
project: connections
An issue with the Connections project
CC=clang CXX=clang++ bazel build -s --check_visibility=false //connections:core --spawn_strategy=standalone --verbose_failures
In file included from ./internal/platform/base_input_stream.h:19:
./internal/platform/exception.h:108:23: error: no matching constructor for initialization of 'location::nearby::Exception'
Exception exception_{Exception::kFailed};
^~~~~~~~~~~~~~~~~~~~
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'const location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
./internal/platform/exception.h:90:20: error: no matching constructor for initialization of 'location::nearby::Exception'
exception_ = Exception{Exception::kSuccess};
^ ~~~~~~~~~~~~~~~~~~~~~
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'const location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from internal/platform/byte_utils.cc:20:
./internal/platform/base_input_stream.h:38:12: error: no matching conversion for functional-style cast from 'size_t' (aka 'unsigned long') to 'ExceptionOr<size_t>' (aka 'ExceptionOr')
return ExceptionOr<size_t>(real_offset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./internal/platform/exception.h:72:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'const location::nearby::ExceptionOr' for 1st argument
class ExceptionOr {
^
./internal/platform/exception.h:72:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'location::nearby::ExceptionOr' for 1st argument
./internal/platform/exception.h:85:12: note: candidate template ignored: could not match 'ExceptionOr' against 'unsigned long'
explicit ExceptionOr(ExceptionOr value) {
^
./internal/platform/exception.h:74:3: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
ExceptionOr() = default;
^
In file included from internal/platform/byte_utils.cc:20:
./internal/platform/base_input_stream.h:43:12: error: no matching constructor for initialization of 'location::nearby::Exception'
return {Exception::kSuccess};
^~~~~~~~~~~~~~~~~~~~~
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'const location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'location::nearby::Exception' for 1st argument
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
4 errors generated.
The text was updated successfully, but these errors were encountered: