<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HP f90 compilation error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750075#M99734</link>
    <description>the version of f90 is v2.8.4&lt;BR /&gt;&lt;BR /&gt;I encount an error when I compile a program&lt;BR /&gt;---&lt;BR /&gt;        f90 -I./src -lm +O3 +Onoautopar +DD32 +r8 -L/opt/fortran90/lib/ielf/math/hpux32  -c  src/qdiff4v.f&lt;BR /&gt;src/qdiff4v.f&lt;BR /&gt;   program QDIFF&lt;BR /&gt; noit=int(7.8/log(1.0 + sqrt(1-spec)))&lt;BR /&gt;              ^&lt;BR /&gt;Error 937 at (345:src/qdiff4v.f) : This is not the name of a function&lt;BR /&gt;      ^&lt;BR /&gt;Error 887 at (345:src/qdiff4v.f) : Argument to this intrinsic procedure is missing&lt;BR /&gt;Warning 403 : Padding inserted before variable RMMIN in common SCALE&lt;BR /&gt;&lt;BR /&gt;2 Errors&lt;BR /&gt;f90: error 213: Errors detected.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;----&lt;BR /&gt;&lt;BR /&gt;This program has been smoothly compiled under PC Linux. I wrote a simple code that only has "write (*,*) log(4.5)", and found f90 can compile it. I don't know why HP f90 keeping saying "log" "is not the name of a function" when compiling qdiff4v.f. It's highly appreciated for any advice! Thanks in advance!</description>
    <pubDate>Mon, 13 Mar 2006 17:17:44 GMT</pubDate>
    <dc:creator>junjun_1</dc:creator>
    <dc:date>2006-03-13T17:17:44Z</dc:date>
    <item>
      <title>HP f90 compilation error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750075#M99734</link>
      <description>the version of f90 is v2.8.4&lt;BR /&gt;&lt;BR /&gt;I encount an error when I compile a program&lt;BR /&gt;---&lt;BR /&gt;        f90 -I./src -lm +O3 +Onoautopar +DD32 +r8 -L/opt/fortran90/lib/ielf/math/hpux32  -c  src/qdiff4v.f&lt;BR /&gt;src/qdiff4v.f&lt;BR /&gt;   program QDIFF&lt;BR /&gt; noit=int(7.8/log(1.0 + sqrt(1-spec)))&lt;BR /&gt;              ^&lt;BR /&gt;Error 937 at (345:src/qdiff4v.f) : This is not the name of a function&lt;BR /&gt;      ^&lt;BR /&gt;Error 887 at (345:src/qdiff4v.f) : Argument to this intrinsic procedure is missing&lt;BR /&gt;Warning 403 : Padding inserted before variable RMMIN in common SCALE&lt;BR /&gt;&lt;BR /&gt;2 Errors&lt;BR /&gt;f90: error 213: Errors detected.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;----&lt;BR /&gt;&lt;BR /&gt;This program has been smoothly compiled under PC Linux. I wrote a simple code that only has "write (*,*) log(4.5)", and found f90 can compile it. I don't know why HP f90 keeping saying "log" "is not the name of a function" when compiling qdiff4v.f. It's highly appreciated for any advice! Thanks in advance!</description>
      <pubDate>Mon, 13 Mar 2006 17:17:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750075#M99734</guid>
      <dc:creator>junjun_1</dc:creator>
      <dc:date>2006-03-13T17:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: HP f90 compilation error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750076#M99735</link>
      <description>Hi,&lt;BR /&gt;not a fortran expert, but have you tried isolating the problem by:&lt;BR /&gt;1. output the variables before your statement&lt;BR /&gt;2. Use of brackets&lt;BR /&gt;noit=int(7.8/(log(1.0 + (sqrt(1.0 - spec))))&lt;BR /&gt;3. Separation of statements&lt;BR /&gt;a=sqrt(1.0 - spec)&lt;BR /&gt;b=log(1.0 + a)&lt;BR /&gt;c=(7.8/b)&lt;BR /&gt;noit=int(c)</description>
      <pubDate>Tue, 14 Mar 2006 02:36:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750076#M99735</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-14T02:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: HP f90 compilation error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750077#M99736</link>
      <description>Thanks your good suggestions! I finally changed the code from&lt;BR /&gt;noit=int(7.8/log(1.0 + sqrt(1-spec)))&lt;BR /&gt;to&lt;BR /&gt;write (*,*) log(1.3)&lt;BR /&gt;and the compiling error msg is:&lt;BR /&gt;-------&lt;BR /&gt;f90 -Isrc a.f&lt;BR /&gt;a.f&lt;BR /&gt;   program QDIFF&lt;BR /&gt; write (*,*) log(1.3)&lt;BR /&gt;             ^&lt;BR /&gt;Error 937 at (348:a.f) : This is not the name of a function&lt;BR /&gt;&lt;BR /&gt;1 Error&lt;BR /&gt;f90: error 213: Errors detected, no link.&lt;BR /&gt;-------&lt;BR /&gt;Looks like f90 don't know "log". But it compiled successfully when I put "write (*,*) log(1.3)" followed by "END" into an empty file. Any suggestions? Thanks!&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2006 10:00:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750077#M99736</guid>
      <dc:creator>junjun_1</dc:creator>
      <dc:date>2006-03-14T10:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: HP f90 compilation error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750078#M99737</link>
      <description>I changed "log" in the code to "lg", and compilation passed without errors. But when linking objects, the follwing messages appeared:&lt;BR /&gt;-----&lt;BR /&gt;.....&lt;BR /&gt;.....&lt;BR /&gt;ld: Type mismatch for symbol "log"; resolving OBJECT symbol (in file ichash4.o) to FUNC symbol (in file /usr/lib/hpux32//libm.so)&lt;BR /&gt;ld: Type mismatch for symbol "log"; resolving OBJECT symbol (in file irhash4.o) to FUNC symbol (in file /usr/lib/hpux32//libm.so)&lt;BR /&gt;ld: Type mismatch for symbol "log"; resolving OBJECT symbol (in file rdhcrg.o) to FUNC symbol (in file /usr/lib/hpux32//libm.so)&lt;BR /&gt;ld: Type mismatch for symbol "link"; resolving OBJECT symbol (in file qdiff4v.o) to FUNC symbol (in file /usr/lib/hpux32//libc.so)&lt;BR /&gt;ld: Unsatisfied symbol "lg" in file qdiff4v.o&lt;BR /&gt;ld: Unsatisfied symbol "fdate" in file itit4j.o&lt;BR /&gt;ld: Unsatisfied symbol "etime" in file timef.o&lt;BR /&gt;ld: Unsatisfied symbol "dtime" in file timef.o&lt;BR /&gt;34 warnings.&lt;BR /&gt;4 errors.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;-----&lt;BR /&gt;&lt;BR /&gt;Any suggestions? Thanks in advance!</description>
      <pubDate>Tue, 14 Mar 2006 17:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750078#M99737</guid>
      <dc:creator>junjun_1</dc:creator>
      <dc:date>2006-03-14T17:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: HP f90 compilation error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750079#M99738</link>
      <description>Why are you using -L/opt/fortran90/lib/ielf/math/hpux32?&lt;BR /&gt;If this isn't documented with f90, remove it.  The similar file libmielf.a there is useless for C/aC++.&lt;BR /&gt;Also -lm needs to be at the end of the link line.&lt;BR /&gt;&lt;BR /&gt;From your linker messages:&lt;BR /&gt;ld: Type mismatch for symbol "log"; resolving OBJECT symbol (ichash4.o) to FUNC symbol (libm.so)&lt;BR /&gt;&lt;BR /&gt;This is saying you have defined log as a data variable or array and not a function.  And you have done it in ichash4.f, irhash4.f, rdhcrg.f and qdiff4v.f.&lt;BR /&gt;&lt;BR /&gt;ld: Unsatisfied symbol "lg" in file qdiff4v.o&lt;BR /&gt;&lt;BR /&gt;And you don't have definitions for lg (that you changed) and for fdate, etime and dtime.</description>
      <pubDate>Wed, 15 Mar 2006 00:42:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750079#M99738</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-03-15T00:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: HP f90 compilation error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750080#M99739</link>
      <description>Now I'm required to resolve this problem. I'm hoping you kind guys can continue helping me on this problem, thanks!&lt;BR /&gt;&lt;BR /&gt;Now I have two questions:&lt;BR /&gt;1). "lg" is the function name of natural logarithm in our f90. Why I need to define it?&lt;BR /&gt;2). I did a test by compiling the code "write (*,*) log(4.5)" successfully, indicating that "log" should be recognized by our f90. Why our f90 complains wrong function name when compiling "noit=int(7.8/log(1.0 + sqrt(1-spec)))" in the program code?&lt;BR /&gt;&lt;BR /&gt;By the way, the program code we need to compile is an academic software and can be compiled smoothly by PGI in linux, whileas Intel fortran also can't pass the compilation.</description>
      <pubDate>Wed, 24 May 2006 16:15:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750080#M99739</guid>
      <dc:creator>junjun_1</dc:creator>
      <dc:date>2006-05-24T16:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: HP f90 compilation error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750081#M99740</link>
      <description>&amp;gt;1) "lg" is the function name of natural logarithm in our f90. Why I need to define it?&lt;BR /&gt;&lt;BR /&gt;I thought the name is log?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2) Why our f90 complains wrong function name when compiling "noit=int(7.8/log(1.0 + sqrt(1-spec)))" in the program code?&lt;BR /&gt;&lt;BR /&gt;There is nothing obviously wrong with the statement.  You probably need to attach your file so we know exactly what you have.</description>
      <pubDate>Wed, 24 May 2006 17:55:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750081#M99740</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-05-24T17:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: HP f90 compilation error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750082#M99741</link>
      <description>Thank you, Dennis! I just got the response from the author that I'm not allowed to send you the whole code file according to the license.&lt;BR /&gt;&lt;BR /&gt;Yes, you are right. That statement is correct. I tested this statement with our HP f90 and it gives out correct result.&lt;BR /&gt;&lt;BR /&gt;I'll try to find out more things to resolve this compiling problem. Thanks anyway!</description>
      <pubDate>Tue, 30 May 2006 15:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-f90-compilation-error/m-p/3750082#M99741</guid>
      <dc:creator>junjun_1</dc:creator>
      <dc:date>2006-05-30T15:13:12Z</dc:date>
    </item>
  </channel>
</rss>

