[MacPorts] #31646: redis @2.4.0_0: clang build failure with XCode 4.2
MacPorts
noreply at macports.org
Mon Oct 17 10:55:32 PDT 2011
#31646: redis @2.4.0_0: clang build failure with XCode 4.2
---------------------------------------+------------------------------------
Reporter: dackze+macports@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: clang | Port: redis
---------------------------------------+------------------------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/31646>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list