osx "bazel test" fails with "dyld: Symbol not found: _program_invocation_name"

Đang mở
#121 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
build-system, testing

Hướng nghiên cứu

Tái hiện bazel test //:echo2_integration_test trên macOS được báo cáo và kiểm tra bazel-out/darwin-fastbuild/testlogs/echo2_integration_test/test.log. Bắt đầu với binary echo2_integration_test đang lỗi và cảnh báo Bazel toolchain trong đầu ra; hoàn tất khi test chạy mà không có symbol _program_invocation_name bị thiếu hoặc bị abort.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

OSX 10.15.4

bazel: stable 3.0.0 (bottled)

-- The C compiler identification is AppleClang 11.0.3.11030032
-- The CXX compiler identification is AppleClang 11.0.3.11030032
$ bazel test //:echo2_integration_test

DEBUG: _/private/var/tmp/_bazeluser/a9fc29333019096f53a1d7073ad2f2d9/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:9:_
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_user/a9fc29333019096f53a1d7073ad2f2d9/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:9:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_user/a9fc29333019096f53a1d7073ad2f2d9/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:9:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
INFO: Analyzed target //:echo2_integration_test (0 packages loaded, 0 targets configured).
INFO: Found 1 test target...
FAIL: //:echo2_integration_test (see /private/var/tmp/_bazel_user/a9fc29333019096f53a1d7073ad2f2d9/execroot/envoy_filter_example/bazel-out/darwin-fastbuild/testlogs/echo2_integration_test/test.log)
Target //:echo2_integration_test up-to-date:
  bazel-bin/echo2_integration_test
INFO: Elapsed time: 0.591s, Critical Path: 0.18s
INFO: 2 processes: 2 darwin-sandbox.
INFO: Build completed, 1 test FAILED, 2 total actions
//:echo2_integration_test                                                FAILED in 0.1s
  /private/var/tmp/_bazel_user/a9fc29333019096f53a1d7073ad2f2d9/execroot/envoy_filter_example/bazel-out/darwin-fastbuild/testlogs/echo2_integration_test/test.log

INFO: Build completed, 1 test FAILED, 2 total actions
$ cat /private/var/tmp/_bazel_user/a9fc29333019096f53a1d7073ad2f2d9/execroot/envoy_filter_example/bazel-out/darwin-fastbuild/testlogs/echo2_integration_test/test.log
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //:echo2_integration_test
-----------------------------------------------------------------------------
dyld: Symbol not found: _program_invocation_name
  Referenced from: /private/var/tmp/_bazel_user/a9fc29333019096f53a1d7073ad2f2d9/sandbox/darwin-sandbox/4181/execroot/envoy_filter_example/bazel-out/darwin-fastbuild/bin/echo2_integration_test.runfiles/envoy_filter_example/echo2_integration_test
  Expected in: flat namespace
 in /private/var/tmp/_bazel_user/a9fc29333019096f53a1d7073ad2f2d9/sandbox/darwin-sandbox/4181/execroot/envoy_filter_example/bazel-out/darwin-fastbuild/bin/echo2_integration_test.runfiles/envoy_filter_example/echo2_integration_test
external/bazel_tools/tools/test/test-setup.sh: line 310: 19225 Abort trap: 6
Ngôn ngữ chính
C++
Star
361
Fork
220
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của envoyproxy/envoy-filter-example

Tất cả issue của envoyproxy/envoy-filter-example

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.