mrkwjc / ffnet

Feed-forward neural network for python
GNU Lesser General Public License v3.0
12 stars 7 forks source link

Running setup.py bdist_wheel for ffnet ... error #2

Closed poes-metop-sem closed 3 months ago

poes-metop-sem commented 8 years ago

I'm running into errors building ffnet. Any guidance will be appreciated. A log is attached. A few of the more relevant output lines are given below:

Running setup.py bdist_wheel for ffnet ... error
...
  gfortran:f77: ffnet/fortran/ffnet.f
[ffnet_install.txt](https://github.com/mrkwjc/ffnet/files/155311/ffnet_install.txt)
[ffnet_install.txt](https://github.com/mrkwjc/ffnet/files/155314/ffnet_install.txt)

  dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.15.dylib
    Referenced from: /usr/local/Cellar/gcc/5.3.0/libexec/gcc/x86_64-apple-darwin15.0.0/5.3.0/f951
    Reason: image not found
  gfortran: internal compiler error: Trace/BPT trap: 5 (program f951)
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <https://github.com/Homebrew/homebrew/issues> for instructions.
  dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.15.dylib
    Referenced from: /usr/local/Cellar/gcc/5.3.0/libexec/gcc/x86_64-apple-darwin15.0.0/5.3.0/f951
    Reason: image not found
  gfortran: internal compiler error: Trace/BPT trap: 5 (program f951)
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <https://github.com/Homebrew/homebrew/issues> for instructions.
  error: Command "/usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -m64 -fPIC -O3 -funroll-loops -Ibuild/src.macosx-10.5-x86_64-2.7 -I/Users/xyz/packages/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/Users/xyz/packages/anaconda2/include/python2.7 -c -c ffnet/fortran/ffnet.f -o build/temp.macosx-10.5-x86_64-2.7/ffnet/fortran/ffnet.o" failed with exit status 4

  ----------------------------------------
  Failed building wheel for ffnet

...

15-209:packages xyz$ which gfortran
/usr/local/bin/gfortran
15-209:packages xyz$ gfortran --version
GNU Fortran (Homebrew gcc 5.3.0) 5.3.0

ffnet_install.txt

mrkwjc commented 8 years ago

I think the most important lines are:

dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.15.dylib
Referenced from: /usr/local/Cellar/gcc/5.3.0/libexec/gcc/x86_64-apple-darwin15.0.0/5.3.0/f951
Reason: image not found

which means you probably lack something on your system and gfortran is not able to link.

Maybe anaconda or numpy people could help with this?