can't build current trunk: ar: .libs/libgomp.lib: File format not recognized

Paolo Bonzini bonzini@gnu.org
Tue Jan 26 22:04:00 GMT 2010


On 01/26/2010 08:57 AM, Paolo Bonzini wrote:
> On 01/25/2010 11:38 PM, Dave Korn wrote:
>> On 25/01/2010 20:58, Paolo Bonzini wrote:
>>>
>>>> This probably is a new version of PR41418 then. We have the
>>>> problem that
>>>> fortran is turned on in --enable-languages, so libgomp configure
>>>> expects the
>>>> fortran compiler to be available.
>>>
>>> Does this fix it for you?
>>
>> That succeeded for "rm -rf i686-pc-cygwin/libgomp; make
>> configure-target-libgomp all-target-libgomp". I'll leave a full bootstrap
>> running overnight but it looks sound to me.
>
> Committed, I think we can revert Joern's second patch, I'll check in the
> next 1-2 days.

In the meanwhile, this needs to be committed to fix failures in 
libgomp.fortran:

2010-01-26  Paolo Bonzini  <bonzini@gnu.org>

         * configure.ac: Test for executability of _the first word_ of
         GFORTRAN.
         * configure: Regenerate.

Index: configure.ac
===================================================================
--- configure.ac        (revision 156244)
+++ configure.ac        (working copy)
@@ -146,7 +146,8 @@ case `echo $GFORTRAN` in
    -* | no* )
      FC=no ;;
    *)
-    if test -x "$GFORTRAN"; then
+    set dummy $GFORTRAN; ac_word=$2
+    if test -x "$ac_word"; then
        FC="$GFORTRAN"
      else
        FC=no

Paolo



More information about the Gcc mailing list