Bug 51607 - configure: error: GNU fortran compiler is not working ;
Summary: configure: error: GNU fortran compiler is not working ;
Status: RESOLVED DUPLICATE of bug 51103
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-18 09:24 UTC by David
Modified: 2011-12-19 23:38 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
fortran library config log (8.14 KB, application/octet-stream)
2011-12-18 09:25 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2011-12-18 09:24:12 UTC
checking whether we are using the GNU Fortran compiler... yes
checking whether /Users/Exodus/downloads/gcc-4.6.2/build/./gcc/gfortran -B/Users/Exodus/downloads/gcc-4.6.2/build/./gcc/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/bin/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/lib/ -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/include -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/sys-include    accepts -g... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for /Users/Exodus/downloads/gcc-4.6.2/build/./gcc/gfortran -B/Users/Exodus/downloads/gcc-4.6.2/build/./gcc/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/bin/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/lib/ -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/include -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/sys-include    option to produce PIC... -fno-common
checking if /Users/Exodus/downloads/gcc-4.6.2/build/./gcc/gfortran -B/Users/Exodus/downloads/gcc-4.6.2/build/./gcc/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/bin/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/lib/ -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/include -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/sys-include    PIC flag -fno-common works... yes
checking if /Users/Exodus/downloads/gcc-4.6.2/build/./gcc/gfortran -B/Users/Exodus/downloads/gcc-4.6.2/build/./gcc/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/bin/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/lib/ -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/include -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/sys-include    static flag -static works... no
checking if /Users/Exodus/downloads/gcc-4.6.2/build/./gcc/gfortran -B/Users/Exodus/downloads/gcc-4.6.2/build/./gcc/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/bin/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/lib/ -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/include -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/sys-include    supports -c -o file.o... yes
checking if /Users/Exodus/downloads/gcc-4.6.2/build/./gcc/gfortran -B/Users/Exodus/downloads/gcc-4.6.2/build/./gcc/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/bin/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/lib/ -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/include -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/sys-include    supports -c -o file.o... (cached) yes
checking whether the /Users/Exodus/downloads/gcc-4.6.2/build/./gcc/gfortran -B/Users/Exodus/downloads/gcc-4.6.2/build/./gcc/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/bin/ -B/Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/lib/ -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/include -isystem /Users/Exodus/my_gcc/x86_64-apple-darwin11.2.0/sys-include    linker (/Users/Exodus/downloads/gcc-4.6.2/build/./gcc/collect-ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin11.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether the GNU Fortran compiler is working... no
configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /Users/Exodus/downloads/gcc-4.6.2/build/x86_64-apple-darwin11.2.0/libgfortran/config.log
make[1]: *** [configure-target-libgfortran] Error 1
make: *** [all] Error 2


i'm quite new to unix, i have tried to find solutions to this but any help/pointers would be useful
Comment 1 David 2011-12-18 09:25:27 UTC
Created attachment 26127 [details]
fortran library config log
Comment 2 Tobias Burnus 2011-12-18 09:51:35 UTC
Most of the time this issue indicates a problem with the MPFR installation.

On Darwin, those issues were said to be due to miscompilations of MPFR by Apple's GCC, cf. PR 51103 and PR 51343.
Comment 3 David 2011-12-18 14:15:15 UTC
any ideas of how to solve this?
Comment 4 Tobias Burnus 2011-12-19 20:50:58 UTC
You could use a binary GCC (cf. http://gcc.gnu.org/wiki/GFortranBinaries for some places for getting an unofficial build). And you could then use that one to compile your own version - in case you still need it.

Otherwise, you could also ask at gcc-help@ for further suggestions, cf. http://gcc.gnu.org/lists.html
Comment 5 Andrew Pinski 2011-12-19 23:38:05 UTC
Yes this is a dup of bug 51103.

*** This bug has been marked as a duplicate of bug 51103 ***