Opened 12 years ago

Closed 11 years ago

Last modified 10 years ago

#12 closed defect (worksforme)

configure problem with Bonmin

Reported by: peera Owned by: pbonami
Priority: minor Component: Bonmin
Version: releases/0.1.3 Keywords:
Cc:

Description

Hi, I've a problem installing Bonmin. Last few lines of ../build/config.log before "## Cache variables. ##" are "configure:3721: configuring in Ipopt configure:3838: running /bin/sh '../../Ipopt/configure' --prefix=/home/Peera/Bonmin-0.1.1/build '-C' --cache-file=../config.cache --srcdir=../../Ipopt configure:3843: error: /bin/sh '../../Ipopt/configure' failed for Ipopt".

I found similar problem in Ipopt ticket#37. I attempted to replace the Ipopt with the latest Ipopt release. After extracting the tarball and looking at its file structure, I'm not sure if it will work or how to do it.

I'm using Cygwin on WinXP. Cygwin version is latest as of today. Thank you.

Attachments (2)

config.log (8.9 KB) - added by peera 12 years ago.
config.2.log (37.5 KB) - added by peera 12 years ago.
under 'C:\cygwin\home\Peera\Bonmin-0.1.3\build\CoinUtils?'

Download all attachments as: .zip

Change History (25)

Changed 12 years ago by peera

comment:1 Changed 12 years ago by pbonami

  • Status changed from new to assigned

Hi, This should be a problem with the script for getting Blas. I am making a new release.

comment:2 Changed 12 years ago by pbonami

I just made the new release 0.1.3. I hope it works better. If you are downloading the tarball I think that it will only be available during the night. Thanks, Pierre

comment:3 Changed 12 years ago by peera

Hi Pierre,

Thank you. Configure passes but Make doesn't. The last few lines from the Make output is

In file included from ../../../Clp/src/ClpCholeskyBase.hpp:7,

from ../../../Clp/src/ClpCholeskyBase.cpp:8:

C:/cygwin/home/Peera/Bonmin-0.1.3/CoinUtils/src/CoinFinite.hpp:32:22: ieeefp.h: No such file or directory In file included from ../../../Clp/src/ClpCholeskyBase.hpp:7,

from ../../../Clp/src/ClpCholeskyBase.cpp:8:

C:/cygwin/home/Peera/Bonmin-0.1.3/CoinUtils/src/CoinFinite.hpp: In function ‘boo

l CoinIsnan?(double)’:

C:/cygwin/home/Peera/Bonmin-0.1.3/CoinUtils/src/CoinFinite.hpp: 90: error: ‘isnan

‘ undeclared (first use this function)

C:/cygwin/home/Peera/Bonmin-0.1.3/CoinUtils/src/CoinFinite.hpp: 90: error: (Each

undeclared identifier is reported only once for each function it appears in.)

make[2]: * [ClpCholeskyBase?.lo] Error 1

make[2]: Leaving directory ‘/home/Peera/Bonmin-0.1.3/build/Clp/src’

make[1]: * [install-recursive] Error 1

make[1]: Leaving directory ‘/home/Peera/Bonmin-0.1.3/build/Clp’

make: * [install-recursive] Error 1

Can you take a look at the problem? Thank you.

-Peera

comment:4 Changed 12 years ago by pbonami

  • Version changed from release/0.1.1 to release/0.1.3

It looks like your are missing the file ieeefp.h. I would have thought the file is installed by default in Cygwin.

I looked up on the internet and it should be installed by the package cygwin in the directory /usr/include/ .

Could you look in /usr/include if it is present?

Best regards,

Pierre

comment:5 Changed 12 years ago by andreasw

This is strange. The configure script for CoinUtils checks for the existence of ieeefp.h and defines a macro HAVE_IEEEFP_H (see CoinUtils/inc/config_coinutils.h) if it is found. The CoinFinite.hpp code only tries to include it when it is found.

So, somehow the test is giving a different result than what the compiler finally uses when the file is compiled.

Please make sure you start the compilation completely from scratch ('make distclean', remove 'config.cache' if you have it, and rerun configure). If that still fails, please attach the config.log file from the CoinUtils subdirectory.

Thanks

Andreas

comment:6 Changed 12 years ago by peera

Hi Pierre and Andreas,

I have ieeefp.h. And I did ‘make distclean’ but it still does not work. I’m also attaching config.log. Thank you.

-Peera

Changed 12 years ago by peera

under 'C:\cygwin\home\Peera\Bonmin-0.1.3\build\CoinUtils?'

comment:7 Changed 12 years ago by andreasw

Hi Peera,

There seems to be an ugly mixup in the configuration stuff in the different COIN projects regarding the --enable-doscompile option.

Please try the following:

  1. delete the config.cache file
  1. rerun configure, and now add the following arguments: CXX='g++ -mno-cygwin' CC='gcc -mno-cygwin' F77='g77 -mno-cygwin' to the command line.

Please let us know how that goes.

Many thanks,

Andreas

PS: I'm trying it now myself, but I don't know how long that will take to compile, so I just post this now. If I don't add anything to this ticket, it has worked for me.

comment:8 Changed 12 years ago by andreasw

Actually, I think there is a different problem now with the 0.1.3 release. Both on Cygwin and Linux (Opteron cluster), I get this:

 g++ -DHAVE_CONFIG_H -I. -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Bonmin/src/IpoptInterface -I../../inc -I/u/andreasw/COIN-svn/OBJopteron/Bonmin/releases/0.1.3/Bonmin/../Ipopt/inc -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Ipopt/src/Common -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Ipopt/src/LinAlg -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Ipopt/src/Algorithm -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Ipopt/src/Interfaces -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Ipopt/src/Apps/AmplSolver -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/CoinUtils/src -I/u/andreasw/COIN-svn/OBJopteron/Bonmin/releases/0.1.3/Bonmin/../CoinUtils/inc -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Osi/src -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Osi/src/OsiClp -I/u/andreasw/COIN-svn/OBJopteron/Bonmin/releases/0.1.3/Bonmin/../Clp/inc -I/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Clp/src -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -MT IpCbcBoundsReader.lo -MD -MP -MF .deps/IpCbcBoundsReader.Tpo -c /u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Bonmin/src/IpoptInterface/IpCbcBoundsReader.cpp  -fPIC -DPIC -o .libs/IpCbcBoundsReader.o
(compiling into cache)
In file included from /u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Bonmin/src/IpoptInterface/IpCbcBoundsReader.hpp:14,
                 from /u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Bonmin/src/IpoptInterface/IpCbcBoundsReader.cpp:10:
/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/CoinUtils/src/CoinError.hpp: In 
   constructor `IpoptInterface::SimpleError::SimpleError()':
/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/CoinUtils/src/CoinError.hpp:35: error: `
   CoinError::CoinError()' is private
/u/andreasw/COIN-svn/Bonmin/releases/0.1.3/Bonmin/src/IpoptInterface/IpoptInterface.hpp:56: error: within
   this context
(compiler produced stdout or stderr output, i won't cache)
(compiler returned error, bailing out)
make[1]: *** [IpCbcBoundsReader.lo] Error 1
make[1]: Leaving directory `/u/andreasw/COIN-svn/OBJopteron/Bonmin/releases/0.1.3/Bonmin/src/IpoptInterface'
make: *** [all-recursive] Error 1

comment:9 Changed 12 years ago by peera

Hi Andreas,

I also received similar error message when I tried out yesterday. I also tried on Ubuntu 7.04 (before your post yesterday). It didn't work either. Do we need only MA27 and MC19 from HSL library? I thought I saw a check for something (possibly, "something .... no"). Do you know/have old version of Bonmin and thirdparty package that work?

Thank you,

-Peera

comment:10 Changed 12 years ago by andreasw

Peera,

You need at least one sparse linear solver - you can use Harwell (MA27 with MC19), or any other you find in the Ipopt documentation.

Pierre is going to make a new release that fixes the problem you encountered, so you won't need an old version (which you could just download).

Cheers,

Andreas

comment:11 Changed 12 years ago by peera

Hi Andreas, Thank you. I'll wait for it. -Peera

comment:12 Changed 12 years ago by pbonami

Dear Peera, I have made the new release from the stable version. I checked that I could build it on two machines. I hope I did no mistake.

Cheers, Pierre

comment:13 Changed 12 years ago by peera

Hi Pierre,

It is still not working on my machine. Here is what I did:

Download and unzip Bonmin-0.1.4

From the Bonmin distribution main directory i.e. C:\cygwin\home\Peera\Bonmin-0.1.4:

cd ThirdParty/ASL

./get.ASL

cd ../Blas

./get.Blas

cd ../Lapack

./get.Lapack

Download (Double precision and Download package (comments removed)) and put "ma27ad.f" and "mc19ad.f" under C:\cygwin\home\Peera\Bonmin-0.1.4\ThirdParty\HSL directory.

Under C:\cygwin\home\Peera\Bonmin-0.1.4,

mkdir build

cd build

../configure -C

make

make distclean

remove 'config.cache'

../configure

make

configure passed both with and without –C. The outputs are similar; The last few lines from the Make output is

In file included from ../../../Clp/src/ClpCholeskyBase.hpp:7,

from ../../../Clp/src/ClpCholeskyBase.cpp:8:

C:/cygwin/home/Peera/Bonmin-0.1.4/CoinUtils/src/CoinFinite.hpp:32:22: ieeefp.h: No such file or directory In file included from ../../../Clp/src/ClpCholeskyBase.hpp:7,

from ../../../Clp/src/ClpCholeskyBase.cpp:8:

C:/cygwin/home/Peera/Bonmin-0.1.4/CoinUtils/src/CoinFinite.hpp: In function ‘boo

l CoinIsnan?(double)’:

C:/cygwin/home/Peera/Bonmin-0.1.4/CoinUtils/src/CoinFinite.hpp: 90: error: ‘isnan

‘ undeclared (first use this function)

C:/cygwin/home/Peera/Bonmin-0.1.4/CoinUtils/src/CoinFinite.hpp: 90: error: (Each

undeclared identifier is reported only once for each function it appears in.)

make[2]: * [ClpCholeskyBase?.lo] Error 1

make[2]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build/Clp/src’

make[1]: * [all-recursive] Error 1

make[1]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build/Clp’

make: * [all-recursive] Error 1

which is similar to my post earlier. I also tried configure with CXX='g++ -mno-cygwin' CC='gcc -mno-cygwin' F77='g77 -mno-cygwin', the output is the same. Did I make anything wrong here? Thank you.

-Peera

comment:14 Changed 12 years ago by peera

Hi,

FYI, it does not work on Ubuntu either. This is the output after 'configure' issued and config.log is also attached; how can I get it work? Thank you. -Peera-

checking dynamic linker characteristics... ../../../ThirdParty/Blas?/configure: line 15808: unavailable: command not found cat: /etc/ld.so.conf.d/*.conf: No such file or directory GNU/Linux ld.so checking how to hardcode library paths into programs... immediate configure: Build is "i686-pc-linux-gnu". checking how to get verbose linking output from unavailable... configure: WARNING: compilation failed

checking for Fortran libraries of unavailable... checking for dummy main to link with Fortran libraries... none checking for Fortran name-mangling scheme... configure: error: cannot compile a simple Fortran program See `config.log' for more details. configure: error: /bin/bash '../../../ThirdParty/Blas?/configure' failed for ThirdParty/Blas? pat@pat-laptop:~/Bonmin-0.1.4/build$

comment:15 Changed 12 years ago by peera

"Trac detected an internal error: "

I couldn't attach the file. I'll try again soon.

comment:16 Changed 12 years ago by andreasw

Peera,

As for the Windows compile, you still need to specify the flags CXX='g++ -mno-cygwin' CC='gcc -mno-cygwin' F77='g77 -mno-cygwin' in the command line.

As for the problem on Ubuntu: Please verify that you can actually compile a simple Fortran file fir your Fortran compiler, e.g.

      program main
      write(*,*) 'test me'
      end

The error message usually shows up if the Fortran compiler doesn't work, even in a regular command line.

Andreas

comment:17 Changed 12 years ago by peera

Hi Andreas,

I tried again with

make distclean

../configure CXX='g++ -mno-cygwin' CC='gcc -mno-cygwin' F77='g77 -mno-cygwin'

make

and the output of 'make' is

make[2]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build/Bonmin/src/Apps’ make[2]: Entering directory ‘/home/Peera/Bonmin-0.1.4/build/Bonmin’ make[2]: Nothing to be done for ‘all-am’ make[2]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build/Bonmin’ make[1]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build/Bonmin’ make[1]: Entering directory ‘/home/Peera/Bonmin-0.1.4/build’ make[1]: Nothing to be done for ‘all-am’ make[1]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build’

then, 'make test' and the output of 'make test' is

make[2]: Entering directory ‘/home/Peera/Bonmin-0.1.4/build/Clp/src’ .deps/CbcOrClpParam.Po:1: * multiple target patterns. Stop. make[2]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build/Clp/src’ make[1]: * [all-recursive] Error 1 make[1]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build/Clp’ make: * [all-recursive] Error 1

Thank you, -Peera

comment:18 Changed 12 years ago by pbonami

Dear Peera, This issue is a known problem under cygwin. A solution is described here: https://projects.coin-or.org/BuildTools/wiki/current-issues . I am going to update the documentation so that the link is made more obvious. Best regards, Pierre

comment:19 Changed 12 years ago by peera

Dear Pierre,

I didn't try on version 3.80 since they said it no longer available i.e. already deleted. So I patched the make (http://cygwin.com/ml/cygwin/2006-09/msg00153.html which also appears in https://projects.coin-or.org/BuildTools/wiki/current-issues). The output of 'make test' is:

Test IpoptInterface?

name: can’t open mytoy.nl

make[2]: * [test] Error 1

make[2]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build/Bonmin/test’

make[1]: * [unitTest] Error 2

make[1]: Leaving directory ‘/home/Peera/Bonmin-0.1.4/build/Bonmin’

make: * [test] Error 2

I check that 'mytoy.nl' is there. This might be fine since I already got it work on other machine i.e. Ubuntu. But if you can still help me, that'd be really great. Thank you.

-Peera

comment:20 Changed 12 years ago by peera

Dear Pierre,

I missed the first suggested fix under 'Compilation' in https://projects.coin-or.org/BuildTools/wiki/current-issues. I'll download and try it out later tomorrow.

-Peera

comment:21 Changed 12 years ago by peera

Dear Pierre,

Both fixed 3.81 and 3.80 don't work. They give the same result posted yesterday. Is it possibly from something else other than 'make'?

-Peera

comment:22 Changed 11 years ago by sunrise

This works ok for me.. but It probably needs feedback. coin Air Jordan

comment:23 Changed 11 years ago by pbonami

  • Resolution set to worksforme
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.