assistant-sdk-cpp icon indicating copy to clipboard operation
assistant-sdk-cpp copied to clipboard

Having problems compiling grpc folder

Open eduardojj opened this issue 6 years ago • 4 comments

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.

eduardojj avatar Oct 17 '19 14:10 eduardojj

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

Fleker avatar Oct 17 '19 14:10 Fleker

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

eduardojj avatar Oct 17 '19 14:10 eduardojj

The make I'm using is

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

Fleker avatar Oct 17 '19 15:10 Fleker

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

eduardojj avatar Oct 17 '19 15:10 eduardojj