Issue building 11_0 on Mac OS X Yosemite 10.10.5

I seem to have a linker error when I install v11_0 of the stack from source on OS X Yosemite 10.10.5. My compiler is

» gcc --version                                                                                                                                                                                                                                                                                                     jsick@Helvetica ~EUPS_PATH 9 ↵
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

Error message is:

» eups distrib install -t v11_0 lsst_apps                                                                                                                                                                                                                                                                              jsick@Helvetica ~EUPS_PATH
  [  1/53 ]  cfitsio 3360.lsst3                                         done.
  [  2/53 ]  doxygen 1.8.5 (already installed)                          done.
  [  3/53 ]  eigen 3.2.0                                                done.
  [  4/53 ]  fftw 3.3.4.lsst1                                           done.
  [  5/53 ]  gsl 1.16.lsst2                                             done.
  [  6/53 ]  minuit2 5.28.00.lsst1                                      done.
  [  7/53 ]  mysqlclient 5.1.73.lsst2                                   done.
  [  8/53 ]  python 0.0.3 (already installed)                           done.
  [  9/53 ]  swig 3.0.2.lsst1                                           done.
  [ 10/53 ]  xpa 2.1.15.lsst2                                           done.
  [ 11/53 ]  boost 1.59.lsst1                                           done.
  [ 12/53 ]  mysqlpython 1.2.3.lsst1 ...

***** error: from /Users/jsick/lsst/lsst_stack/EupsBuildDir/DarwinX86/mysqlpython-1.2.3.lsst1/build.log:
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.5-x86_64-2.7
cc -fno-strict-aliasing -I/Users/jsick/lsst/lsst_stack/DarwinX86/anaconda/2.2.0/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/Users/jsick/lsst/lsst_stack/DarwinX86/mysqlclient/5.1.73.lsst2/include/mysql -I/Users/jsick/lsst/lsst_stack/DarwinX86/anaconda/2.2.0/include/python2.7 -c _mysql.c -o build/temp.macosx-10.5-x86_64-2.7/_mysql.o -g -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
In file included from _mysql.c:36:
/Users/jsick/lsst/lsst_stack/DarwinX86/mysqlclient/5.1.73.lsst2/include/mysql/my_config.h:1088:9: warning: 'HAVE_WCSCOLL' macro redefined
#define HAVE_WCSCOLL /**/
        ^
/Users/jsick/lsst/lsst_stack/DarwinX86/anaconda/2.2.0/include/python2.7/pyconfig.h:911:9: note: previous definition is here
#define HAVE_WCSCOLL 1
        ^
_mysql.c:1421:10: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (how < 0 || how >= sizeof(row_converters)) {
            ~~~ ^ ~
2 warnings generated.
cc -bundle -undefined dynamic_lookup -L/Users/jsick/lsst/lsst_stack/DarwinX86/anaconda/2.2.0/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.5-x86_64-2.7/_mysql.o -L/Users/jsick/lsst/lsst_stack/DarwinX86/mysqlclient/5.1.73.lsst2/lib/mysql -L/Users/jsick/lsst/lsst_stack/DarwinX86/anaconda/2.2.0/lib -lmysqlclient_r -lz -lm -o build/lib.macosx-10.5-x86_64-2.7/_mysql.so
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
+ exit -4
eups distrib: Failed to build mysqlpython-1.2.3.lsst1.eupspkg: Command:
        source /Users/jsick/lsst/lsst_stack/eups/bin/setups.sh; export EUPS_PATH=/Users/jsick/lsst/lsst_stack; (/Users/jsick/lsst/lsst_stack/EupsBuildDir/DarwinX86/mysqlpython-1.2.3.lsst1/build.sh) >> /Users/jsick/lsst/lsst_stack/EupsBuildDir/DarwinX86/mysqlpython-1.2.3.lsst1/build.log 2>&1 4>/Users/jsick/lsst/lsst_stack/EupsBuildDir/DarwinX86/mysqlpython-1.2.3.lsst1/build.msg
exited with code 252

Any thoughts?

This is odd. You are linking against something that was built with gcc rather than clang. Maybe from homebrew?

It seemed to be solved by one or any of:

  1. Removing /usr/local cruft found by brew doctor
  2. Upgrading gcc from Homebrew
  3. Upgrading my Xcode tools to those that ship with El Capitan