I'm trying to address the issue Ben brought up about
log(int) not compiling, but am failing to get g++6 installed
through brew.
I suspect I can solve the issue by adding an explicit type
override for integers in
stan/math/prim/scal/fun/log.hpp
but I can't test, because I can't get g++6 installed.
When I run "brew doctor" I get a slew of errors relating to
Anaconda, which I can paste if that'll help.
Here's what I tried and what happened.
~/cmdstan/stan/lib/stan_math(develop)$ brew install gcc6
==> Installing gcc6 from homebrew/versions
==> Installing dependencies for homebrew/versions/gcc6: gmp, mpfr, libmpc, isl014
==> Installing homebrew/versions/gcc6 dependency: gmp
==> Downloading
https://homebrew.bintray.com/bottles/gmp-6.1.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gmp-6.1.1.yosemite.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/info/
gmp.info
/usr/local/share/info is not writable.
You can try again using:
brew link gmp
==> Summary
đș /usr/local/Cellar/gmp/6.1.1: 17 files, 3.2M
==> Installing homebrew/versions/gcc6 dependency: mpfr
==> Downloading
https://homebrew.bintray.com/bottles/mpfr-3.1.4.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring mpfr-3.1.4.yosemite.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/info/
mpfr.info
/usr/local/share/info is not writable.
You can try again using:
brew link mpfr
==> Summary
đș /usr/local/Cellar/mpfr/3.1.4: 25 files, 3.6M
==> Installing homebrew/versions/gcc6 dependency: libmpc
==> Downloading
https://homebrew.bintray.com/bottles/libmpc-1.0.3.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libmpc-1.0.3.yosemite.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/info/
mpc.info
/usr/local/share/info is not writable.
You can try again using:
brew link libmpc
==> Summary
đș /usr/local/Cellar/libmpc/1.0.3: 11 files, 350K
==> Installing homebrew/versions/gcc6 dependency: isl014
==> Downloading
https://homebrew.bintray.com/bottles-versions/isl014-0.14.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring isl014-0.14.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
Conflicts with isl in main repository.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/isl014/lib
CPPFLAGS: -I/usr/local/opt/isl014/include
==> Summary
đș /usr/local/Cellar/isl014/0.14: 69 files, 3.2M
==> Installing homebrew/versions/gcc6
==> Downloading
https://homebrew.bintray.com/bottles-versions/gcc6-6.1.0.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gcc6-6.1.0.yosemite.bottle.tar.gz
đș /usr/local/Cellar/gcc6/6.1.0: 1,434 files, 281.8M
********* I switched my make/local to new g++-6 file **************
~/cmdstan/stan/lib/stan_math(develop)$ ./runTests.py -j4 test/unit/math/prim/scal/fun/log_test.cpp
------------------------------------------------------------
make -j4 test/unit/math/prim/scal/fun/log_test
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
Referenced from: /usr/local/opt/isl014/lib/libisl.13.dylib
Reason: image not found
g++-6: internal compiler error: Trace/BPT trap: 5 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <
https://github.com/Homebrew/homebrew-versions/issues> for instructions.
/usr/local/bin/g++-6 -I . -isystem lib/eigen_3.2.8 -isystem lib/boost_1.60.0 -isystemlib/cvodes_2.8.2/include -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DNO_FPRINTF_OUTPUT -pipe -Wno-unused-function -c -O0 -DGTEST_USE_OWN_TR1_TUPLE -isystem lib/gtest_1.7.0/include -isystem lib/gtest_1.7.0 test/unit/math/prim/scal/fun/log_test.cpp -o test/unit/math/prim/scal/fun/log_test.o
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
Referenced from: /usr/local/opt/isl014/lib/libisl.13.dylib
Reason: image not found
g++-6: internal compiler error: Trace/BPT trap: 5 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <
https://github.com/Homebrew/homebrew-versions/issues> for instructions.
make: *** [test/unit/math/prim/scal/fun/log_test.o] Error 4
rm test/unit/math/prim/scal/fun/log_test.o
make -j4 test/unit/math/prim/scal/fun/log_test failed
exit now (08/13/16 19:08:02 CEST)
~/cmdstan/stan/lib/stan_math(develop)$ /usr/local/bin/g++-6 --version
g++-6 (Homebrew gcc6 6.1.0) 6.1.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~/cmdstan/stan/lib/stan_math(develop)$ brew link libmpc
Linking /usr/local/Cellar/libmpc/
1.0.3...
Error: Could not symlink share/info/
mpc.info
/usr/local/share/info is not writable.
~/cmdstan/stan/lib/stan_math(develop)$ sudo brew link libmpc
Password:
Error: Cowardly refusing to 'sudo brew link'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
~/cmdstan/stan/lib/stan_math(develop)$ chmod +w /usr/local/share/info
~/cmdstan/stan/lib/stan_math(develop)$ sudo brew link libmpc
Error: Cowardly refusing to 'sudo brew link'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
~/cmdstan/stan/lib/stan_math(develop)$ brew link libmpc
Linking /usr/local/Cellar/libmpc/
1.0.3...
Error: Could not symlink share/info/
mpc.info
/usr/local/share/info is not writable.
~/cmdstan/stan/lib/stan_math(develop)$ ls -l /usr/local/share/info
total 2360
-rw-r--r-- 1 root wheel 1378 Jan 6 2015 dir
-rw-r--r-- 1 root wheel 112428 Jan 6 2015
info-stnd.info
-rw-r--r-- 1 root wheel 92477 Jan 6 2015
info.info
-rw-r--r-- 1 root wheel 15945 Jan 6 2015
texinfo.info
-rw-r--r-- 1 root wheel 300140 Jan 6 2015 texinfo.info-1
-rw-r--r-- 1 root wheel 302196 Jan 6 2015 texinfo.info-2
-rw-r--r-- 1 root wheel 370485 Jan 6 2015 texinfo.info-3
~/cmdstan/stan/lib/stan_math(develop)$
Any help greatly appreciated.
- Bob