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

Having problems compiling grpc folder #67

Open
eduardojj opened this issue Oct 17, 2019 · 4 comments
Open

Having problems compiling grpc folder #67

eduardojj opened this issue Oct 17, 2019 · 4 comments

Comments

@eduardojj
Copy link

When I do make in the grpc directory I get a warning because of a cast in connect.c and it stops compiling because it treats all warnings as errors. Heres the terminal message:

third_party/boringssl/crypto/bio/connect.c: In function ‘conn_callback_ctrl’:
third_party/boringssl/crypto/bio/connect.c:491:29: error: cast between incompatible function types from ‘bio_info_cb’ {aka ‘long int (*)(struct bio_st *, int,  const char *, int,  long int,  long int)’} to ‘int (*)(const struct bio_st *, int,  int)’ [-Werror=cast-function-type]
       data->info_callback = (int (*)(const struct bio_st *, int, int))fp;
                             ^
cc1: all warnings being treated as errors
Makefile:2899: recipe for target '/home/eduardojj/assistant-sdk-cpp/grpc/objs/opt/third_party/boringssl/crypto/bio/connect.o' failed
make: *** [/home/eduardojj/assistant-sdk-cpp/grpc/objs/opt/third_party/boringssl/crypto/bio/connect.o] Error 1

Thank you.

@Fleker
Copy link
Collaborator

Fleker commented Oct 17, 2019

How are you compiling? Can you not treat warnings as errors?

@eduardojj
Copy link
Author

eduardojj commented Oct 17, 2019

How are you compiling? Can you not treat warnings as errors?

I'm only doing make, I already tried make -w and it gave the error but compiled all the other files. I tried changing the makefile content to no avail and even tried to fix the error in the connect.c but the story was the same.
I can try to compile the file alone and see what happens.

EDIT: the compiler i have is gcc

@Fleker
Copy link
Collaborator

Fleker commented Oct 17, 2019

The make I'm using is

GNU Make 4.2.1
Built for x86_64-pc-linux-gnu

@eduardojj
Copy link
Author

The make I'm using is

GNU Make 4.2.1
Built for x86_64-pc-linux-gnu

Im using

GNU Make 4.1
Built for x86_64-pc-linux-gnu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants