standalone install issues

Bug/problem reports for any of the GYRE executables (gyre_ad, gyre_nad, etc)
jeanm12
Posts: 6
Joined: Tue Oct 21, 2014 1:45 pm

standalone install issues

Post by jeanm12 » Mon Nov 27, 2017 3:37 pm

Hello,

I am attempting to install gyre outside of MESA (MESA install of it worked fine), however I am getting an error during the make. I am using gyre-5.1 and have tried with the two most recent versions of the SDK and get the same result.

Code: Select all

Determining dependencies
FC core_kinds.f90
FC core_system.f90
FC core_constants.f90
FC gyre_constants.f90
FC gyre_out_par.f90
FC gyre_grid_par.f90
FC core_order.f90
FC core_parallel.f90
FC gyre_mode_par.f90
FC gyre_status.f90
FC gyre_r_state.f90
FC gyre_c_state.f90
FC gyre_state.f90
FC gyre_r_bound.f90
FC gyre_c_bound.f90
FC gyre_bound.f90
FC gyre_r_ext.f90
FC gyre_c_ext.f90
FC gyre_ext.f90
FC gyre_c_sysmtx.f90
FC gyre_r_sysmtx.f90
FC gyre_sysmtx.f90
FC gyre_c_diff.f90
FC gyre_r_diff.f90
FC gyre_diff.f90
FC gyre_num_par.f90
FC core_linalg.f90
FC gyre_linalg.f90
/tmp/ccfPlndB.s: Assembler messages:
/tmp/ccfPlndB.s:1095: Error: no such instruction: `shlx %rax,176(%rsp),%r9'
/tmp/ccfPlndB.s:1682: Error: no such instruction: `shlx %rax,368(%rsp),%rbp'
/tmp/ccfPlndB.s:3279: Error: no such instruction: `shlx %rax,400(%rsp),%r10'
/tmp/ccfPlndB.s:9804: Error: no such instruction: `shlx %rax,400(%rsp),%r11'
make[2]: *** [gyre_linalg.o] Error 1







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

Re: standalone install issues

Post by rhtownsend » Mon Nov 27, 2017 3:55 pm

jeanm12 wrote:Hello,

I am attempting to install gyre outside of MESA (MESA install of it worked fine), however I am getting an error during the make. I am using gyre-5.1 and have tried with the two most recent versions of the SDK and get the same result.

Code: Select all

Determining dependencies
FC core_kinds.f90
FC core_system.f90
FC core_constants.f90
FC gyre_constants.f90
FC gyre_out_par.f90
FC gyre_grid_par.f90
FC core_order.f90
FC core_parallel.f90
FC gyre_mode_par.f90
FC gyre_status.f90
FC gyre_r_state.f90
FC gyre_c_state.f90
FC gyre_state.f90
FC gyre_r_bound.f90
FC gyre_c_bound.f90
FC gyre_bound.f90
FC gyre_r_ext.f90
FC gyre_c_ext.f90
FC gyre_ext.f90
FC gyre_c_sysmtx.f90
FC gyre_r_sysmtx.f90
FC gyre_sysmtx.f90
FC gyre_c_diff.f90
FC gyre_r_diff.f90
FC gyre_diff.f90
FC gyre_num_par.f90
FC core_linalg.f90
FC gyre_linalg.f90
/tmp/ccfPlndB.s: Assembler messages:
/tmp/ccfPlndB.s:1095: Error: no such instruction: `shlx %rax,176(%rsp),%r9'
/tmp/ccfPlndB.s:1682: Error: no such instruction: `shlx %rax,368(%rsp),%rbp'
/tmp/ccfPlndB.s:3279: Error: no such instruction: `shlx %rax,400(%rsp),%r10'
/tmp/ccfPlndB.s:9804: Error: no such instruction: `shlx %rax,400(%rsp),%r11'
make[2]: *** [gyre_linalg.o] Error 1

What platform are you running on? Also, can you post the output from 'gfortran -v'.

cheers,

Rich

jeanm12
Posts: 6
Joined: Tue Oct 21, 2014 1:45 pm

Re: standalone install issues

