[Ipopt] Re problem with MUMPS and Intel Fortran

Stefan Vigerske stefan at math.hu-berlin.de
Fri Jul 31 08:32:42 EDT 2009


Hi,

when upgrading from Intel 10 to Intel 11 compiler, I also got the
problem that the FFLAGS were not recognized correctly.
The problem seem to be that cygwin adds its own /usr/bin to the front of
the PATH variable. This directory has a program link.exe.
When now configure checks if the FFLAGS work by letting ifort compiler
some simple fortran program, then ifort uses the wrong link.exe to build
its binary.
With Intel 10, the setup of the intel compilers must have setup ifort to
pick up ifort from the right location. But this seem to have vanished
for Intel 11. You can supplement ifort with the right location of
link.exe by editing the file ifort.cfg
(in my case, it is in C:\Program Files\Intel\Compiler\11.1\038\bin\ia32)
and lines like

# Enable Microsoft Visual C++* .NET 7.1 compatibility
-Qvc7.1

# Path to Microsoft Visual C++* .NET 7.1 linker
-Qlocation,link,"C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Bin"

Similar when you use the Intel C++ Compiler 11.1.

Best,
Stefan


Krish Krishnan wrote:
> Hi Ali and others:
> 
> I am providing the warnings and errors from the compilation.  Please bear with me as it is a bit long
> 
> ******************************************START OUTPUT**************************************
> Making all in ThirdParty/Blas
> make[1]: Entering directory `/cygdrive/d/Ipopt-3.6.1_VC/ThirdParty/Blas'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/cygdrive/d/Ipopt-3.6.1_VC/ThirdParty/Blas'
> Making all in ThirdParty/Lapack
> make[1]: Entering directory `/cygdrive/d/Ipopt-3.6.1_VC/ThirdParty/Lapack'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/cygdrive/d/Ipopt-3.6.1_VC/ThirdParty/Lapack'
> Making all in ThirdParty/Metis
> make[1]: Entering directory `/cygdrive/d/Ipopt-3.6.1_VC/ThirdParty/Metis'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/cygdrive/d/Ipopt-3.6.1_VC/ThirdParty/Metis'
> Making all in ThirdParty/Mumps
> make[1]: Entering directory `/cygdrive/d/Ipopt-3.6.1_VC/ThirdParty/Mumps'
> /bin/sh ./../../libtool --tag=F77 --mode=compile ifort  -I. -I`cygpath -w .`  -I`cygpath -w ./MUMPS/src` -I`cygpath -w ./MUMPS/libseq` -I`cygpath -w ./MUMPS/include`   -Dmetis -c -o dmumps_comm_buffer.lo `test -f 'MUMPS/src/dmumps_comm_buffer.F' || echo './'`MUMPS/src/dmumps_comm_buffer.F
>  ifort -I. -I. -IMUMPS\\src -IMUMPS\\libseq -IMUMPS\\include -Dmetis -c MUMPS\\src\\dmumps_comm_buffer.F
> Intel(R) Visual Fortran Compiler Professional for applications running on Intel(R) 64, Version 11.0    Build 20081105 Package ID: w_cprof_p_11.0.066
> Copyright (C) 1985-2008 Intel Corporation.  All rights reserved.
> 
> MUMPS\src\dmumps_comm_buffer.F(1077): warning #5117: Bad # preprocessor line
> #if ! defined(DBG_SMB3)
> -^
> MUMPS\src\dmumps_comm_buffer.F(1086): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(1761): warning #5117: Bad # preprocessor line
> #if ! defined(DBG_SMB3)
> -^
> MUMPS\src\dmumps_comm_buffer.F(1769): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2088): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2090): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2094): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2096): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2111): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2118): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2177): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2179): warning #5117: Bad # preprocessor line
> #else
> -^
> MUMPS\src\dmumps_comm_buffer.F(2181): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2202): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2204): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2216): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2218): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2229): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2236): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2279): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2281): warning #5117: Bad # preprocessor line
> #else
> -^
> MUMPS\src\dmumps_comm_buffer.F(2283): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2438): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2440): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2450): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2452): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2465): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2472): warning #5117: Bad # preprocessor line
> #else
> -^
> MUMPS\src\dmumps_comm_buffer.F(2474): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2534): warning #5117: Bad # preprocessor line
> #if ! defined(OLD_LOAD_MECHANISM)
> -^
> MUMPS\src\dmumps_comm_buffer.F(2536): warning #5117: Bad # preprocessor line
> #else
> -^
> MUMPS\src\dmumps_comm_buffer.F(2538): warning #5117: Bad # preprocessor line
> #endif
> -^
> MUMPS\src\dmumps_comm_buffer.F(2189): error #6099: An ENDDO statement occurred without a corresponding DO or DO WHILE statement.
>         END DO
> ^
> MUMPS\src\dmumps_comm_buffer.F(2178): error #6321: An unterminated block exists.
>         IF ( I .NE. MYID .AND. FUTURE_NIV2(I+1) .NE. 0) THEN
> ^
> MUMPS\src\dmumps_comm_buffer.F(2176): error #6321: An unterminated block exists.
>         DO I = 0, NPROCS - 1
> ^
> MUMPS\src\dmumps_comm_buffer.F(2291): error #6099: An ENDDO statement occurred without a corresponding DO or DO WHILE statement.
>         END DO
> ^
> MUMPS\src\dmumps_comm_buffer.F(2280): error #6321: An unterminated block exists.
>           IF ( I .NE. MYID .AND. FUTURE_NIV2(I+1) .NE. 0) THEN
> ^
> MUMPS\src\dmumps_comm_buffer.F(2278): error #6321: An unterminated block exists.
>         DO I = 0, NPROCS - 1
> ^
> MUMPS\src\dmumps_comm_buffer.F(2546): error #6099: An ENDDO statement occurred without a corresponding DO or DO WHILE statement.
>         END DO
> ^
> MUMPS\src\dmumps_comm_buffer.F(2535): error #6321: An unterminated block exists.
>         IF ( I .NE. MYID .AND. FUTURE_NIV2(I+1) .NE. 0) THEN
> ^
> MUMPS\src\dmumps_comm_buffer.F(2533): error #6321: An unterminated block exists.
>         DO I = 0, NPROCS - 1
> ^
> compilation aborted for MUMPS\src\dmumps_comm_buffer.F (code 1)
> make[1]: *** [dmumps_comm_buffer.lo] Error 1
> make[1]: Leaving directory `/cygdrive/d/Ipopt-3.6.1_VC/ThirdParty/Mumps'
> make: *** [all-recursive] Error 1
> ******************************END OUTPUT*****************************************************************
> 
> I thought the Mumps files may have been corrupted and downloaded them again.  The results were the same.
> 
> Thanks
> Krish
> 
> 
> 
>       
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt


-- 
Stefan Vigerske
Humboldt University Berlin, Numerical Mathematics
http://www.math.hu-berlin.de/~stefan



More information about the Ipopt mailing list