Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CERES installation issue #7

Open
rishikeshprl opened this issue Sep 20, 2016 · 10 comments
Open

CERES installation issue #7

rishikeshprl opened this issue Sep 20, 2016 · 10 comments

Comments

@rishikeshprl
Copy link

Dear Sir/Madam,
I am working at Physical Research Laboratory. I am trying to install CERES on my machine but having the following trouble (below). Could you please help me how I can solve this issue.

Many thanks in advance.

1.- Preparing to install. Checking if your system has the libraries
needed to compile the codes...

 ----------------------------------------------------------
 > Numpy is ok!
 > Scipy is ok!
 > Pyfits is ok!
 ---------------------------------------------------------- 

 Done! All libraries checked. 

2.- Building processes...

 ----------------------------------------------------------
 > Fortran code found in directory utils/CCF. Building...
 ----------------------------------------------------------
 > ERROR: CERES couldn't be installed.
 > Problem building code in utils/CCF. The error was:

error: Command "/usr/local/bin/gfortran -ffixed-line-length-none -fPIC -O3 -funroll-loops -I/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpn9svxfw7/src.macosx-10.11-x86_64-3.5 -I/usr/local/lib/python3.5/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/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c -c CCF.f -o /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpn9svxfw7/CCF.o" failed with exit status 4

 > If you can't solve the problem, please communicate
 > with the CERES team for help.
@jmccormac01
Copy link
Contributor

jmccormac01 commented Sep 20, 2016

CERES is written for Python 2.6 and 2.7. I've not tried using it with 3.X but from what I've seen it wouldn't work. Trying using it with v2.7?

@rishikeshprl
Copy link
Author

sir,
i tried it with python2.7. but again it is giving that same error as follows:
2.- Building processes...

 ----------------------------------------------------------
 > Fortran code found in directory utils/CCF. Building...
 ----------------------------------------------------------
 > ERROR: CERES couldn't be installed.
 > Problem building code in utils/CCF. The error was:

error: Command "/usr/local/bin/gfortran -ffixed-line-length-none -fPIC -O3 -funroll-loops -I/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmp85u1pe/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.12/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c -c CCF.f -o /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmp85u1pe/CCF.o" failed with exit status 4

 > If you can't solve the problem, please communicate
 > with the CERES team for help.

@rabrahm
Copy link
Owner

rabrahm commented Sep 20, 2016

Hi, In order to have a clearer picture about the problem, can you try to go to the ceres/utils/CCF directory and run directly the command that is in the 'Proceso_f2py' file? That output should be more informative. Thanks!

@rishikeshprl
Copy link
Author

hello sir,
i ran 'Proceso_f2py' file directly but it also gave some errors as follows.

thanks!

this is the terminal output error:

running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "CCF" sources
creating /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7
f2py options: []
f2py: CCF.pyf
Reading fortran codes...
Reading file 'CCF.pyf' (format:free)
Post-processing...
Block: CCF
Block: ccf
Block: ccfpix
Block: ccfcos
Post-processing (stage 2)...
Building modules...
Building module "CCF"...
Creating wrapper for Fortran function "ccf"("ccf")...
Constructing wrapper function "ccf"...
ccf,snw = ccf(m_l,m_h,wav,spec,weight,sn,v_r,[n,m])
Creating wrapper for Fortran function "ccfpix"("ccfpix")...
Constructing wrapper function "ccfpix"...
ccfpix = ccfpix(m_l,m_h,x,thar,delta,[n,m])
Creating wrapper for Fortran function "ccfcos"("ccfcos")...
Constructing wrapper function "ccfcos"...
ccfcos,snw = ccfcos(m_l,m_h,wav,spec,weight,sn,v_r,[n,m])
Wrote C/API module "CCF" to file "/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/CCFmodule.c"
Fortran 77 wrappers are saved to "/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/CCF-f2pywrappers.f"
adding '/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/fortranobject.c' to sources.
adding '/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7' to include_dirs.
copying /usr/local/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7
copying /usr/local/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7
adding '/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/CCF-f2pywrappers.f' to sources.
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize Gnu95FCompiler using build_ext
building 'CCF' extension
compiling C sources
C compiler: clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

