Build failure in galera-3.x: strict-aliasing rules

Bug #1221354 reported by Raghavendra D Prabhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Galera
Fix Released
Medium
Alex Yurchenko
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Fix Released
Undecided
Unassigned

Bug Description

g++ -o galera/src/trx_handle.os -c -Wno-long-long -Wno-deprecated -ansi -pipe -Weffc++ -Wold-style-cast -g -O3 -DNDEBUG -m64 -Wall -Wextra -Wno-unused-parameter -pedantic -fPIC -pthread -D_XOPEN_SOURCE=600 -DHAVE_COMMON_H -DGALERA_USE_GU_NETWORK -DHAVE_BYTESWAP_H -DHAVE_ENDIAN_H -DHAVE_BOOST_SHARED_PTR_HPP -DHAVE_TR1_UNORDERED_MAP -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG=1 -DHAVE_ASIO_HPP -DHAVE_ASIO_SSL_HPP -Werror -Icommon -Iasio -Igalerautils/src -Igcomm/src -Igcomm/src/gcomm -Igcache/src -Igcs/src -Iwsdb/src -Igalera/src galera/src/trx_handle.cpp
cc1plus: warnings being treated as errors
galera/src/key_set.hpp: In constructor 'galera::KeySetOut::KeyPart::KeyPart(galera::KeySetOut::KeyParts&, galera::KeySetOut&, const galera::KeySetOut::KeyPart*, const galera::KeyData&, int)':
galera/src/key_set.hpp:86: error: dereferencing pointer 'from' does break strict-aliasing rules
galera/src/key_set.hpp:82: note: initialized from here
galera/src/key_set.hpp:86: error: dereferencing pointer 'to' does break strict-aliasing rules
galera/src/key_set.hpp:83: note: initialized from here
scons: *** [galera/src/key_set.os] Error 1
scons: building terminated because of errors.
Build step 'Execute shell' marked build as failure
Archiving artifacts

Full log: http://jenkins.percona.com/job/build-galera3-libs/label_exp=centos6-64/1/consoleText
CentOS6-64

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Using strict_build_flags=0 as the build parameter in scons command line helped (suggested by Teemu).

Revision history for this message
Alex Yurchenko (ayurchen) wrote :
Changed in galera:
assignee: nobody → Alex Yurchenko (ayurchen)
importance: Undecided → Medium
milestone: none → 3.0beta
status: New → Fix Committed
Changed in galera:
milestone: 3.0beta → 3.0
Changed in galera:
status: Fix Committed → Fix Released
Changed in percona-xtradb-cluster:
milestone: none → 5.6.13-24.0
status: New → Fix Committed
Changed in galera:
status: Fix Released → Fix Committed
Changed in percona-xtradb-cluster:
status: Fix Committed → Fix Released
Changed in galera:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1436

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.