Post by jeanm12 » Mon Nov 27, 2017 4:06 pm

I am running on Scientific Linux release 6.9

gfortran -v

Code: Select all

Using built-in specs.
COLLECT_GCC=/home/jm3277/mesa_src/mesasdk/bin/gfortran.exec
COLLECT_LTO_WRAPPER=/home/jm3277/mesa_src/mesasdk/bin/../libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /root/mesasdk-src/gcc/configure CC=gcc --build=x86_64-pc-linux-gnu --prefix=/root/mesasdk --with-gmp=/root/mesasdk --with-mpfr=/root/mesasdk --with-mpc=/root/mesasdk --enable-languages=c,c++,fortran --disable-multilib --disable-nls --disable-libsanitizer --enable-clocale=generic
Thread model: posix
gcc version 7.2.0 (GCC) 

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

Re: standalone install issues

Post by rhtownsend » Mon Nov 27, 2017 4:44 pm

jeanm12 wrote:I am running on Scientific Linux release 6.9

gfortran -v

Code: Select all

Using built-in specs.
COLLECT_GCC=/home/jm3277/mesa_src/mesasdk/bin/gfortran.exec
COLLECT_LTO_WRAPPER=/home/jm3277/mesa_src/mesasdk/bin/../libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /root/mesasdk-src/gcc/configure CC=gcc --build=x86_64-pc-linux-gnu --prefix=/root/mesasdk --with-gmp=/root/mesasdk --with-mpfr=/root/mesasdk --with-mpc=/root/mesasdk --enable-languages=c,c++,fortran --disable-multilib --disable-nls --disable-libsanitizer --enable-clocale=generic
Thread model: posix
gcc version 7.2.0 (GCC) 
Thanks! Can you also post the output from 'uname -a'.

cheers,

Rich

jeanm12
Posts: 6
Joined: Tue Oct 21, 2014 1:45 pm

Re: standalone install issues

Post by jeanm12 » Mon Nov 27, 2017 4:54 pm

Linux markab.astro.yale.edu 2.6.32-696.16.1.el6.x86_64 #1 SMP Tue Nov 14 14:23:46 CST 2017 x86_64 x86_64 x86_64 GNU/Linux

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

Re: standalone install issues

Post by rhtownsend » Mon Nov 27, 2017 8:50 pm

jeanm12 wrote:Linux markab.astro.yale.edu 2.6.32-696.16.1.el6.x86_64 #1 SMP Tue Nov 14 14:23:46 CST 2017 x86_64 x86_64 x86_64 GNU/Linux
OK, thanks. Next hoop: post output from 'which as'.

cheers,

Rich

jeanm12
Posts: 6
Joined: Tue Oct 21, 2014 1:45 pm

Re: standalone install issues

Post by jeanm12 » Mon Nov 27, 2017 9:36 pm

which as:
usr/bin/as

as --version:
GNU assembler version 2.20.51.0.2-5.46.el6 20100205
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-redhat-linux'.

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

Re: standalone install issues

Post by rhtownsend » Tue Nov 28, 2017 8:34 am

jeanm12 wrote:which as:
usr/bin/as

as --version:
GNU assembler version 2.20.51.0.2-5.46.el6 20100205
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-redhat-linux'.
OK, I think I've found the problem. Please edit the file src/build/Make.inc, and delete the '-march=native' portion of the definition of the FFLAGS variable. Then, run 'make clean' and 'make'.

cheers,

Rich

jeanm12
Posts: 6
Joined: Tue Oct 21, 2014 1:45 pm

Re: standalone install issues

Post by jeanm12 » Wed Nov 29, 2017 12:27 pm

That seems to have done the trick. Got it installed and all tests succeeded. Thank you!

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

Re: standalone install issues

Post by rhtownsend » Wed Nov 29, 2017 1:25 pm

jeanm12 wrote:That seems to have done the trick. Got it installed and all tests succeeded. Thank you!
Excellent!

You might want to consider upgrading the assembler (/usr/bin/as) on your system -- it is quite old, and won't be able to take advantage of the full capabilities of your hardware. Once that's been done, try adding the -march=native flag back in.

cheers,

Rich

Post Reply