Bug #82976 -DWITH_ASAN=ON seems to be broken on Mac OS X xcode toolchain
Submitted: 13 Sep 2016 17:31 Modified: 4 Oct 2016 22:49
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.0 OS:Mac OS X
Assigned to: CPU Architecture:Any
Tags: asan, xcode

[13 Sep 2016 17:31] Laurynas Biveinis
Description:
cmake ... -DBUILD_CONFIG=mysql_release -DWITH_DEBUG=ON -DWITH_ASAN=ON -DWITH_BOOST=...
...
make
...
Scanning dependencies of target comp_err
[  7%] Building CXX object extra/CMakeFiles/comp_err.dir/comp_err.cc.o
[  7%] Linking CXX executable comp_err
clang: error: invalid linker name in argument '-fuse-ld=gold'
make[2]: *** [extra/comp_err] Error 1
make[1]: *** [extra/CMakeFiles/comp_err.dir/all] Error 2
make: *** [all] Error 2

If I remove -DWITH_ASAN=ON, the build continues past this point

How to repeat:
See above
[13 Sep 2016 18:27] Miguel Solorzano
Thank you for the bug report.

[  9%] Linking CXX static library libmysys_ssl.a
[  9%] Built target mysys_ssl
Scanning dependencies of target comp_err
[  9%] Building CXX object extra/CMakeFiles/comp_err.dir/comp_err.cc.o
[  9%] Linking CXX executable comp_err
clang: error: invalid linker name in argument '-fuse-ld=gold'
make[2]: *** [extra/comp_err] Error 1
make[1]: *** [extra/CMakeFiles/comp_err.dir/all] Error 2
make: *** [all] Error 2
miguel:mysql-8.0.0-dmr miguel$
[4 Oct 2016 22:49] Paul Dubois
Posted by developer:
 
Noted in 8.0.1 changelog.

On macOS, CMake AddressSanitizer support did not work.