Skip to content

Instantly share code, notes, and snippets.

@hmarr
Created February 17, 2012 11:35
Show Gist options
  • Save hmarr/1852852 to your computer and use it in GitHub Desktop.
Save hmarr/1852852 to your computer and use it in GitHub Desktop.
brew-install-redis-error
~ ⚡ brew install redis
==> Downloading http://redis.googlecode.com/files/redis-2.4.7.tar.gz
######################################################################## 100.0%
==> make -C src
MAKE hiredis
CC ae.o
CC anet.o
CC redis-benchmark.o
clang: warning: argument unused during compilation: '-rdynamic'
clang: warning: argument unused during compilation: '-ggdb'
clang: warning: argument unused during compilation: '-rdynamic'
clang: warning: argument unused during compilation: '-ggdb'
clang: warning: argument unused during compilation: '-rdynamic'
clang: warning: argument unused during compilation: '-ggdb'
/usr/bin/clang -c -Os -w -pipe -march=native -arch x86_64 -g -ggdb net.c
clang: warning: argument unused during compilation: '-ggdb'
/usr/bin/clang -c -Os -w -pipe -march=native -arch x86_64 -g -ggdb hiredis.c
CC sds.o
clang: warning: argument unused during compilation: '-ggdb'
clang: warning: argument unused during compilation: '-rdynamic'
clang: warning: argument unused during compilation: '-ggdb'
CC adlist.o
clang: warning: argument unused during compilation: '-rdynamic'
clang: warning: argument unused during compilation: '-ggdb'
hiredis.c:700:31: error: second argument to 'va_arg' is of incomplete type 'void'
va_arg(ap,void);
~~~~~~~~~~^~~~~
/usr/bin/../lib/clang/3.1/include/stdarg.h:35:50: note: expanded from macro 'va_arg'
#define va_arg(ap, type) __builtin_va_arg(ap, type)
^
1 error generated.
make[1]: *** [hiredis.o] Error 1
make: *** [dependencies] Error 2
make: *** Waiting for unfinished jobs....
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/redis.rb#L18
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: fb6aa9df06b1204bcbc5f89edb2edb8742b39ffc
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: quad-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.1 build 318
MacPorts or Fink? false
X11 installed? true
System Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Which Perl: /usr/bin/perl
Which Python: /usr/bin/python
Which Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
==> Build Flags
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native
CXXFLAGS: -Os -w -pipe -march=native
MAKEFLAGS: -j4
Error: Failed executing: make -C src
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
@spullara
Copy link

I'm getting this error building as well. I was able to get it to build with --use-llvm from redis/redis#338

@hmarr
Copy link
Author

hmarr commented Feb 19, 2012

@spullara: try brew install redis --use-llvm. There's an open issue for this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment