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

coverage_integration test binary size too large after protobuf update to v23.1 #1006

Open
chipmunkie opened this issue Jul 14, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed tech-debt

Comments

@chipmunkie
Copy link
Contributor

coverage_integration test binary size increase after protobuf update to v23.1

Description:
The coverage_integration stage test binary fails to link due to size increase post Envoy commit to envoyproxy/envoy#28075. Linker options in the envoy_binary macro need to added to workaround the linker issue, similar to the workaround used in the envoy_test macro https://github.com/envoyproxy/envoy/blob/ad3c1c8519d73ef9f746a570a96ab4c0dd7fa907/bazel/envoy_test.bzl#L58.

Reproduction steps:
Sync your local branch to Envoy envoyproxy/envoy#28075. Run the coverage_integration test locally, RBE or in CI.
Running ci/do_ci.sh coverage_integration will execute in RBE if it is set up, otherwise it run locally.
To execute locally run the command directly:

BAZEL_BUILD_OPTIONS+=" --config=test-coverage --test_tag_filters=-nocoverage --test_env=ENVOY_IP_TEST_VERSIONS=v4only --action_env=CI"

Logs:
https://dev.azure.com/cncf/envoy/_build/results?buildId=142266&view=results

ld.lld: error: /opt/llvm/lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformLinux.c.o):(function __llvm_write_binary_ids: .text.__llvm_write_binary_ids+0x15): relocation R_X86_64_PC32 out of range: -2149800033 is not in [-2147483648, 2147483647]; references __ehdr_start

referenced by InstrProfilingPlatformLinux.c

ld.lld: error: /opt/llvm/lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformLinux.c.o):(function __llvm_write_binary_ids: .text.__llvm_write_binary_ids+0x25): relocation R_X86_64_PC32 out of range: -2149800105 is not in [-2147483648, 2147483647]; references __ehdr_start

referenced by InstrProfilingPlatformLinux.c

ld.lld: error: /opt/llvm/lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformLinux.c.o):(function __llvm_write_binary_ids: .text.__llvm_write_binary_ids+0x2c): relocation R_X86_64_PC32 out of range: -2149800080 is not in [-2147483648, 2147483647]; references __ehdr_start

referenced by InstrProfilingPlatformLinux.c

ld.lld: error: /opt/llvm/lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformLinux.c.o):(function __llvm_write_binary_ids: .text.__llvm_write_binary_ids+0xb4): relocation R_X86_64_PC32 out of range: -2149800248 is not in [-2147483648, 2147483647]; references __ehdr_start

referenced by InstrProfilingPlatformLinux.c

ld.lld: error: /opt/llvm/lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformLinux.c.o):(function __llvm_write_binary_ids: .text.__llvm_write_binary_ids+0x25a): relocation R_X86_64_PC32 out of range: -2149800670 is not in [-2147483648, 2147483647]; references __ehdr_start

referenced by InstrProfilingPlatformLinux.c

@chipmunkie chipmunkie added the bug Something isn't working label Jul 14, 2023
@mum4k mum4k added tech-debt help wanted Extra attention is needed good first issue Good for newcomers and removed bug Something isn't working labels Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed tech-debt
Projects
None yet
Development

No branches or pull requests

2 participants