Closed khuevu closed 8 years ago
These sorts of errors typically arise when your gfortran compiler is not compatible with your gcc. Where did you get yours from?
I have similar issue. My fortran compiler is a part of gcc gcc-4.9.2_1. How can I change it?!
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
I have clang gcc: Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
.
I saw the problem with my gfortran which was compiled by Homebrew gcc 5.30. I replaced it by using the binary version for El capitan from here: https://gcc.gnu.org/wiki/GFortranBinaries. So now I have gfortran compiled by gcc 6.1.0. Unfortunately the same error happens when building.
One thing you should try is rebuilding your Numpy with your current setup. There can sometimes be build incompatibilities.
I have the exact same issue. GCC version: Apple LLVM version 7.3.0 (clang-703.0.31). I installed gfortran using homebrew (brew install gcc).
Was numpy built using that compiler? Also, if you use the gfortran from brew, you should also use that gcc.
Numpy was installed using pip, not built from source. Numpy itself is working just fine.
The problem (at least for me) seems to be that that the following install procedure won't work even though it should (?):
Is there a specific version of Homebrew's gcc & gfortran that is known to work?
pip should always be building from source unless a cached build is being installed.
You said above you were using Apple's clang compiler, not homebrew's gcc. You either need to use Apple's clang and a gfortran that is compatible with it, or use both the homebrew compilers. Make sure the compilers on your path are those you think you are using.
Yeah, I already installed numpy successfully without using the cache:
Lynx:~ maxpagels$ pip install --no-cache-dir numpy
Collecting numpy
Downloading numpy-1.11.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.9MB)
100% |████████████████████████████████| 3.9MB 5.2MB/s
Installing collected packages: numpy
Successfully installed numpy-1.11.1
Thanks, I'll give that a try.
Ah, a wheel is being installed. Try the following:
pip install -U git+https://github.com/numpy/numpy.git
Fixed the problem by installing a version of gfortran compatible with my clang version (i.e. brew install homebrew/dupes/apple-gcc42
).
That makes sense. I am going to close this for now; if the above does not fix the issue for others, please re-open.
Hi, I tried building
pymc
from source code. I have the following error when running:python setup.py config_fc --fcompiler gfortran build
I then tried executing the above command directly but the output does not give any error but warning. The output:
Warning: Unused variable 'd_now' declared at (1) [-Wunused-variable] pymc/flib.f:314:42:
Warning: Unused variable 'tnx' declared at (1) [-Wunused-variable] pymc/flib.f:442:71:
Warning: Unused dummy argument 'gradxlike' at (1) [-Wunused-dummy-argument] pymc/flib.f:461:40:
Warning: Unused variable 'high' declared at (1) [-Wunused-variable] pymc/flib.f:458:36:
Warning: Unused variable 'i' declared at (1) [-Wunused-variable] pymc/flib.f:461:29:
Warning: Unused variable 'like' declared at (1) [-Wunused-variable] pymc/flib.f:461:34:
Warning: Unused variable 'low' declared at (1) [-Wunused-variable] pymc/flib.f:442:39:
Warning: Unused dummy argument 'lower' at (1) [-Wunused-dummy-argument] pymc/flib.f:442:45:
Warning: Unused dummy argument 'upper' at (1) [-Wunused-dummy-argument] pymc/flib.f:442:33:
Warning: Unused dummy argument 'x' at (1) [-Wunused-dummy-argument] pymc/flib.f:692:41:
Warning: Unused variable 'pdf' declared at (1) [-Wunused-variable] pymc/flib.f:760:41:
Warning: Unused variable 'pdf' declared at (1) [-Wunused-variable] pymc/flib.f:834:41:
Warning: Unused variable 'pdf' declared at (1) [-Wunused-variable] pymc/flib.f:906:41:
Warning: Unused variable 'pdf' declared at (1) [-Wunused-variable] pymc/flib.f:976:41:
Warning: Unused variable 'pdf' declared at (1) [-Wunused-variable] pymc/flib.f:1186:29:
Warning: Unused variable 'factln' declared at (1) [-Wunused-variable] pymc/flib.f:1185:51:
Warning: Unused variable 'sumfact' declared at (1) [-Wunused-variable] pymc/flib.f:1185:27:
Warning: Unused variable 'sumx' declared at (1) [-Wunused-variable] pymc/flib.f:1300:55:
Warning: Unused variable 'cdf' declared at (1) [-Wunused-variable] pymc/flib.f:1302:29:
Warning: Unused variable 'factln' declared at (1) [-Wunused-variable] pymc/flib.f:1302:36:
Warning: Unused variable 'gammq' declared at (1) [-Wunused-variable] pymc/flib.f:1301:59:
Warning: Unused variable 'sumcdf' declared at (1) [-Wunused-variable] pymc/flib.f:1301:51:
Warning: Unused variable 'sumfact' declared at (1) [-Wunused-variable] pymc/flib.f:1301:27:
Warning: Unused variable 'sumx' declared at (1) [-Wunused-variable] pymc/flib.f:1402:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:2154:40:
Warning: Unused variable 'grad' declared at (1) [-Wunused-variable] pymc/flib.f:2665:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:2728:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:2793:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:2903:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:2959:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:3021:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:3396:58:
Warning: Unused variable 'glike' declared at (1) [-Wunused-variable] pymc/flib.f:3646:37:
Warning: Unused variable 'factln' declared at (1) [-Wunused-variable] pymc/flib.f:3646:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:3706:37:
Warning: Unused variable 'factln' declared at (1) [-Wunused-variable] pymc/flib.f:3706:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:3836:29:
Warning: Unused variable 'factln' declared at (1) [-Wunused-variable] pymc/flib.f:4039:26:
Warning: Unused variable 'psi' declared at (1) [-Wunused-variable] pymc/flib.f:4276:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:4342:29:
Warning: Unused variable 'gammln' declared at (1) [-Wunused-variable] pymc/flib.f:5194:35:
Warning: Unused variable 'factln' declared at (1) [-Wunused-variable] pymc/flib.f:5196:23:
Warning: Unused variable 'n_tmp' declared at (1) [-Wunused-variable] pymc/flib.f:5444:26:
Warning: Unused variable 'tmp' declared at (1) [-Wunused-variable] pymc/flib.f:5498:25:
Warning: Unused variable 'i0' declared at (1) [-Wunused-variable] pymc/flib.f:5491:26:
Warning: Unused variable 'tmp' declared at (1) [-Wunused-variable] pymc/flib.f:5545:25:
Warning: Unused variable 'i0' declared at (1) [-Wunused-variable] pymc/flib.f:5538:26:
Warning: Unused variable 'tmp' declared at (1) [-Wunused-variable] pymc/flib.f:4892:0:
^ Warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized] pymc/flib.f:778:0:
^ Warning: 'nc' may be used uninitialized in this function [-Wmaybe-uninitialized] pymc/flib.f:994:0:
^ Warning: 'nc' may be used uninitialized in this function [-Wmaybe-uninitialized] COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.11.2' '-v' '-Wall' '-g' '-ffixed-form' '-fno-second-underscore' '-fPIC' '-O2' '-march=x86-64' '-D' 'MS_WIN64' '-mtune=generic' '-msse2' '-D' 'NO_ATLAS_INFO=3' '-D' 'HAVE_CBLAS' '-I' 'build/src.macosx-10.11-x86_64-2.7' '-I' '/usr/local/lib/python2.7/site-packages/numpy/core/include' '-I' '/usr/local/include' '-I' '/usr/local/opt/openssl/include' '-I' '/usr/local/opt/sqlite/include' '-I' '/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7' '-c' '-c' '-o' 'build/temp.macosx-10.11-x86_64-2.7/pymc/flib.o' as -arch x86_64 -force_cpusubtype_ALL -o build/temp.macosx-10.11-x86_64-2.7/pymc/flib.o /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:64:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:147:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:496:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:1488:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:2166:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:2169:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:2282:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:2397:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:2484:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:2931:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:3259:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:3408:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:3481:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:3552:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:3651:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:3722:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:6546:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:6597:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:6837:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:6922:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:7552:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:7632:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:9903:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:10008:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:10057:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:10109:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:10159:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:10239:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:10422:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:10482:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:10531:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:10636:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:12679:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:13110:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:13259:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:13487:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:13604:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:13906:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:14048:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:14469:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:14564:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:15190:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:15251:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:15300:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:15403:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:15469:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:16031:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:16184:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:17077:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:17400:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:17470:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:17513:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:20012:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:20015:expecting string instruction after
rep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:20362:expecting string instruction afterrep' /var/folders/9s/s5hl5w4x7zjdjkdljw9cnsrm0000gn/T//ccAaMvv3.s:20716:expecting string instruction after
rep'