You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2023/01/10 10:28:43 UTC

[GitHub] [brpc] xiedeacc opened a new issue, #2080: import bazel in bazel compile error

xiedeacc opened a new issue, #2080:
URL: https://github.com/apache/brpc/issues/2080

   **Describe the bug (描述bug)**
   I import brpc in a bazel repo, first it said lack of crc32c, leveldb, snappy, zlib and some config file, it also need add some condition config to avoid bazel/config not found problem, after I fixed these problem, meet a compile error, how to fix this problem?
   ```
   ERROR: /root/.cache/bazel/_bazel_root/e690f860c4a8dbf4e57f137579fceef1/external/brpc/BUILD.bazel:287:11: Compiling src/butil/iobuf.cpp failed: (Exit 1): gcc failed: error executing command (from target @brpc//:butil) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 75 arguments skipped)
   
   Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
   external/brpc/src/butil/iobuf.cpp: In static member function 'static ssize_t butil::IOBuf::cut_multiple_into_SSL_channel(SSL*, butil::IOBuf* const*, size_t, int*)':
   external/brpc/src/butil/iobuf.cpp:1005:28: error: 'BIO_fd_non_fatal_error' was not declared in this scope
    1005 |                         && BIO_fd_non_fatal_error(errno) == 1)) {
         |                            ^~~~~~~~~~~~~~~~~~~~~~
   external/brpc/src/butil/iobuf.cpp:1025:24: error: 'BIO_fd_non_fatal_error' was not declared in this scope
    1025 |         if (rc <= 0 && BIO_fd_non_fatal_error(errno) == 0) {
         |                        ^~~~~~~~~~~~~~~~~~~~~~
   external/brpc/src/butil/iobuf.cpp: In member function 'ssize_t butil::IOPortal::append_from_SSL_channel(SSL*, int*, size_t)':
   external/brpc/src/butil/iobuf.cpp:1698:28: error: 'BIO_fd_non_fatal_error' was not declared in this scope
    1698 |                         && BIO_fd_non_fatal_error(errno) == 1)) {
         |                            ^~~~~~~~~~~~~~~~~~~~~~
   INFO: Elapsed time: 117.540s, Critical Path: 8.33s
   INFO: 379 processes: 43 internal, 336 linux-sandbox.
   FAILED: Build did NOT complete successfully
   
   ```
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [brpc] xiedeacc commented on issue #2080: import brpc in bazel compile error

Posted by GitBox <gi...@apache.org>.
xiedeacc commented on issue #2080:
URL: https://github.com/apache/brpc/issues/2080#issuecomment-1377338265

   fixed by add openssl to workspace 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [brpc] xiedeacc closed issue #2080: import brpc in bazel compile error

Posted by GitBox <gi...@apache.org>.
xiedeacc closed issue #2080: import brpc in bazel compile error
URL: https://github.com/apache/brpc/issues/2080


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [brpc] xiedeacc commented on issue #2080: import brpc in bazel compile error

Posted by GitBox <gi...@apache.org>.
xiedeacc commented on issue #2080:
URL: https://github.com/apache/brpc/issues/2080#issuecomment-1377274454

   brpc itself can be compiled successfully, but imported as an dependency failed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org