Percona Server with XtraDB

handler/ha_innodb.cc:4952: error: comparison of unsigned expression >= 0 is always true

Reported by Philip Stoev on 2011-04-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server
High
Laurynas Biveinis
5.1
High
Laurynas Biveinis
5.5
High
Laurynas Biveinis

Bug Description

Percona-Server-5.1.56 as downloaded from

http://www.percona.com/redir/downloads/Percona-Server-5.1/Percona-Server-5.1.56-12.7/source/Percona-Server-5.1.56.tar.gz

does not compile with ./BUILD/compile-pentium-debug-max-no-ndb:

libtool: compile: ccache gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I../../storage/innobase/include -I../../sql -I. -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror -Wdeclaration-after-statement -DMYSQL_DYNAMIC_PLUGIN -g -DSAFE_MUTEX -DSAFEMALLOC -Wall -Wextra -Wunused -Wwrite-strings -mtune=native -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX -DUNIV_LINUX -DUNIV_LINUX -MT ha_innodb_la-ut0ut.lo -MD -MP -MF .deps/ha_innodb_la-ut0ut.Tpo -c ut/ut0ut.c -o ha_innodb_la-ut0ut.o >/dev/null 2>&1
mv -f .deps/ha_innodb_la-ut0rnd.Tpo .deps/ha_innodb_la-ut0rnd.Plo
mv -f .deps/ha_innodb_la-ut0vec.Tpo .deps/ha_innodb_la-ut0vec.Plo
mv -f .deps/ha_innodb_la-ut0wqueue.Tpo .deps/ha_innodb_la-ut0wqueue.Plo
mv -f .deps/ha_innodb_la-ut0ut.Tpo .deps/ha_innodb_la-ut0ut.Plo
cc1plus: warnings being treated as errors
handler/ha_innodb.cc: In member function ‘int ha_innobase::general_fetch(uchar*, uint, uint)’:
handler/ha_innodb.cc:4952: error: comparison of unsigned expression >= 0 is always true

Philip Stoev (pstoev-askmonty) wrote :

[philips@eve ~]$ uname -a
Linux eve 2.6.33.3-85.fc13.i686.PAE #1 SMP Thu May 6 18:27:11 UTC 2010 i686 i686 i386 GNU/Linux
[philips@eve ~]$ gcc --version
gcc (GCC) 4.4.5 20101112 (Red Hat 4.4.5-2)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[philips@eve ~]$ cat /etc/issue.net
Fedora release 13 (Goddard)

Stewart Smith (stewart) on 2011-05-19
Changed in percona-server:
status: New → Confirmed
importance: Undecided → High
Alexey Kopytov (akopytov) wrote :

compile-pentium-debug-max-no-ndb will fail even if the reported warning is fixed, because that includes embedded which is not supported and is currently broken as a result. Bug #673583.

On Thu, 19 May 2011 11:37:19 -0000, Alexey Kopytov <email address hidden> wrote:
> compile-pentium-debug-max-no-ndb will fail even if the reported warning
> is fixed, because that includes embedded which is not supported and is
> currently broken as a result. Bug #673583.

ack. could just be due to more modern GCC?

--
Stewart Smith

Alexey Kopytov (akopytov) wrote :

Might be a recently introduced one.

Stewart Smith (stewart) on 2011-05-24
Changed in percona-server:
status: Confirmed → Triaged
Changed in percona-server:
assignee: nobody → Laurynas Biveinis (laurynas-biveinis)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers