[SERVER-82620] libunwind broken in bazel build Created: 31/Oct/23  Updated: 20/Nov/23  Resolved: 08/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Daniel Moody Assignee: Zack Winter
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-81425 Automatically detect C files in bazel... Closed
Duplicate
is duplicated by SERVER-82263 add generated build metrics tasks whi... Open
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Building with this command (after https://github.com/10gen/mongo/pull/16453):

python buildscripts/scons.py --build-profile=fast --ninja=disabled -j200 --variables-files=etc/scons/scons_experimental_scheduler.vars BAZEL_BUILD_ENABLED=1 BAZEL_INTEGRATION_DEBUG=1 prove-unittests

We see an error message from the way libunwind is built:

ld.lld: error: build/fast/third_party/unwind/libunwind.so: undefined reference to _Uaarch64_getcontext_trace [--no-allow-shlib-undefined]
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

 

This ticket should also update the evergreen tasks to build something more substantial to flesh out any similar errors before they are merged.


Generated at Thu Feb 08 06:49:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.