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

Can not compile using bazel without --copt=-DENABLE_TEST #2400

Closed
owent opened this issue Nov 10, 2023 · 0 comments · Fixed by #2401
Closed

Can not compile using bazel without --copt=-DENABLE_TEST #2400

owent opened this issue Nov 10, 2023 · 0 comments · Fixed by #2401
Labels
bug Something isn't working

Comments

@owent
Copy link
Member

owent commented Nov 10, 2023

Describe your environment

OS: Linux
Compiler: GCC 9
Build system: bazel

Steps to reproduce

bazel build ... --copt=-DENABLE_TEST --copt=-DENABLE_ASYNC_EXPORT

What is the expected behavior?
Build success.

What is the actual behavior?

/data/home/workspace/testopentelemetry/opentelemetry-cpp/ext/test/http/BUILD:4:8: Compiling ext/test/http/curl_http_test.cc failed: (Exit 1): gcc failed: error executing command /usr/local/gcc-9.4.0/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 63 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
ext/test/http/curl_http_test.cc: In member function 'virtual void BasicCurlHttpTests_SendGetRequestAsync_Test::TestBody()':
ext/test/http/curl_http_test.cc:417:17: error: 'class opentelemetry::v1::ext::http::client::curl::HttpClient' has no member named 'WaitBackgroundThreadExit'
  417 |     http_client.WaitBackgroundThreadExit();
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
ext/test/http/curl_http_test.cc: In member function 'virtual void BasicCurlHttpTests_SendPostRequestAsync_Test::TestBody()':
ext/test/http/curl_http_test.cc:490:17: error: 'class opentelemetry::v1::ext::http::client::curl::HttpClient' has no member named 'WaitBackgroundThreadExit'
  490 |     http_client.WaitBackgroundThreadExit();
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
ext/test/http/curl_http_test.cc: In member function 'virtual void BasicCurlHttpTests_FinishInAsyncCallback_Test::TestBody()':
ext/test/http/curl_http_test.cc:519:17: error: 'class opentelemetry::v1::ext::http::client::curl::HttpClient' has no member named 'WaitBackgroundThreadExit'
  519 |     http_client.WaitBackgroundThreadExit();
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
INFO: Elapsed time: 301.171s, Critical Path: 50.79s
INFO: 2683 processes: 371 internal, 2312 linux-sandbox.
FAILED: Build did NOT complete successfully
@owent owent added the bug Something isn't working label Nov 10, 2023
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Nov 10, 2023
@marcalff marcalff removed the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants