Hi,
I am trying to build YugabyteDB on ubuntu 22.04, amd64 by using –no-download-thirdparty and --no-linuxbrew by following Build from source code on Ubuntu | YugabyteDB Docs.
However I am facing below error:
YB_THIRDPARTY_DIR is set to '/home/test/stable/yugabyte-db/thirdparty' but it does not exist and is not within '/opt/yb-build' so we would not be able to download it.
I could work around this error by creating a “thirdparty” dir and tweaking this https://github.com/yugabyte/yugabyte-db/blob/master/build-support/invoke_thirdparty_build.sh#L19-L21 to allow cloning yugabyte-db-thirdparty.git
However I am stuck with below error next:
yugabyte-db/thirdparty/python/yugabyte_db_thirdparty/yb_build_thirdparty_main.py: error: argument --build-type: invalid choice: 'uninstrumented' (choose from COMMON, UNINSTRUMENTED, ASAN, TSAN)
I tried below patch :
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e697ff710..e443d1bdeb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -234,7 +234,7 @@ include(CompilerInfo)
if ("${YB_BUILD_TYPE}" MATCHES "^(asan|tsan)$")
set(THIRDPARTY_INSTRUMENTATION_TYPE "${YB_BUILD_TYPE}")
elseif (IS_CLANG OR IS_GCC)
- set(THIRDPARTY_INSTRUMENTATION_TYPE "uninstrumented")
+ set(THIRDPARTY_INSTRUMENTATION_TYPE "UNINSTRUMENTED")
else()
message(FATAL_ERROR "Unknown compiler family: '${COMPILER_FAMILY}'.")
endif()
but still get
yugabyte-db/thirdparty/python/yugabyte_db_thirdparty/yb_build_thirdparty_main.py: error: argument --build-type: invalid choice: 'UNINSTRUMENTED' (choose from COMMON, UNINSTRUMENTED, ASAN, TSAN)
Could someone please help?
command used for build:
./yb_build.sh release --no-download-thirdparty --ninja --shellcheck --gcc11 debug --no-linuxbrew