Opened 11 years ago

Closed 9 years ago

#34 closed defect (wontfix)

BonMin compilation error

Reported by: g_liuzzi Owned by: pbonami
Priority: critical Component: Bonmin
Version: stable/0.1 Keywords:
Cc: liuzzi@…

Description

I have a problem compiling BONMIN. When I execute 'make' after '../configure -C' in the build subdir, after a quite verbose output on screen i get the following error:

... if g++ -DHAVE_CONFIG_H -I. -Iecho ../../../Clp/src -I../inc -Iecho /opt/Bonmin-1.0.1/CoinUtils/src -Iecho /opt/Bonmin-1.0.1/build/Clp/../CoinUtils/inc -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -MT MyEventHandler?.o -MD -MP -MF ".deps/MyEventHandler.Tpo" -c -o MyEventHandler?.o ../../../Clp/src/MyEventHandler.cpp; \

then mv -f ".deps/MyEventHandler.Tpo" ".deps/MyEventHandler.Po"; else rm -f ".deps/MyEventHandler.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -Iecho ../../../Clp/src -I../inc -Iecho /opt/Bonmin-1.0.1/CoinUtils/src -Iecho /opt/Bonmin-1.0.1/build/Clp/../CoinUtils/inc -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -MT MyMessageHandler?.o -MD -MP -MF ".deps/MyMessageHandler.Tpo" -c -o MyMessageHandler?.o ../../../Clp/src/MyMessageHandler.cpp; \

then mv -f ".deps/MyMessageHandler.Tpo" ".deps/MyMessageHandler.Po"; else rm -f ".deps/MyMessageHandler.Tpo"; exit 1; fi

if g++ -DHAVE_CONFIG_H -I. -Iecho ../../../Clp/src -I../inc -Iecho /opt/Bonmin-1.0.1/CoinUtils/src -Iecho /opt/Bonmin-1.0.1/build/Clp/../CoinUtils/inc -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -MT unitTest.o -MD -MP -MF ".deps/unitTest.Tpo" -c -o unitTest.o ../../../Clp/src/unitTest.cpp; \

then mv -f ".deps/unitTest.Tpo" ".deps/unitTest.Po"; else rm -f ".deps/unitTest.Tpo"; exit 1; fi

../../../Clp/src/unitTest.cpp: In function ‘int mainTest(int, const char, int, ClpSimplex?, bool, int, bool)’: ../../../Clp/src/unitTest.cpp:256: warning: unused variable ‘bottom’ ../../../Clp/src/unitTest.cpp: In function ‘void ClpSimplexUnitTest?(const std::string&)’: ../../../Clp/src/unitTest.cpp:707: warning: unused variable ‘returnCode’ ../../../Clp/src/unitTest.cpp:712: warning: unused variable ‘colsol1’ ../../../Clp/src/unitTest.cpp:1185: warning: unused variable ‘value’ ../../../Clp/src/unitTest.cpp:1146: warning: unused variable ‘objValue’ ../../../Clp/src/unitTest.cpp:1256: warning: unused variable ‘value’ ../../../Clp/src/unitTest.cpp:1840: warning: unused variable ‘objValue’ ../../../Clp/src/unitTest.cpp:1574: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result ../../../Clp/src/unitTest.cpp:1577: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result /bin/bash ../../libtool --tag=CXX --mode=link g++ -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -o clp -rpath /opt/Bonmin-1.0.1/build/lib ClpMain?.o CbcOrClpParam?.o MyEventHandler?.o MyMessageHandler?.o unitTest.o libClp.la /opt/Bonmin-1.0.1/build/Clp/../CoinUtils?/src/libCoinUtils.la -lm cat /opt/Bonmin-1.0.1/build/Clp/../CoinUtils/coinutils_addlibs.txt g++ -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -o .libs/clp ClpMain?.o CbcOrClpParam?.o MyEventHandler?.o MyMessageHandler?.o unitTest.o ./.libs/libClp.so /opt/Bonmin-1.0.1/build/Clp/../CoinUtils?/src/.libs/libCoinUtils.so -lblas -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/opt/intel/fc/11.0.074/mkl/lib/32 -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s -Wl,--rpath -Wl,/opt/Bonmin-1.0.1/build/lib /opt/Bonmin-1.0.1/build/Clp/../CoinUtils?/src/.libs/libCoinUtils.so: undefined reference to `for_write_seq_fmt' /opt/Bonmin-1.0.1/build/Clp/../CoinUtils?/src/.libs/libCoinUtils.so: undefined reference to `iladlc_' /opt/Bonmin-1.0.1/build/Clp/../CoinUtils?/src/.libs/libCoinUtils.so: undefined reference to `iladlr_' /opt/Bonmin-1.0.1/build/Clp/../CoinUtils?/src/.libs/libCoinUtils.so: undefined reference to `for_write_seq_fmt_xmit' /opt/Bonmin-1.0.1/build/Clp/../CoinUtils?/src/.libs/libCoinUtils.so: undefined reference to `disnan_' /opt/Bonmin-1.0.1/build/Clp/../CoinUtils?/src/.libs/libCoinUtils.so: undefined reference to `for_stop_core' collect2: ld returned 1 exit status make[2]: * [clp] Error 1 make[2]: Leaving directory `/opt/Bonmin-1.0.1/build/Clp/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/opt/Bonmin-1.0.1/build/Clp' make: * [all-recursive] Error 1

Is there something wrong in what I am doing ? Do I need to add some flags to the configure script to suit my hardware/software configuration. By the way, I am using Ubuntu-2.6.27 with gcc 4.3.2 Many thanks for your help,

Giampo

Attachments (1)

config.log (41.9 KB) - added by g_liuzzi 11 years ago.
config log

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by g_liuzzi

config log

comment:1 Changed 11 years ago by pbonami

Hi, It seems to be a problem with linking lapack into Clp. Did you use intel compiler to compile lapack or are you using kml? You may have to use the option --with-lapack, if you do so. Best, Pierre

comment:2 Changed 9 years ago by pbonami

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