creating /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/var
creating /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/var/folders
creating /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/var/folders/lg
creating /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr
creating /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T
creating /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP
creating /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7
compile options: '-I/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/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.12/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
clang: /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/CCFmodule.c
In file included from /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/CCFmodule.c:19:
In file included from /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/fortranobject.h:13:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by "
^
/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/CCFmodule.c:147:12: warning: unused function 'f2py_size' [-Wunused-function]
static int f2py_size(PyArrayObject* var, ...)
^
2 warnings generated.
clang: /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/fortranobject.c
In file included from /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/fortranobject.c:2:
In file included from /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/src.macosx-10.11-x86_64-2.7/fortranobject.h:13:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by "
^
1 warning generated.
compiling Fortran sources
Fortran f77 compiler: /usr/local/bin/gfortran -ffixed-line-length-none -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/local/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-I/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/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.12/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
gfortran:f77: CCF.f
gfortran: internal compiler error: Killed: 9 (program f951)
Please submit a full bug report,
with preprocessed source if appropriate.
See https://github.com/Homebrew/homebrew/issues for instructions.
gfortran: internal compiler error: Killed: 9 (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 -ffixed-line-length-none -fPIC -O3 -funroll-loops -I/var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/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.12/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c -c CCF.f -o /var/folders/lg/yyvpnn3104l_h61wy23cz1nm0000gr/T/tmpf8dVyP/CCF.o" failed with exit status 4

@rabrahm
Copy link
Owner

rabrahm commented Sep 20, 2016

Hi,

So the error is: gfortran: internal compiler error: Killed: 9 (program f951)
Some googling says that this issue is probably not related to CERES. Here I found an issue of another package that can help you maybe: mame/quine-relay#2

Cheers,

@rishikeshprl
Copy link
Author

hello sir,
I read that discussion which u have forwarded me. but the issue is not fixed yet.
i get to know from the discussion that the bug is caused by out of memory. i m using mac OS X EI capitan with GNU Fortran (Homebrew gcc 6.2.0) 6.2.0 and that system is having 12 gb memory.

i m not understanding that how it can be out of memory.?

Thanks!!

@rishikeshprl
Copy link
Author

Hello Sir,
please tell me which FORTRAN compiler (with its version) is suitable for CERES installation.
Actually i am having GNU Fortran (Homebrew gcc 6.2.0) 6.2.0 . Is it suitable or not??

Many thanks in advance!!!

@rabrahm
Copy link
Owner

rabrahm commented Sep 26, 2016

Hi, what I have in my system is :
$ gfortran --version
GNU Fortran (GCC) 4.9.0
Copyright (C) 2014 Free Software Foundation, Inc.

For gcc I have:
$ gcc --version
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.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

@ryanblackman
Copy link

Hi,

I am having a similar problem during installation. I've tried to match my gfortran and gcc versions to what you have, but I still get the following error:

error: Command "/usr/local/bin/gfortran -ffixed-line-length-none -m64 -fPIC -O3 -funroll-loops -I/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmp6MVsKO/src.macosx-10.6-x86_64-2.7 -I//anaconda/lib/python2.7/site-packages/numpy/core/include -I//anaconda/include/python2.7 -c -c CCF.f -o /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmp6MVsKO/CCF.o" failed with exit status 1

This is the output when running Proceso_f2py:

$ source Proceso_f2py
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "CCF" sources
creating /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7
f2py options: []
f2py: CCF.pyf
Reading fortran codes...
	Reading file 'CCF.pyf' (format:free)
Post-processing...
	Block: CCF
			Block: ccf
			Block: ccfpix
			Block: ccfcos
Post-processing (stage 2)...
Building modules...
	Building module "CCF"...
		Creating wrapper for Fortran function "ccf"("ccf")...
		Constructing wrapper function "ccf"...
		  ccf,snw = ccf(m_l,m_h,wav,spec,weight,sn,v_r,[n,m])
		Creating wrapper for Fortran function "ccfpix"("ccfpix")...
		Constructing wrapper function "ccfpix"...
		  ccfpix = ccfpix(m_l,m_h,x,thar,delta,[n,m])
		Creating wrapper for Fortran function "ccfcos"("ccfcos")...
		Constructing wrapper function "ccfcos"...
		  ccfcos,snw = ccfcos(m_l,m_h,wav,spec,weight,sn,v_r,[n,m])
	Wrote C/API module "CCF" to file "/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/CCFmodule.c"
	Fortran 77 wrappers are saved to "/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/CCF-f2pywrappers.f"
  adding '/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/fortranobject.c' to sources.
  adding '/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7' to include_dirs.
copying //anaconda/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7
copying //anaconda/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7
  adding '/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/CCF-f2pywrappers.f' to sources.
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize Gnu95FCompiler using build_ext
building 'CCF' extension
compiling C sources
C compiler: gcc -fno-strict-aliasing -I//anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

creating /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/var
creating /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/var/folders
creating /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/var/folders/mv
creating /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn
creating /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T
creating /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD
creating /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7
compile options: '-I/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7 -I//anaconda/lib/python2.7/site-packages/numpy/core/include -I//anaconda/include/python2.7 -c'
gcc: /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/fortranobject.c
In file included from /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/fortranobject.c:2:
In file included from /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/fortranobject.h:13:
In file included from //anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from //anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from //anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1788:
//anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
1 warning generated.
gcc: /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/CCFmodule.c
In file included from /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/CCFmodule.c:19:
In file included from /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/fortranobject.h:13:
In file included from //anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from //anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from //anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1788:
//anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7/CCFmodule.c:147:12: warning: unused function 'f2py_size' [-Wunused-function]
static int f2py_size(PyArrayObject* var, ...)
           ^
2 warnings generated.
compiling Fortran sources
Fortran f77 compiler: /usr/local/bin/gfortran -ffixed-line-length-none -m64 -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/local/bin/gfortran -Wall -g -fno-second-underscore -m64 -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -m64 -fPIC -O3 -funroll-loops
compile options: '-I/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7 -I//anaconda/lib/python2.7/site-packages/numpy/core/include -I//anaconda/include/python2.7 -c'
gfortran:f77: CCF.f
FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
error: Command "/usr/local/bin/gfortran -ffixed-line-length-none -m64 -fPIC -O3 -funroll-loops -I/var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/src.macosx-10.6-x86_64-2.7 -I//anaconda/lib/python2.7/site-packages/numpy/core/include -I//anaconda/include/python2.7 -c -c CCF.f -o /var/folders/mv/g_2q95mj5m73b5fwg4x4x_h00000gn/T/tmpacnsKD/CCF.o" failed with exit status 1

These are the compiler versions I am using:

$ gfortran --version
gcc-4.9 (Homebrew GCC 4.9.4) 4.9.4
Copyright (C) 2015 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.
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.0.0
Thread model: posix

I am also using Python 2.7.12. Any help would be much appreciated.

@nespinoza
Copy link
Contributor

nespinoza commented Dec 15, 2017

Hi @ryanblackman; sorry for coming so late on this answer. Your problem is 'FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!', and this has to do with the compiler apparently not getting the correct routes. To solve this, in my case I had to do export PATH=/usr/bin:$PATH.
Cheers

N.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants