5 Replies Latest reply on Mar 1, 2013 3:04 AM by saravanan_ekanathan

    openf90 use, intrinsic :: ieee_arithmetic

    nickhatz

      use, intrinsic :: ieee_arithmetic

                        ^              

      openf95-292 openf90: ERROR OLAM_RUN, File = olam_run.F90, Line = 36, Column = 19

        "IEEE_ARITHMETIC" is specified as the module name on a USE statement, but the compiler cannot find it.

       

       

       

      compile the module people!!!

       

      it has to do with this file from the source code: ieee_arithmetic.F90

      but as I see it is not compiled

       

      HELP ME!!!

        • Re: openf90 use, intrinsic :: ieee_arithmetic
          santosh.zanjurne

          You will find the required files in sources/osprey/libfi/mathlb compiler sources path.  I build this with :

          opencc gen_ieee_cpp_macros.c -I/home/santosh/Compiler/open64/sources/osprey/clibinc

          ./a.out > ieee_cpp_macros.h

          openf90  -I. ieee_arithmetic.F90 ../../../t.f90

           

          However please note that I havent tested this throughly.

            • Re: openf90 use, intrinsic :: ieee_arithmetic
              nickhatz

              [nickhatz-dev@master-0 ~/progs/x86_open64-4.5.2/osprey/libfi/mathlb]$ opencc gen_ieee_cpp_macros.c -I/home/nickhatz-dev/progs/x86_open64-4.5.2/osprey/clibinc

              gen_ieee_cpp_macros.c: In function 'main':

              gen_ieee_cpp_macros.c:51: error: 'FP_NAN' undeclared (first use in this function)

              gen_ieee_cpp_macros.c:51: error: (Each undeclared identifier is reported only once

              gen_ieee_cpp_macros.c:51: error: for each function it appears in.)

              gen_ieee_cpp_macros.c:52: error: 'FP_INFINITE' undeclared (first use in this function)

              gen_ieee_cpp_macros.c:53: error: 'FP_ZERO' undeclared (first use in this function)

              gen_ieee_cpp_macros.c:54: error: 'FP_SUBNORMAL' undeclared (first use in this function)

              gen_ieee_cpp_macros.c:55: error: 'FP_NORMAL' undeclared (first use in this function)

               

              I have not compiled the compiler from source

              I have a centos 5.3

              Linux master-0.local 2.6.18-128.1.14.el5 #1 SMP Wed Jun 17 06:38:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

               

              my bashrc is:

               

              export TOOLROOT=/home/nickhatz-dev/local/x86_open64-4.5.2

              export PATH=$TOOLROOT/bin:$PATH

              export LD_LIBRARY_PATH=/home/nickhatz-dev/local/x86_open64-4.5.2/open64-gcc-4.2.0/lib:$LD_LIBRARY_PATH

              export PATH=/home/nickhatz-dev/local/x86_open64-4.5.2/open64-gcc-4.2.0/bin:$PATH

              #export LD_LIBRARY_PATH=/home/nickhatz-dev/local/x86_open64-4.5.2/lib/gcc-lib/x86_64-open64-linux/4.5.2:$LD_LIBRARY_PATH

               

              I download the compiler from amd site x86_open64-4.5.2-1.rhel5_sles10.x86_64.tar.bz2

              Am I doing something wrong, I might have not setup the environment correct

              on the other hand there are not instructions how they came up with these executables for rhel5

              nor how you setup the bashrc environment