From fa729fd3a7e80118b2bfff5596b59dc9b1ab9b92 Mon Sep 17 00:00:00 2001 From: WANGHAILIANG Date: Tue, 18 Aug 2020 14:49:57 +0800 Subject: [PATCH] configure: add a tips for installing libubsan In practice, libubsan has been installed but there will still be such alarms sometimes. In fact, this has something to do with the GCC version. Most users may not think of it immediately, so they will be confused and waste time here. So I think we should add a hint here. Change-Id: Ib01cf4b35be5b75a3620aea556f4c097a1ee7a01 Signed-off-by: WANGHAILIANG Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3832 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Liang Yan Reviewed-by: Tomasz Zawadzki --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 36eb06ad1c..7876ea7056 100755 --- a/configure +++ b/configure @@ -741,6 +741,8 @@ if [[ "${CONFIG[UBSAN]}" = "y" ]]; then | ${BUILD_CMD[@]} -fsanitize=undefined - 2>/dev/null; then echo --enable-ubsan requires libubsan. echo Please install then re-run this script. + echo If installed, please check that the GCC version is at least 6.4 \ + and synchronize CC accordingly. exit 1 fi fi