SunStudio 12.1 on Solaris 10u8 (x64) - compilation error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Invalid
|
Low
|
Unassigned | ||
5.5 |
Invalid
|
Low
|
Unassigned |
Bug Description
CC="/opt/
CXX="/opt/
CFLAGS="-xO4 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=native -m64 -xregs=no%frameptr -w "
CXXFLAGS="-xO4 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=native -m64 -xregs=no%frameptr -w "
LDFLAGS=
LIBS="-lmtmalloc"
./configure \
--prefix=
--localstat
--libexecdi
--with-
--enable-
--enable-
--with-
--with-
--with-readline \
--with-
--with-
--with-
--with-innodb \
--with-
--with-
--with-
--with-
--disable-
--enable-
--with-
--with-
--without-
--without-
make
-------
[ 90%] Building CXX object sql/CMakeFiles/
"/export/
tor.
"/export/
tor.
"/export/
tor.
3 Error(s) detected.
*** Error code 3
The following command caused the error:
cd /export/
_SERVER -DHAVE_
orski/percona/
l22.1/regex -I/export/
5.5.17-
make: Fatal error: Command failed for target `sql/CMakeFiles
Current working directory /mnt/bpool/
*** Error code 1
The following command caused the error:
make -f sql/CMakeFiles/
make: Fatal error: Command failed for target `sql/CMakeFiles
Current working directory /mnt/bpool/
*** Error code 1
The following command caused the error:
make -f CMakeFiles/
make: Fatal error: Command failed for target `all'
description: | updated |
I have to disagree with the compiler diagnostics here. The define OVERALL_POWER_COUNT expands to www.boost. org/development /int_const_ guidelines. html)
(((int)(3.32192809 * 6)) + 1 + ((int)(3.32192809 * 7)))
which seems to satisfy the C++ constant expression rules (see e.g. http://
Workaround: replace #define OVERALL_POWER_COUNT with
#define OVERALL_POWER_COUNT 43