[Nek5000-users] -mcmodel=medium problem

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Mon Apr 12 10:15:36 CDT 2010


Hello all,

When compiling tools using "gfortran", I came across an issue with 32
bit machines, it seems that "-mcmodel=medium" is not a valid option.

[root at frank tools]# ./maketools all
----------------------
Make genbox...
----------------------
make[1]: Entering directory `/root/nek5_svn/trunk/tools/genbox'
gfortran -mcmodel=medium -c   genbox.f
genbox.f:0: error: code model ‘medium’ not supported in the 32 bit mode
make[1]: *** [genbox.o] Error 1

If I remove "-mcmodel=medium", the resulting executable crashes
[root at frank tools]# pretex
-Adobe-Helvetica-Medium-R-Normal--12-120-75-75-P-67-ISO8859-1
Segmentation fault


[root at frank ~/Desktop]# gfortran --V
gfortran: no input files
[root at frank ~/Desktop]# gfortran --version
GNU Fortran (GCC) 4.1.2 20070925 (Red Hat 4.1.2-27)
Copyright (C) 2007 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

[root at frank ~/Desktop]# uname -a
Linux frank 2.6.23.12-52.fc7 #1 SMP Tue Dec 18 21:18:02 EST 2007 i686
i686 i386 GNU/Linux




This is also the case for for "ifort" and "icc".
ifort -mcmodel=medium -c   genbox.f
ifort: command line warning #10148: option '-mcmodel' not supported

icc -mcmodel=medium  -c -DUNDERSCORE ../../nek/byte.c
icc: command line error: invalid argument for option '-m'
make[1]: *** [byte.o] Error 1

Cheers,
Frank

-- 
Frank Herbert Muldoon, Ph.D. Mechanical Engineering
Technische Universität Wien (Technical University of Vienna)
Inst. f. Strömungsmechanik und Wärmeübertragung (Institute of Fluid
Mechanics and Heat Transfer)
Resselgasse 3
1040 Wien
Tel: +4315880132232
Fax: +4315880132299 
Cell:+436765203470
fmuldoo (skype)
http://tetra.fluid.tuwien.ac.at/fmuldoo/public_html/webpage/frank-muldoon.html




More information about the Nek5000-users mailing list