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

Bazel build fails on macOS #526

Open
ek9852 opened this issue Mar 21, 2022 · 1 comment
Open

Bazel build fails on macOS #526

ek9852 opened this issue Mar 21, 2022 · 1 comment
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

Comments

@ek9852
Copy link

ek9852 commented Mar 21, 2022

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.

@ek9852 ek9852 changed the title Build fals on matster Build fail on Mac on master Mar 21, 2022
@bourdakos1 bourdakos1 added platform: apple An issue with the macOS or iOS implementation project: connections An issue with the Connections project labels Mar 19, 2023
@bourdakos1
Copy link
Collaborator

We don’t have support for building with Bazel on macOS at the moment. However, we do support macOS through Swift Package Manager.

@bourdakos1 bourdakos1 added the P3 Priority 3 issue (default for bugs or new feature requests; things we'd like to work on) label Mar 19, 2023
@bourdakos1 bourdakos1 changed the title Build fail on Mac on master Bazel build fails on macOS Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants