Problem with gfortran or did I messsed up GMP installation?

Aleksandar Milivojevic alex@milivojevic.org
Wed Jan 25 05:53:00 GMT 2006


Eric Botcazou wrote:
>> So, the question is, did I broke something by attempting to have both
>> 32-bit and 64-bit GMP library installed simultaniously?  Did I miss
>> anything needed to have both 32-bit and 64-bit GMP available on the
>> system?
> 
> Do not install both 32-bit and 64-bit GMP, you only need one of them:
> sparc-sun-solaris2.* compiler -> 32-bit GMP
> sparc64-sun-solaris2.* compiler -> 64-bit GMP.

OK, so I reinstalled GMP.  Now I have only 32-bit GMP on the system. 
Stock gmp.h file.  Recompiled gcc (4.0.2), target sparc-sun-solaris2.9. 
  Got exactly same thing.  When I compile simple looping hello world 
program (source in my first post), it exits right away.  When I use 
-m64, it works OK (loops forever printing "hello world").

Now, the interesting part.  I also built gcc 4.0.2 on 
sparc-sun-solaris2.6.  If I compile the "hello world" program on it 
(obviously it will be 32-bit), it runs just fine (prints hello world in 
endless loop).  If I copy the executable to Solaris 2.9 system and run 
it, it exits immediately.

Hmph...  Interesting...  Looks like the problem is in libgfortran?

Should I file bug on bugzilla?



More information about the Gcc mailing list