[Ipopt-tickets] [Ipopt] #265: Configure failing for ipopt v3.12.3 in RHEL 7

Ipopt coin-trac at coin-or.org
Sat Jul 18 14:11:20 EDT 2015


#265: Configure failing for ipopt v3.12.3 in RHEL 7
-----------------------+---------------------------
  Reporter:  ram_euhr  |      Owner:  ipopt-team
      Type:  defect    |     Status:  new
  Priority:  normal    |  Component:  Ipopt
   Version:  3.12      |   Severity:  normal
Resolution:            |   Keywords:  RHEL7; ipopt;
-----------------------+---------------------------

Old description:

> Hello,
>
> We are trying to build ipopt (v3.12.3) with openmpi
> (v1.6.4-5.el7.x86_64)in RHEL 7 but the configure is failing with the
> below error.
>
> checking for dummy main to link with Fortran libraries... unknown
> configure: error: linking to Fortran libraries from C fails
> See `config.log' for more details.
> configure: error: /bin/sh './configure' failed for ThirdParty/Mumps
> configure script failed
> easwaraa at sandbox02.nyc:/tmp/easwaraa/ipopt>
>
> I see errors like these in the config.log:
>
> configure:2496: /usr/bin/gcc -c -O3 -m64 -g -I/usr/local/pkgs/Ipopt-
> parallel-3.12.3-d1/include conftest.c >&5
> conftest.c:2:3: error: unknown type name 'choke'
>    choke me
>    ^
> conftest.c:2:3: error: expected '=', ',', ';', 'asm' or '__attribute__'
> at end of input
>

> configure:23366: configuring in ThirdParty/Mumps
> configure:23483: running /bin/sh './configure' --prefix=/usr/local/pkgs
> /Ipopt-parallel-3.12.3-d1  '--prefix=/usr/local/pkgs/Ipopt-
> parallel-3.12.3-d1' '--exec-prefix=
> configure:23488: error: /bin/sh './configure' failed for ThirdParty/Mumps
>
> Attached the config.log for reference.
>
> Our gcc version is 4.8.3 20140911:
>
> /usr/bin/gcc --version
> gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9)
> Copyright (C) 2013 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is
> NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> The configure options we used are:
>
> ./configure --prefix=$PREFIX  --exec-prefix=$PREFIX --bindir=$PREFIX/bin
> --sbindir=$PREFIX/sbin --sysconfdir=$PREFIX/etc --datadir=$PREFIX/share
> --includedir=$PREFIX/include --libdir=$PREFIX/lib
> --libexecdir=$PREFIX/libexec --mandir=$PREFIX/share/man
> --infodir=$PREFIX/share/info --build=x86_64-redhat-linux-gnu
> --host=x86_64-redhat-linux-gnu --disable-dependency-tracking
> MPICC=/usr/lib64/openmpi/bin/mpicc MPICXX=/usr/lib64/openmpi/bin/mpic++
> MPIF77=/usr/lib64/openmpi/bin/mpif77 --with-blas-incdir=/usr/include
> /openmpi-x86_64 --with-blas-lib="-L/usr/lib64/openmpi/lib -lscalapack
> -lmpiblacs" ADD_CFLAGS=-fopenmp ADD_FFLAGS=-fopenmp ADD_CXXFLAGS=-fopenmp
>
> The same configure options works fine in our RHEL6 hosts. (where we use
> gcc 4.4.7 20120313).
>
> Any thoughts on why are we facing this issue in RHEL7?
>
> Let me know if you need any additional information.
>
> -Ram Kumar

New description:

 Hello,

 We are trying to build ipopt (v3.12.3) with openmpi
 (v1.6.4-5.el7.x86_64)in RHEL 7 but the configure is failing with the below
 error.
 {{{
 checking for dummy main to link with Fortran libraries... unknown
 configure: error: linking to Fortran libraries from C fails
 See `config.log' for more details.
 configure: error: /bin/sh './configure' failed for ThirdParty/Mumps
 configure script failed
 easwaraa at sandbox02.nyc:/tmp/easwaraa/ipopt>
 }}}
 I see errors like these in the config.log:
 {{{
 configure:2496: /usr/bin/gcc -c -O3 -m64 -g -I/usr/local/pkgs/Ipopt-
 parallel-3.12.3-d1/include conftest.c >&5
 conftest.c:2:3: error: unknown type name 'choke'
    choke me
    ^
 conftest.c:2:3: error: expected '=', ',', ';', 'asm' or '__attribute__' at
 end of input


 configure:23366: configuring in ThirdParty/Mumps
 configure:23483: running /bin/sh './configure' --prefix=/usr/local/pkgs
 /Ipopt-parallel-3.12.3-d1  '--prefix=/usr/local/pkgs/Ipopt-
 parallel-3.12.3-d1' '--exec-prefix=
 configure:23488: error: /bin/sh './configure' failed for ThirdParty/Mumps
 }}
 Attached the config.log for reference.

 Our gcc version is 4.8.3 20140911:
 {{{
 /usr/bin/gcc --version
 gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9)
 Copyright (C) 2013 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.
 }}}
 The configure options we used are:
 {{{
 ./configure --prefix=$PREFIX  --exec-prefix=$PREFIX --bindir=$PREFIX/bin
 --sbindir=$PREFIX/sbin --sysconfdir=$PREFIX/etc --datadir=$PREFIX/share
 --includedir=$PREFIX/include --libdir=$PREFIX/lib
 --libexecdir=$PREFIX/libexec --mandir=$PREFIX/share/man
 --infodir=$PREFIX/share/info --build=x86_64-redhat-linux-gnu --host=x86_64
 -redhat-linux-gnu --disable-dependency-tracking
 MPICC=/usr/lib64/openmpi/bin/mpicc MPICXX=/usr/lib64/openmpi/bin/mpic++
 MPIF77=/usr/lib64/openmpi/bin/mpif77 --with-blas-incdir=/usr/include
 /openmpi-x86_64 --with-blas-lib="-L/usr/lib64/openmpi/lib -lscalapack
 -lmpiblacs" ADD_CFLAGS=-fopenmp ADD_FFLAGS=-fopenmp ADD_CXXFLAGS=-fopenmp
 }}}
 The same configure options works fine in our RHEL6 hosts. (where we use
 gcc 4.4.7 20120313).

 Any thoughts on why are we facing this issue in RHEL7?

 Let me know if you need any additional information.

 -Ram Kumar

--

Comment (by stefan):

 reformat ticket for easier readability

--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/265#comment:2>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list