Skip to content

Instantly share code, notes, and snippets.

@kristopherjohnson
Created March 7, 2012 12:45
Show Gist options
  • Save kristopherjohnson/1992908 to your computer and use it in GitHub Desktop.
Save kristopherjohnson/1992908 to your computer and use it in GitHub Desktop.
Failure of "brew install dotwrp" (see https://github.com/mxcl/homebrew/issues/10744)
kdj@localhost ~$ brew install -v dotwrp
==> Cloning https://github.com/tenomoto/dotwrp.git
Updating /Users/kdj/Library/Caches/Homebrew/dotwrp--git
git remote set-url origin https://github.com/tenomoto/dotwrp.git
git fetch origin
git reset --hard origin/HEAD
HEAD is now at ea3da3a Updated README for SDOT.
git checkout-index -a -f --prefix=/private/tmp/homebrew-dotwrp-1.0-Vivz/
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> /usr/local/bin/gfortran -Os -w -pipe -march=native -Qunused-arguments -fno-underscoring -c dotwrp.f90
/usr/local/bin/gfortran -Os -w -pipe -march=native -Qunused-arguments -fno-underscoring -c dotwrp.f90
dotwrp.f90:0: error: bad value (native) for -march= switch
dotwrp.f90:0: error: bad value (native) for -mtune= switch
==> Exit Status: 1
http://github.com/mxcl/homebrew/blob/master/Library/Formula/dotwrp.rb#L12
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 7034ce6e067360f368f46917408cb4a442fe1836
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: 8-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: /usr/X11
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 -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j8
Error: Failed executing: /usr/local/bin/gfortran -Os -w -pipe -march=native -Qunused-arguments -fno-underscoring -c dotwrp.f90
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
kdj@localhost ~$ brew doctor
Your system is raring to brew.
kdj@localhost ~$ ls -al `which gfortran`
lrwxr-xr-x 1 kdj admin 44 Mar 7 07:15 /usr/local/bin/gfortran@ -> ../Cellar/gfortran/4.2.4-5666.3/bin/gfortran
kdj@localhost ~$ brew list
boost fltk gnu-sed imagemagick libtiff pcre readline tbb
cmake gfortran graphicsmagick jasper little-cms pkg-config suite-sparse texinfo
fftw glpk hdf5 jpeg metis qhull szip xz
kdj@localhost ~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment