http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48404

Scot Breitenfeld <brtnfld at hdfgroup dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #8 from Scot Breitenfeld <brtnfld at hdfgroup dot org> 2011-04-06 
01:36:28 UTC ---
(In reply to comment #7)
> (In reply to comment #3)

I've played around with going between gcc 4.6, 4.5 and 4.4 and indeed it fixes
the problem if you make sure to specify the correct LD_LIBRARY_PATH to the
matching gcc version.

 For example, if I'm using gfortran4.6 then the library path LD_LIBRARY_PATH
needs to find libgfortran.so at the installed 4.6 library path, for example
/usr/local/lib/gcc46/. 

I did this for the test program and it works. It gave KIND=4,8,10,16 so gcc46
must of had libquadmath-support, and a program with KIND=16 compiles.

My gcc4.5 and gcc4.4 apparently did not have libquadmath-support, so the test
program gives KIND=4,8,10 which is fine. I also verified I could use the
LD_LIBRARY_PATH at gcc4.5 for gcc4.4, so they are backward compatible assuming
the libquadmath-support was the same (as it was in my case).

Not much can be done if the packages get it wrong. Thanks for the help. I'll
close the bug report.

Reply via email to