[MITgcm-devel] build_options/linux_ia32_g77

Ed Hill ed at eh3.com
Mon Aug 29 20:24:35 EDT 2005


On Mon, 2005-08-29 at 18:26 -0400, Jean-Michel Campin wrote:
> Ed,
> 
> We tried to execute only the line you added in the optfile:
> and here is what "grep flags /proc/cpuinfo" returns, on sea.mit.edu:
> > sea% grep flags /proc/cpuinfo
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
> 
> However, the compiler does not seem to know about sse2 option,
> as Dimitri mentioned.
> 
> On Mon, Aug 29, 2005 at 03:09:35PM -0700, Dimitris Menemenlis wrote:
> > trying to compile/link verification/natl_box_adjoint
> > with build_options/linux_ia32_g77 on sea
> > 
> > get following error message:
> > 
> > >g77 -Wimplicit -Wunused -mfpmath=sse -msse -msse2 -O0 -malign-double -c 
> > >active_file_ad.f
> > >f771: Invalid option `fpmath=sse'
> > >f771: Invalid option `sse2'
> > >make: *** [active_file_ad.o] Error 1
> > 
> > please suggest fix.

Hi folks,

The sea.mit.edu machine is running an old stuff:

  $ more /etc/redhat-release
  Red Hat Linux release 7.2 (Enigma)
  $ gcc -v
  Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
  gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)

so its no surprise that SSE and SSE2 aren't supported.

I suggest you do one or more of the following:

 - [EASY OPTION] create a custom optfile by removing the 
     SSE/SSE2 options from the optfile that you're currently 
     using, or
 - install a newer compiler, or
 - upgrade sea to a newer OS (which will, in turn, come with a
     newer GCC that supports SSE/SSE2)

Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Rm 54-1424;  77 Massachusetts Ave.
             Cambridge, MA 02139-4307
emails:  eh3 at mit.edu                ed at eh3.com
URLs:    http://web.mit.edu/eh3/    http://eh3.com/
phone:   617-253-0098
fax:     617-253-4464




More information about the MITgcm-devel mailing list