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)