Compilation problem using mesasdk for MacOS 10.5

Bug/problem reports for any of the GYRE executables (gyre_ad, gyre_nad, etc)
Post Reply
mhar
Posts: 1
Joined: Thu Sep 19, 2013 5:58 am

Compilation problem using mesasdk for MacOS 10.5

Post by mhar » Thu Oct 10, 2013 10:53 am

Hi Rich,

I received a compilation error when compiling gyre 2.2 on my Macbook,
MacOSX 10.5.8.
The problem occurs in the file 'gyre_ad_bound.f90' with the error message:
Error: Operands of binary numeric operator ... (see below)
I installed the mesasdk build for this computer.

I suspect that the error is due to the gfortran compiler. Is there a chance to make gyre running on with MacOS 10.5 (32 bit?)

The output after typing 'make' is:

Code: Select all

make[1]: Entering directory `/Users/mhar/gyre/src'
make[2]: Entering directory `/Users/mhar/gyre/src/ad'
Determining dependencies
make[2]: Leaving directory `/Users/mhar/gyre/src/ad'
make[2]: Entering directory `/Users/mhar/gyre/src/ad'
FC core_kinds.f90
FC core_order.f90
FC core_parallel.f90
FC gyre_gridpar.f90
FC gyre_numpar.f90
FC gyre_therm_coeffs.f90
FC gyre_oscpar.f90
FC gyre_base_coeffs.f90
FC gyre_ext_arith.f90
FC core_memory.f90
FC gyre_ad_bound.f90
gyre_ad_bound.f90:239.61:

      B_o(1,1) = 1 + (l*(l+1)/(c_1*omega_c**2) - 4._WP - c_1*omega_c**2)/V
                                                             1
Error: Operands of binary numeric operator '*' at (1) are CLASS(base_coeffs_t)/COMPLEX(8)
gyre_ad_bound.f90:241.31:

      B_o(1,3) = 1 + (l*(l+1)/(c_1*omega_c**2) - l - 1._WP)/V
                               1
Error: Operands of binary numeric operator '*' at (1) are CLASS(base_coeffs_t)/COMPLEX(8)
gyre_ad_bound.f90:211.17:

      B_o(2,1) = U
                 1
Error: Can't convert CLASS(base_coeffs_t) to COMPLEX(8) at (1)
gyre_ad_bound.f90:140.17:

      B_i(1,1) = c_1*omega_c**2
                 1
Error: Operands of binary numeric operator '*' at (1) are CLASS(base_coeffs_t)/COMPLEX(8)
make[2]: *** [gyre_ad_bound.mod] Error 1
make[2]: Leaving directory `/Users/mhar/gyre/src/ad'
make[2]: Entering directory `/Users/mhar/gyre/src/nad'
Determining dependencies
make[2]: Leaving directory `/Users/mhar/gyre/src/nad'
make[2]: Entering directory `/Users/mhar/gyre/src/nad'
FC core_kinds.f90
FC core_order.f90
FC core_parallel.f90
FC gyre_gridpar.f90
FC gyre_numpar.f90
FC gyre_therm_coeffs.f90
FC gyre_oscpar.f90
FC gyre_base_coeffs.f90
FC gyre_ext_arith.f90
FC core_memory.f90
FC gyre_ad_bound.f90
gyre_ad_bound.f90:239.61:

      B_o(1,1) = 1 + (l*(l+1)/(c_1*omega_c**2) - 4._WP - c_1*omega_c**2)/V
                                                             1
Error: Operands of binary numeric operator '*' at (1) are CLASS(base_coeffs_t)/COMPLEX(8)
gyre_ad_bound.f90:241.31:

      B_o(1,3) = 1 + (l*(l+1)/(c_1*omega_c**2) - l - 1._WP)/V
                               1
Error: Operands of binary numeric operator '*' at (1) are CLASS(base_coeffs_t)/COMPLEX(8)
gyre_ad_bound.f90:211.17:

      B_o(2,1) = U
                 1
Error: Can't convert CLASS(base_coeffs_t) to COMPLEX(8) at (1)
gyre_ad_bound.f90:140.17:

      B_i(1,1) = c_1*omega_c**2
                 1
Error: Operands of binary numeric operator '*' at (1) are CLASS(base_coeffs_t)/COMPLEX(8)
make[2]: *** [gyre_ad_bound.mod] Error 1
make[2]: Leaving directory `/Users/mhar/gyre/src/nad'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/Users/mhar/gyre/src'
make: *** [all] Error 2

The output gfortran -v is:

Code: Select all

Using built-in specs.
COLLECT_GCC=/Applications/mesasdk//bin/gfortran.exec
COLLECT_LTO_WRAPPER=/Applications/mesasdk/libexec/gcc/i686-apple-darwin11.4.0/4.7.2/lto-wrapper
Target: i686-apple-darwin11.4.0
Configured with: ./configure CC='gcc -arch i686 -D_FORTIFY_SOURCE=0' --build=i686-apple-darwin11.4.0 --prefix=/Applications/mesasdk --with-gmp=/Applications/mesasdk --with-mpfr=/Applications/mesasdk --with-mpc=/Applications/mesasdk --enable-languages=c,c++,fortran --disable-multilib
Thread model: posix
gcc version 4.7.2 20120710 (prerelease) (GCC) 

User avatar
rhtownsend
Site Admin
Posts: 397
Joined: Sun Mar 31, 2013 4:22 pm

Re: Compilation problem using mesasdk for MacOS 10.5

Post by rhtownsend » Thu Oct 10, 2013 11:04 am

Thanks for the bug report. It looks like you're using an oldish version of the SDK (judging from the 4.7 version number of gfortran). Can I suggest you try upgrading to the latest stable version of the SDK, and trying that out? GYRE needs gfortran 4.9 to compile correctly.

cheers,

Rich

Post Reply