Bug #81285 Cannot build 5.5.49 on CentOS 32-bit with arch=i686
Submitted: 2 May 2016 17:07 Modified: 4 May 2016 12:50
Reporter: Yura Sorokin (OCA) Email Updates:
Status: Verified Impact on me:
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.5.49 OS:CentOS (5.11 32-bit)
Assigned to: CPU Architecture:Any

[2 May 2016 17:07] Yura Sorokin
Unable to build MySQL Server version 5.5.49 on CentOS 5.11 32-bit when target architecture is set to "i686" due to "value computed is not used" warnings treated as errors.

[ 33%] Building C object storage/innobase/CMakeFiles/innobase.dir/ibuf/ibuf0ibuf.c.o
cc1: warnings being treated as errors
/home/yura/ws/mysql-server/storage/innobase/ibuf/ibuf0ibuf.c: In function ‘ibuf_add_ops’:
/home/yura/ws/mysql-server/storage/innobase/ibuf/ibuf0ibuf.c:1480: warning: value computed is not used
/home/yura/ws/mysql-server/storage/innobase/ibuf/ibuf0ibuf.c: In function ‘ibuf_merge_or_delete_for_page’:
/home/yura/ws/mysql-server/storage/innobase/ibuf/ibuf0ibuf.c:4817: warning: value computed is not used
make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/ibuf/ibuf0ibuf.c.o] Error 1
make[1]: *** [storage/innobase/CMakeFiles/innobase.dir/all] Error 2
make: *** [all] Error 2

How to repeat:
git clone -b 5.5 https://github.com/mysql/mysql-server.git
mkdir mysql-server-build-5.5
cd mysql-server-build-5.5

CFLAGS='-march=i686' CXXFLAGS='-march=i686' cmake \
 ../mysql-server \
 -DBUILD_CONFIG=mysql_release \
 -DFEATURE_SET=community \

[4 May 2016 12:50] MySQL Verification Team
Hello Yura Sorokin,

Thank you for the report.