Bug #77797 Problem compiling MySQL 5.7 on Solaris 11.3
Submitted: 22 Jul 2015 9:34 Modified: 28 Sep 2015 15:26
Reporter: Mikael Ronström Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.8-7.5.0 OS:Any
Assigned to: CPU Architecture:Any

[22 Jul 2015 9:34] Mikael Ronström
Description:
When compiling MySQL Cluster 7.5.0 (based on MySQL 5.7.8) on a Solaris 11.3 VM in Parallels 10 under Mac OS X Yosemite
the file storage/innobase/ut/ut0crc32.cc has problems with its linking. In both storage/innobase/CMakeLists.txt and
extra/CMakeLists.txt there is CMake code to add flags to Linker. In this -nH. This works fine when the Solaris as
is used. It does however not work when using /usr/gnu/bin/as as the linker. In this case -nH isn't recognized.

How to repeat:
Compile MySQL 5.7.8 based tree on Solaris 11.3.

Suggested fix:
Ensure that CMake code only adds the -nH when using Solaris as, don't use it when using Gnu as.

The binaries produced using Gnu as after removing the above code looks fine.
[28 Sep 2015 15:26] Paul DuBois
Noted in 5.7.10, 5.8.0 changelogs.

MySQL could fail to compile on Solaris 11.3 when /usr/gnu/bin/as was
used as the linker.