womdb / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

build fail in opensuse 11.4 by clang 3.6.0 #409

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download latest memcached
2. run   CC=clang ./configure
3. run   make

What is the expected output? What do you see instead?

expected : success without error

I see:

clang -DHAVE_CONFIG_H -I.    -fprofile-arcs -ftest-coverage -g -O2 -Wall 
-Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls 
-MT memcached_debug-items.o -MD -MP -MF .deps/memcached_debug-items.Tpo -c -o 
memcached_debug-items.o `test -f 'items.c' || echo './'`items.c
items.c:1141:28: error: comparison of constant 256 with expression of type 
'uint8_t' (aka 'unsigned char') is always true 
[-Werror,-Wtautological-constant-out-of-range-compare]
    assert(it->slabs_clsid < LARGEST_ID);
           ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
/usr/include/assert.h:86:5: note: expanded from macro 'assert'
  ((expr)                                                               \
    ^
1 error generated.
make[2]: *** [memcached_debug-items.o] Error 1
make[2]: Leaving directory `/root/tmp/memcached-1.4.24'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/tmp/memcached-1.4.24'
make: *** [all] Error 2

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

opensuse 11.4 
clang 3.6.0

Please provide any additional information below.

Original issue reported on code.google.com by wendal1985@gmail.com on 28 Apr 2015 at 9:39

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am also getting this exact error when run make on Mac Ox

Original comment by yoanntro...@etrainu.com on 6 May 2015 at 5:27

GoogleCodeExporter commented 8 years ago
me too.
with clang 3.6.1
memcached 1.4.24

Original comment by emn...@gmail.com on 26 May 2015 at 1:49

GoogleCodeExporter commented 8 years ago
I am getting the same error when make on Mac OX.

Original comment by zhangnia...@gmail.com on 17 Jun 2015 at 10:44

GoogleCodeExporter commented 8 years ago
I got the this error when I install memcached(1.4.24) in mac osx(10.9.5), any 
advices to fix this problem?

Original comment by houxiufeng1985@gmail.com on 24 Jun 2015 at 2:02

GoogleCodeExporter commented 8 years ago
I just delete this line

Original comment by wendal1985@gmail.com on 24 Jun 2015 at 5:26

GoogleCodeExporter commented 8 years ago
work around for OSX: 

CC=gcc-5 ./configure

Specifying the CC binary to be a non-clang binary worked for me. I have gcc 
installed via brew

Original comment by charles....@metamarkets.com on 2 Jul 2015 at 6:16

GoogleCodeExporter commented 8 years ago
getting the same error . Can you please let me know the steps to follow ?
I installed libevent 2.X and trying to install memcached 1.4.24 fails

Original comment by anujacha...@gmail.com on 9 Aug 2015 at 9:29

GoogleCodeExporter commented 8 years ago
Using gcc-5 screwed my system
gcc -fprofile-arcs -ftest-coverage -g -O2 -Wall -Werror -pedantic 
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls  
-L/usr/local/libevent/lib  -Wl,-rpath,/usr/local/libevent/lib -o 
memcached-debug memcached_debug-memcached.o memcached_debug-hash.o 
memcached_debug-jenkins_hash.o memcached_debug-murmur3_hash.o 
memcached_debug-slabs.o memcached_debug-items.o memcached_debug-assoc.o 
memcached_debug-thread.o memcached_debug-daemon.o memcached_debug-stats.o 
memcached_debug-util.o memcached_debug-cache.o    -levent 
Undefined symbols for architecture x86_64:
  "___gcov_fork", referenced from:
      _daemonize in memcached_debug-daemon.o
  "___gcov_init", referenced from:
      __GLOBAL__sub_I_65535_0_items.c in memcached_debug-items.o
      __GLOBAL__sub_I_65535_0_assoc.c in memcached_debug-assoc.o
      __GLOBAL__sub_I_65535_0_thread.c in memcached_debug-thread.o
      __GLOBAL__sub_I_65535_0_daemon.c in memcached_debug-daemon.o
      __GLOBAL__sub_I_65535_0_stats.c in memcached_debug-stats.o
      __GLOBAL__sub_I_65535_0_util.c in memcached_debug-util.o
      __GLOBAL__sub_I_65535_0_cache.c in memcached_debug-cache.o
      ...
  "___gcov_merge_add", referenced from:
      ___gcov_.lru_crawler_resume in memcached_debug-items.o
      ___gcov_.start_assoc_maintenance_thread in memcached_debug-assoc.o
      ___gcov_.slab_stats_aggregate in memcached_debug-thread.o
      anon in memcached_debug-daemon.o
      ___gcov_.stats_prefix_record_set in memcached_debug-stats.o
      ___gcov_.safe_strtol in memcached_debug-util.o
      ___gcov_.cache_alloc in memcached_debug-cache.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [memcached-debug] Error 1

Original comment by anujacha...@gmail.com on 9 Aug 2015 at 9:35