Bug #71847 Predefined compiler flags for SunPro/Solaris Studio 12.x are missing in cmake
| Submitted: | 26 Feb 2014 17:07 | Modified: | 10 Feb 2020 13:34 |
|---|---|---|---|
| Reporter: | Valeriy Kravchuk | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
| Version: | 5.6.16, 5.7.29 | OS: | Linux |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | cmake, SolarisStudio12.3, SunPro | ||
[26 Feb 2014 17:07]
Valeriy Kravchuk
[7 Feb 2020 13:28]
MySQL Verification Team
Hello Mr. Kravchuk, Sorry for not processing your report. Please try latest 5.7 or 8.0 and let us know if the problems still persist. I have seen several bugs on this issue, that are fixed in last couple of years ...... Thanks in advance.
[9 Feb 2020 14:22]
Valeriy Kravchuk
Sorry, but quick check of current source code of 5.7.29 shows no changes:
openxs@ao756:~$ cd git/mysql-server/
openxs@ao756:~/git/mysql-server$ git branch
* 5.7
8.0
openxs@ao756:~/git/mysql-server$ git pull
Already up-to-date.
openxs@ao756:~/git/mysql-server$ cat VERSION
MYSQL_VERSION_MAJOR=5
MYSQL_VERSION_MINOR=7
MYSQL_VERSION_PATCH=29
MYSQL_VERSION_EXTRA=
openxs@ao756:~/git/mysql-server$ grep -C 20 SunPro cmake/build_configurations/compiler_options.cmake
IF(CMAKE_SYSTEM_NAME MATCHES "SunOS")
IF(CMAKE_SYSTEM_VERSION VERSION_GREATER "5.9")
# Link mysqld with mtmalloc on Solaris 10 and later
SET(WITH_MYSQLD_LDFLAGS "-lmtmalloc" CACHE STRING "")
ENDIF()
# Possible changes to the defaults set above for gcc/linux.
# Vectorized code dumps core in 32bit mode.
IF(CMAKE_COMPILER_IS_GNUCC AND 32BIT)
CHECK_C_COMPILER_FLAG("-ftree-vectorize" HAVE_C_FTREE_VECTORIZE)
IF(HAVE_C_FTREE_VECTORIZE)
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -fno-tree-vectorize")
ENDIF()
ENDIF()
IF(CMAKE_COMPILER_IS_GNUCXX AND 32BIT)
CHECK_CXX_COMPILER_FLAG("-ftree-vectorize" HAVE_CXX_FTREE_VECTORIZE)
IF(HAVE_CXX_FTREE_VECTORIZE)
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -fno-tree-vectorize")
ENDIF()
ENDIF()
IF(CMAKE_C_COMPILER_ID MATCHES "SunPro")
SET(SUNPRO_FLAGS "-xdebuginfo=no%decl")
SET(SUNPRO_FLAGS "${SUNPRO_FLAGS} -xbuiltin=%all")
SET(SUNPRO_FLAGS "${SUNPRO_FLAGS} -xlibmil")
# Link with the libatomic library in /usr/lib
# This prevents dependencies on libstatomic
# This was introduced with developerstudio12.5
SET(SUNPRO_FLAGS "${SUNPRO_FLAGS} -xatomic=gcc")
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "i386")
SET(SUNPRO_FLAGS "${SUNPRO_FLAGS} -nofstore")
ENDIF()
SET(COMMON_C_FLAGS "-g ${SUNPRO_FLAGS}")
SET(COMMON_CXX_FLAGS "-g0 ${SUNPRO_FLAGS}")
SET(COMMON_CXX_FLAGS "${COMMON_CXX_FLAGS} -std=c++03")
SET(CMAKE_C_FLAGS_DEBUG "${COMMON_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "${COMMON_CXX_FLAGS}")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-xO3 ${COMMON_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-xO3 ${COMMON_CXX_FLAGS}")
ENDIF()
openxs@ao756:~/git/mysql-server$
SunPro compiler is considered only for Solaris.
If you are sure it works on Linux, just upload the test result demonstrating this :)
[10 Feb 2020 13:27]
MySQL Verification Team
Hi Mr. Kravchuk, I am looking at the list of supported compilers and platforms and I do not see that we support SunPro compiler on Linux. If you have any informations otherwise, please let us know ...
[10 Feb 2020 13:34]
MySQL Verification Team
Hi Mr. Kravchuk, I was just informed that we do not support, nor do we plan to support, SunPro compiler on Linux. This fact effectively closes this bug.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.