Welcome! Log In Create A New Profile

Advanced

Re: Issue 60 in memcached: Compile error with gcc-4.4

Posted by Anonymous User 
Anonymous User
Re: Issue 60 in memcached: Compile error with gcc-4.4
February 20, 2010 01:20AM
Comment #7 on issue 60 by maxim.volkov: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

I am still seen this error building from memcached 1.4.4 and from trunk as
well.

-------------------------------------------------------------------
make[2]: Entering directory `/home/local/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 `/home/local/memcached-1.4.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/local/memcached-1.4.4'
make: *** [all] Error 2
-------------------------------------------------------------------

Does it mean it still not fixed? WIll be the same patch be applicable?

OS: Suse 11.1
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 60 in memcached: Compile error with gcc-4.4
February 20, 2010 01:30AM
Comment #8 on issue 60 by maxim.volkov: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

A: Yes, patched version worked.

--
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 60 in memcached: Compile error with gcc-4.4
February 20, 2010 02:30AM
Comment #9 on issue 60 by dsallings: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

What do you mean by "trunk?" We've got buildbot builders on gcc 4.4, had
a problem,
and fixed it. This suggests you don't have the fix.

--
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 60 in memcached: Compile error with gcc-4.4
March 11, 2010 03:50PM
Comment #10 on issue 60 by i...@quintura.com: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

Hello!
I have the same problem.
OS: Suse 11.2
gcc: 4.4.1


# 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


--
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 60 in memcached: Compile error with gcc-4.4
April 23, 2010 11:50PM
Comment #11 on issue 60 by maxim.volkov: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

Well.. What I meant back then (and it is still true now with 1.4.5) is -

1) wget http://memcached.org/latest
tar -zxvf memcached-1.x.x.tar.gz
cd memcached-1.x.x
../configure
make ---> gives exactly the same error on SUSE 11.2 with gcc 4.4.1

2) Checked in from dev trunk (assuming that fixes found their way into it
by now) - same error.

3) When I did use patch from above ( fix-strict-aliasing.patch ) - it did
compile in both cases.

--
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


--
Subscription settings: http://groups.google.com/group/memcached/subscribe?hl=en
Anonymous User
Re: Issue 60 in memcached: Compile error with gcc-4.4
August 08, 2010 12:50PM
Comment #12 on issue 60 by fidel.nunez: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

The problem still exists

suse 11.2 gcc 4.4.1

pfft
Anonymous User
Re: Issue 60 in memcached: Compile error with gcc-4.4
September 07, 2010 08:00PM
Comment #13 on issue 60 by lind...@inuus.com: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

Failing on Fedora 13, but only if you use -Wall

let me know if I should commit this patch to my tree so you can get a pull
request..
Anonymous User
Re: Issue 60 in memcached: Compile error with gcc-4.4
October 06, 2010 01:30PM
Comment #14 on issue 60 by fidel.nunez: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

been 2 months

this is a very serious issue

any update at all on when be able to compile memcached again?
Anonymous User
Re: Issue 60 in memcached: Compile error with gcc-4.4
October 06, 2010 07:00PM
Comment #15 on issue 60 by lind...@inuus.com: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

Sent a pull request http://github.com/memcached/memcached/pull/2

It includes a bunch of changes, however as a side effect it compiles fine
on gcc 4.4 with -Wall
Anonymous User
Re: Issue 60 in memcached: Compile error with gcc-4.4
October 09, 2010 12:00PM
Comment #16 on issue 60 by fidel.nunez: Compile error with gcc-4.4
http://code.google.com/p/memcached/issues/detail?id=60

thanks ill try it out :)
Sorry, only registered users may post in this forum.

Click here to login