> -----Original Message-----
> From: Tobias Burnus [mailto:bur...@net-b.de]
> Sent: Monday, April 29, 2013 3:47 PM
> To: Iyer, Balaji V
> Cc: 'gcc@gcc.gnu.org'
> Subject: Re: Fortran Compiler Hangs
> 
> Hello Iyer,
> 
> Iyer, Balaji V wrote:
> > The fortran compiler  (f951) seem to hang even for a simple hello world
> program in GCC. This is causing the whole gcc build process to hang at the
> following line:
> >
> > checking for x86_64-unknown-linux-gnu-gfortran...
> > /export/users/gcc-svn/b-cilkplus-gcc/./gcc/gfortran
> 
> First question: Do you use the trunk or some branch? From your email, I'd
> assume that you use the trunk, but "b-cilkplus-gcc" rather implies that you 
> are
> using some branch.

Hi Tobias,
        I found this issue when I updated my cilkplus branch with trunk. Then, 
I went to the same revision in the trunk and the same issue was there also.

> 
> 
> Looking at the backtrace, it seems as if your GMP (GNU Multiprecision 
> [integer]
> Library) and/or MPFR (multi-precision floating-point library) is not correctly
> working, e.g. you might use a different library version at run time than you
> compiled against. The problem could be either f951
> -> MPFR or MFPR -> GMP. Or it could be something different. In any case,
> the failure happens very early in the f951 when the some variables are 
> initialized
> - which is before the parser even has started.

I downloaded the MPFR, MPC and GMP libraries using 
./contrib/download_prerequisites script. I am still having the same issue. I 
tried simple programs on cc1 and cc1plus and it seem to work OK.

Thanks,

Balaji V. Iyer.

> 
> Tobias
> 
> > I tried a small hello world program and it was also hanging. I tried to gdb 
> > it and
> here is the backtrace. My current revision is at r198424. My previous revision
> was at r198143 and I believe things were working fine there.
> >
> > Here is the test program:
> >
> >         PRINT *, 'Hello, world!'
> >         END
> >
> > Here is the back trace:
> > (gdb) bt
> > #0  0x0000000000ece7f1 in __gmpn_mul_1 ()
> > #1  0x0000000000ed540b in __gmpn_mul_basecase ()
> > #2  0x0000000000ed3c2f in __gmpn_kara_mul_n ()
> > #3  0x0000000000ed40df in __gmpn_kara_mul_n ()
> > #4  0x0000000000ed4bd5 in __gmpn_toom3_mul_n ()
> > #5  0x0000000000ed52ac in __gmpn_mul_n ()
> > #6  0x0000000000ed011f in __gmpn_mul ()
> > #7  0x0000000000edd4e4 in __gmpn_toom22_mul ()
> > #8  0x0000000000eded73 in __gmpn_toom32_mul ()
> > #9  0x0000000000ed0080 in __gmpn_mul ()
> > #10 0x0000000000ec9cd3 in __gmpz_mul ()
> > #11 0x0000000000ea2fb1 in S ()
> > #12 0x0000000000ea2f95 in S ()
> > #13 0x0000000000ea2f6b in S ()
> > #14 0x0000000000ea2f95 in S ()
> > #15 0x0000000000ea2f6b in S ()
> > #16 0x0000000000ea2f6b in S ()
> > #17 0x0000000000ea2f95 in S ()
> > #18 0x0000000000ea2f6b in S ()
> > #19 0x0000000000ea2f6b in S ()
> > #20 0x0000000000ea326b in mpfr_const_log2_internal ()
> > #21 0x0000000000eb98af in mpfr_cache ()
> > #22 0x0000000000ea36eb in mpfr_log ()
> > #23 0x0000000000eb3165 in mpfr_log10 ()
> > #24 0x000000000051d2af in gfc_arith_init_1() ()
> > #25 0x0000000000576463 in gfc_init_1() ()
> > #26 0x00000000005c5bb3 in gfc_init() ()
> > #27 0x000000000097d8b7 in toplev_main(int, char**) ()
> > #28 0x00007ffff7644bc6 in __libc_start_main () from /lib64/libc.so.6
> > #29 0x000000000051bb41 in _start () at
> > ../sysdeps/x86_64/elf/start.S:113

Reply via email to