Skip to content

Instantly share code, notes, and snippets.

@tub78
Created August 6, 2012 19:28
Show Gist options
  • Save tub78/3277792 to your computer and use it in GitHub Desktop.
Save tub78/3277792 to your computer and use it in GitHub Desktop.
discount fails with clang on Mountain Lion
+ brew install -v discount
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading https://github.com/Orc/discount/tarball/v2.1.3
Already downloaded: /Library/Caches/Homebrew/discount-2.1.3.tgz
/usr/bin/tar xf /Library/Caches/Homebrew/discount-2.1.3.tgz
==> ./configure.sh --prefix=/usr/local/Cellar/discount/2.1.3 --mandir=/usr/local/Cellar/discount/2.1.3/share/man --with-dl=Both --enable-all-features
./configure.sh --prefix=/usr/local/Cellar/discount/2.1.3 --mandir=/usr/local/Cellar/discount/2.1.3/share/man --with-dl=Both --enable-all-features
Configuring for [markdown]
Looking for cpp (/usr/bin/cpp) ok
looking for install (/usr/bin/install)
checking the C compiler (/usr/bin/clang) yuck, you're using clang
ignoring bogus LDFLAGS="-L/usr/local/lib"
looking for ar (/usr/bin/ar)
looking for ranlib (/usr/bin/ranlib)
checking for "volatile" keyword (found)
checking for "const" keyword (found)
Checking for "inline" keyword (found)
defining WORD & DWORD scalar types
looking for a reentrant basename (broken)
looking for header pwd.h (found)
looking for the getpwuid function (found)
looking for the srandom function (found)
looking for the bzero function (found)
looking for the random function (found)
looking for the strcasecmp function (not found)
looking for the stricmp function (not found)
markdown requires either strcasecmp() or stricmp()
==> Exit Status: 1
https://github.com/mxcl/master/blob/master/Library/Formula/discount.rb#L9
==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: 5f87c0bc16807e57bccaeab0203e59a01c889cc2
CPU: 16-core 64-bit nehalem
OS X: 10.8-x86_64
Xcode: 4.4
CLT: 4.4.0.0.1.1249367152
X11: N/A
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8
CXXFLAGS: -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8
CPPFLAGS: -isystem /usr/local/include
LDFLAGS: -L/usr/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.8
MAKEFLAGS: -j16
PKG_CONFIG_PATH: /usr/local/Library/Homebrew/pkgconfig
Error: Failed executing: ./configure.sh --prefix=/usr/local/Cellar/discount/2.1.3 --mandir=/usr/local/Cellar/discount/2.1.3/share/man --with-dl=Both --enable-all-features (discount.rb:9)
This may help you fix or report the issue if `brew doctor` does not:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment