[MDEV-10412] mariadb server build with ASAN fails Created: 2016-07-21  Updated: 2016-08-18  Resolved: 2016-08-18

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.1.16
Fix Version/s: 10.1.17, 10.2.2

Type: Bug Priority: Major
Reporter: Rich Prohaska Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: contribution, foundation
Environment:

ubuntu 15.10, clang 3.9.0, mariadb server commit f038659


Sprint: 10.1.17-1

 Description   

build of mariadb server with clang 3.9.0 and with ASAN fails.

$ CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_ASAN=ON ../mariadb-server
-- Running cmake version 3.6.0
-- The C compiler identification is Clang 3.9.0
-- The CXX compiler identification is Clang 3.9.0
-- Check for working C compiler: /home/rfp/usr/local/clang/bin/clang
-- Check for working C compiler: /home/rfp/usr/local/clang/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/rfp/usr/local/clang/bin/clang++
-- Check for working CXX compiler: /home/rfp/usr/local/clang/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for SHM_HUGETLB
-- Looking for SHM_HUGETLB - found
-- MariaDB 10.1.17
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void *
-- Check size of void * - done
-- Packaging as: mariadb-10.1.17-Linux-x86_64
-- Performing Test HAVE_VISIBILITY_HIDDEN
-- Performing Test HAVE_VISIBILITY_HIDDEN - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Performing Test HAVE_C__fsanitize_address__O1__Wno_error__fPIC
-- Performing Test HAVE_C__fsanitize_address__O1__Wno_error__fPIC - Success
-- Performing Test HAVE_CXX__fsanitize_address__O1__Wno_error__fPIC
-- Performing Test HAVE_CXX__fsanitize_address__O1__Wno_error__fPIC - Success
-- Performing Test HAVE_C__faddress_sanitizer__O1__fPIC
-- Performing Test HAVE_C__faddress_sanitizer__O1__fPIC - Failed
-- Performing Test HAVE_CXX__faddress_sanitizer__O1__fPIC
-- Performing Test HAVE_CXX__faddress_sanitizer__O1__fPIC - Failed
CMake Error at CMakeLists.txt:202 (MESSAGE):
  Do not know how to enable address sanitizer
 
-- Configuring incomplete, errors occurred!



 Comments   
Comment by Rich Prohaska [ 2016-07-28 ]

See https://github.com/MariaDB/server/pull/206 for one possible solution. There are probably better solutions.

Generated at Thu Feb 08 07:42:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.