Welcome! Log In Create A New Profile

Advanced

Issue 125 in memcached: Compile error with gcc

Posted by Anonymous User 
Anonymous User
Issue 125 in memcached: Compile error with gcc
March 12, 2010 07:40AM
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 125 by i...@quintura.com: Compile error with gcc
http://code.google.com/p/memcached/issues/detail?id=125

What steps will reproduce the problem?
1. ./configure
2. make


What is the expected output? What do you see instead?
# make
make all-recursive
make[1]: Entering directory `/root/memcached-1.4.4'
Making all in doc
make[2]: Entering directory `/root/memcached-1.4.4/doc'
make all-am
make[3]: Entering directory `/root/memcached-1.4.4/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/memcached-1.4.4/doc'
make[2]: Leaving directory `/root/memcached-1.4.4/doc'
make[2]: Entering directory `/root/memcached-1.4.4'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT
memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o
memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
cc1: warnings being treated as errors
memcached.c: In function Б─≤complete_incr_binБ─≥:
memcached.c:1022: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:1043: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:1060: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_getБ─≥:
memcached.c:1192: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_updateБ─≥:
memcached.c:1888: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:1904: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_append_prependБ─≥:
memcached.c:1948: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_deleteБ─≥:
memcached.c:2013: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤do_store_itemБ─≥:
memcached.c:2126: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2126: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2143: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2144: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2157: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2159: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2159: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2201: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2213: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_get_commandБ─≥:
memcached.c:2591: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_update_commandБ─≥:
memcached.c:2750: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤do_add_deltaБ─≥:
memcached.c:2869: error: dereferencing type-punned pointer will break
strict-aliasing
rules
make[2]: *** [memcached-memcached.o] Error 1
make[2]: Leaving directory `/root/memcached-1.4.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/memcached-1.4.4'
make: *** [all] Error 2

What version of the product are you using? On what operating system?

memcached-1.4.4
OS: Suse 11.2 64 bit
gcc: 4.4.1





--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Anonymous User
Re: Issue 125 in memcached: Compile error with gcc
March 12, 2010 08:50AM
Comment #1 on issue 125 by dsallings: Compile error with gcc
http://code.google.com/p/memcached/issues/detail?id=125

Do you have configure output from this? We've tested on gcc 4.4 for a
while now and
haven't seen this. While the gcc 4.4 support is a bit of a workaround, it
should detect it
and compile correctly.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Anonymous User
Re: Issue 125 in memcached: Compile error with gcc
March 12, 2010 09:30AM
Comment #2 on issue 125 by i...@quintura.com: Compile error with gcc
http://code.google.com/p/memcached/issues/detail?id=125

Thanks for answer.
Memcached has compiled correctly with ./configure CC="gcc-4.3".
You can close this ticket.
I have some errors, when i tried with ./configure CC="gcc-4.4"
make all-recursive
make[1]: Entering directory `/root/memcached-1.4.4'
Making all in doc
make[2]: Entering directory `/root/memcached-1.4.4/doc'
make all-am
make[3]: Entering directory `/root/memcached-1.4.4/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/memcached-1.4.4/doc'
make[2]: Leaving directory `/root/memcached-1.4.4/doc'
make[2]: Entering directory `/root/memcached-1.4.4'
gcc-4.4 -std=gnu99 -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall
-Werror
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT
memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o
memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
cc1: warnings being treated as errors
memcached.c: In function Б─≤complete_incr_binБ─≥:
memcached.c:1022: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:1043: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:1060: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_getБ─≥:
memcached.c:1192: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_updateБ─≥:
memcached.c:1888: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:1904: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_append_prependБ─≥:
memcached.c:1948: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_bin_deleteБ─≥:
memcached.c:2013: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤do_store_itemБ─≥:
memcached.c:2126: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2126: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2143: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2144: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2157: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2159: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2159: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2201: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c:2213: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_get_commandБ─≥:
memcached.c:2591: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤process_update_commandБ─≥:
memcached.c:2750: error: dereferencing type-punned pointer will break
strict-aliasing
rules
memcached.c: In function Б─≤do_add_deltaБ─≥:
memcached.c:2869: error: dereferencing type-punned pointer will break
strict-aliasing
rules
make[2]: *** [memcached-memcached.o] Error 1
make[2]: Leaving directory `/root/memcached-1.4.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/memcached-1.4.4'
make: *** [all] Error 2





--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Anonymous User
Re: Issue 125 in memcached: Compile error with gcc
April 03, 2010 12:30AM
Comment #3 on issue 125 by BenDJ095124367913213465: Compile error with gcc
http://code.google.com/p/memcached/issues/detail?id=125

I'm seeing the same errors as reported above for both

./configure CC="gcc-4.4" ...
./configure CC="gcc-4.5" ...

fwiw,

./configure CC="gcc-4.3" ...

works just fine.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


--
To unsubscribe, reply using "remove me" as the subject.
Anonymous User
Re: Issue 125 in memcached: Compile error with gcc
September 13, 2010 02:10AM
Comment #4 on issue 125 by soleylevant: Compile error with gcc
http://code.google.com/p/memcached/issues/detail?id=125

CC=gcc-4.3; ./configure

gives me similar gcc errors, followed by

mv -f .deps/memcached-util.Tpo .deps/memcached-util.Po
make[2]: *** [memcached-memcached.o] Error 1
make[2]: Leaving directory `/home/.../LAMP/memcached-1.4.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/.../LAMP/memcached-1.4.5'
make: *** [all] Error 2
Anonymous User
Re: Issue 125 in memcached: Compile error with gcc
September 13, 2010 07:51PM
Sorry, only registered users may post in this forum.

Click here to login