Opened 13 years ago
Closed 13 years ago
#31646 closed defect (fixed)
redis @2.4.0_0: clang build failure with XCode 4.2
Reported by: | dackze+macports@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | clang | Cc: | brianjlandau@…, royliu@…, stromnov (Andrey Stromnov) |
Port: | redis |
Description
Clang version:
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.2.0 Thread model: posix
Build log:
:debug:build build phase started at Mon Oct 17 10:39:53 PDT 2011 :notice:build ---> Building redis :debug:build Executing org.macports.build (redis) :debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7' CC='/Developer/usr/bin/clang -arch x86_64' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/redis-2.4.0" && /usr/bin/make -j4 -w all' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/redis-2.4.0" && /usr/bin/make -j4 -w all :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/redis-2.4.0' :info:build cd src && /usr/bin/make all :info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/redis-2.4.0/src' :info:build CC ae.o :info:build MAKE hiredis :info:build CC anet.o :info:build CC redis-benchmark.o :info:build clangclang: : warning: warning: clangargument unused during compilation: '-rdynamic' :info:build : warning: argument unused during compilation: '-rdynamic' :info:build argument unused during compilation: '-rdynamic' :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/redis-2.4.0/deps/hiredis' :info:build /Developer/usr/bin/clang -arch x86_64 -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -arch i386 -arch x86_64 -g -ggdb net.c :info:build /Developer/usr/bin/clang -arch x86_64 -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -arch i386 -arch x86_64 -g -ggdb hiredis.c :info:build hiredis.c:700:21: error: second argument to 'va_arg' is of incomplete type 'void' :info:build va_arg(ap,void); :info:build ^~~~~~~~~~~~~~~ :info:build /Developer/usr/bin/../lib/clang/3.0/include/stdarg.h:35:50: note: instantiated from: :info:build #define va_arg(ap, type) __builtin_va_arg(ap, type) :info:build ^ :info:build hiredis.c:700:31: note: instantiated from: :info:build va_arg(ap,void); :info:build ^~~~ :info:build 1 error generated. :info:build make[2]: *** [hiredis.o] Error 1 :info:build make[2]: *** Waiting for unfinished jobs.... :info:build CC sds.o :info:build CC adlist.o :info:build clang: warning: argument unused during compilation: '-rdynamic' :info:build clang: warning: argument unused during compilation: '-rdynamic' :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/redis-2.4.0/deps/hiredis' :info:build make[1]: *** [dependencies] Error 2 :info:build make[1]: *** Waiting for unfinished jobs.... :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/redis-2.4.0/src' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/redis-2.4.0' :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_redis/redis/work/redis-2.4.0" && /usr/bin/make -j4 -w all " returned error 2
It looks like this is an issue with a bundled dependency, hiredis. Here's a GitHub issue that might be related: https://github.com/antirez/hiredis/issues/53
The same error happens with Redis 4.2.1.
Change History (1)
comment:1 Changed 13 years ago by royliu@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Shoot. I upgraded the Redis port the night before upgrading to Xcode 4.2. Should be fixed now in r85937. Let me know if you still have problems.