[SERVER-46871] liblzma presence apparently not checked by configure Created: 13/Mar/20  Updated: 29/Oct/23  Resolved: 16/Oct/20

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 4.3.4
Fix Version/s: 4.9.0, 4.4.7

Type: Bug Priority: Minor - P4
Reporter: Oleg Pudeyev (Inactive) Assignee: Daniel Moody
Resolution: Fixed Votes: 0
Labels: move-sdp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Dev Platform 2020-10-05, Dev Platform 2020-10-19
Participants:

 Description   

I was building 4.3.4 server in docker and received the following error some way into the build:

...
g++ -o build/opt/mongo/db/s/check_sharding_index_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DPCRE_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/pcre-8.42 -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/check_sharding_index_command.cpp
g++ -o build/opt/mongo/db/s/config/configsvr_create_collection_command.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -fno-omit-frame-pointer -fno-strict-aliasing -fasynchronous-unwind-tables -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DSAFEINT_USE_INTRINSICS=0 -DPCRE_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/SafeInt -Isrc/third_party/pcre-8.42 -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost-1.70.0 -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_create_collection_command.cpp
/bin/ld.gold: error: cannot find -llzma
/bin/ld.gold: error: cannot find -llzma
/bin/ld.gold: error: cannot find -llzma
collect2: error: ld returned 1 exit status
scons: *** [build/opt/mongo/mongo] Error 1
scons: building terminated because of errors.
build/opt/mongo/mongo failed: Error 1
The command '/bin/sh -c ./script/build-server r4.3.4' returned a non-zero code: 2

I expected configure to detect liblzma and inform me it was missing, if it is indeed a requirement.



 Comments   
Comment by Githook User [ 28/Jun/21 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-46871 Added configure check for lzma when libunwind is in use

(cherry picked from commit 0c904d2a3d9028d171961d88178e3f15c2d5a1e0)
Branch: v4.4
https://github.com/mongodb/mongo/commit/b47dd216567ec4226d57308ea1d112887e9fab16

Comment by Githook User [ 15/Oct/20 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-46871 Added configure check for lzma when libunwind is in use
Branch: master
https://github.com/mongodb/mongo/commit/0c904d2a3d9028d171961d88178e3f15c2d5a1e0

Comment by Daniel Moody [ 15/Oct/20 ]

oleg.pudeyev I put out a change to fix this on master, im not sure I can backport to 4.3, but should I backport to 4.0, 4.2, 4.4?

Generated at Thu Feb 08 05:12:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.