This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



   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?


Index: configure.ac
===================================================================
--- configure.ac	(revision 155240)
+++ configure.ac	(working copy)
@@ -146,7 +146,11 @@ case `echo $GFORTRAN` in
   -* | no* )
     FC=no ;;
   *)
-    FC="$GFORTRAN" ;;
+    if test -x "$GFORTRAN"; then
+      FC="$GFORTRAN"
+    else
+      FC=no
+    fi ;;
 esac
 AC_PROG_FC(gfortran)
 FCFLAGS="$FCFLAGS -Wall"

(untested)

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]