LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2013, 11:21 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Rep: Reputation: 1
unrecognized command line option ‘-r8’


Hi,

I am installing a package. I have received the following error:

gfortran -c -O0 -r8 dlamch.f
gfortran: error: unrecognized command line option ‘-r8’
make[2]: *** [dlamch.o] Error 1
make[2]: Leaving directory `/home/sara/Packages/opium-v3.7-src/src/lapack'
make[1]: *** [all-subdirs] Error 1
make[1]: Leaving directory `/home/sara/Packages/opium-v3.7-src/src'
make: *** [all] Error 2


what does the option '-r8' stand for?
 
Old 05-28-2013, 11:23 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Normally in fortran, setting up a variable as "real" makes it a 32-bit float, while "double precision" or "real*8" makes it a 64-bit float.

-r8 is a flag used by many compilers to force both "real" and "real*8" variables to be 64-bit floats. gfortran has this option too, but the flag is called "-fdefault-real-8" instead. It may also promote "double precision" variables to 128-bit, if possible on your system.

Last edited by suicidaleggroll; 05-28-2013 at 11:25 AM.
 
Old 05-28-2013, 11:33 AM   #3
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by suicidaleggroll View Post
Normally in fortran, setting up a variable as "real" makes it a 32-bit float, while "double precision" or "real*8" makes it a 64-bit float.

-r8 is a flag used by many compilers to force both "real" and "real*8" variables to be 64-bit floats. gfortran has this option too, but the flag is called "-fdefault-real-8" instead. It may also promote "double precision" variables to 128-bit, if possible on your system.
Thanks, what should I change to get rid of the error?
 
Old 05-28-2013, 11:37 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Change -r8 to -fdefault-real-8
 
Old 05-28-2013, 11:48 AM   #5
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by suicidaleggroll View Post
Change -r8 to -fdefault-real-8
Thanks again. I have searched to alter -r8 with -fdefault-real-8 in the make file and in dlamch.f in lapack directory, but didn't find anything. Am I on the wrong track? Could you let me know where I should make this change?
 
Old 05-28-2013, 11:54 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
It should be in the makefile, probably the one in the lapack directory.
 
Old 05-28-2013, 12:15 PM   #7
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by suicidaleggroll View Post
It should be in the makefile, probably the one in the lapack directory.
This is the make file in lapack directory:

SHELL=/bin/sh
Quote:
include ../../makevars

objects = dbdsqr.o dcopy.o ddot.o dgebd2.o dgebrd.o dgelq2.o dgelqf.o dgemm.o dgemv.o dgeqr2.o dgeqrf.o dger.o dgesvd.o dlabrd.o dlacpy.o dlamch.o dlange.o dlapy2.o dlarf.o dlarfb.o dlarfg.o dlarft.o dlartg.o dlas2.o dlascl.o dlaset.o dlasq1.o dlasq2.o dlasq3.o dlasq4.o dlasq5.o dlasq6.o dlasr.o dlasrt.o dlassq.o dlasv2.o dlauu2.o dlauum.o dnrm2.o dorg2r.o dorgbr.o dorgl2.o dorglq.o dorgqr.o dorm2r.o dormbr.o dorml2.o dormlq.o dormqr.o dpotf2.o dpotrf.o dpotri.o drot.o dscal.o dswap.o dsyrk.o dtrmm.o dtrmv.o dtrsm.o dtrti2.o dtrtri.o ieeeck.o ilaenv.o xerbla.o lsame.o dgesv.o dgetf2.o dgetrf.o dgetrs.o dlaswp.o idamax.o

all_objects = $(objects)

this_dir = lapack

all: $(all_objects)
-rm -f objects
for i in $(all_objects); do echo $(this_dir)/$$i >> objects; done

clean:
rm -f $(objects) opium_lapack.a core* *~ objects
"Makefile" 21L, 936C
I can not find '-r8' anywhere !!!
 
Old 05-28-2013, 12:23 PM   #8
sryzdn
Member
 
Registered: Feb 2013
Posts: 248

Original Poster
Rep: Reputation: 1
Just found it, thanks for very useful help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cc: error: unrecognized command line option ‘-m-L../lib’ shumbamajachani Linux - Software 6 02-09-2013 01:05 PM
[SOLVED] run ps|grep command by script/command line ... ERROR: Unsupported option (BSD syntax) masuch Programming 4 05-23-2012 05:13 AM
use gcc command to compile a *.c file error:unrecognized option '--eh-frame-hdr' just2012 Linux - Software 2 06-30-2011 11:19 AM
cc1: error: unrecognized command line option "-mapcs-32" vengat Linux - Hardware 0 04-29-2008 03:18 AM
unrecognized command line option "-mapcs-32" vengat Linux - Hardware 1 04-26-2008 01:07 AM


All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration