Percona Server with XtraDB

-Wunused-local-typedefs -Wsizeof-pointer-memaccess build warnings

Reported by Raghavendra D Prabhu on 2013-05-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server
Status tracked in 5.6
5.1
Low
Laurynas Biveinis
5.5
Low
Unassigned
5.6
Low
Unassigned

Bug Description

Seeing many warnings of the following type:

-Wunused-local-typedefs
-Wsizeof-pointer-memaccess

Full log here http://paste.wnohang.net/1a5446

To add, this is with gcc 4.8.0.

Raghu -

Almost all if not all of these warnings are in the upstream code, so please report it there on their sources. Setting to Incomplete until then.

This will become a problem once some platform we support starts using GCC 4.8 by default, and the upstream will have the same issue and presumably will fix.

Ack, I will report it upstream as well after I build from it.
Regarding platform, yeah, gcc 4.8 is not part of our supported
platforms but I reported because I presumed there may be bugs in
the code highlighted by them, but they may all be false positives
as well.

summary: - Warnings while building
+ -Wunused-local-typedefs -Wsizeof-pointer-memaccess build warnings
tags: added: upstream

Ubuntu 13.10 now has GCC 4.8 by default.

Upstream fix in 5.5.33:

5.5$ bzr log -r 4387
------------------------------------------------------------
revno: 4387
committer: Tor Didriksen <email address hidden>
branch nick: 5.5
timestamp: Fri 2013-06-14 10:52:23 +0200
message:
  Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8
  Backport to 5.5
  (external Bug#69407 Build warnings with mysql)

Upstream fix in 5.6.13:

5.6$ bzr log -r 5090
------------------------------------------------------------
revno: 5090
committer: Jon Olav Hauglid <email address hidden>
branch nick: mysql-5.6
timestamp: Tue 2013-05-07 16:32:50 +0200
message:
  Backport from mysql-5.6 to mysql-trunk of:
  ------------------------------------------------------------
  revno: 5627
  committer: Jon Olav Hauglid <email address hidden>
  branch nick: mysql-trunk-test
  timestamp: Fri 2013-04-26 15:05:25 +0200
  message:
    Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8

    Fix GCC 4.8 compilation warnings from new checks:
    -Werror=unused-local-typedefs
    -Werror=sizeof-pointer-memaccess

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

Other bug subscribers

Remote bug watches

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