Skip to content

Instantly share code, notes, and snippets.

@sud0n1m
Created February 18, 2012 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sud0n1m/1860410 to your computer and use it in GitHub Desktop.
Save sud0n1m/1860410 to your computer and use it in GitHub Desktop.
Error installing redis with homebrew on clean install 10.7 with command line tools for Xcode
➜ ~ brew install redis
==> Downloading http://redis.googlecode.com/files/redis-2.4.7.tar.gz
File already downloaded in /Users/sudonim/Library/Caches/Homebrew
==> make -C src
MAKE hiredis
CC anet.o
CC ae.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
clang: warning: argument unused during compilation: '-ggdb'
CC sds.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....
CC adlist.o
clang: warning: argument unused during compilation: '-rdynamic'
clang: warning: argument unused during compilation: '-ggdb'
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/redis.rb#L18
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 8b4b065c91c689ebbda7f477f8baedaed813428a
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.2
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment