[Bonmin-tickets] [Bonmin] #34: BonMin compilation error
Bonmin
coin-trac at coin-or.org
Tue Apr 14 06:48:19 EDT 2009
#34: BonMin compilation error
-----------------------+----------------------------------------------------
Reporter: g_liuzzi | Owner: pbonami
Type: defect | Status: new
Priority: critical | Component: Bonmin
Version: stable/0.1 | Keywords:
-----------------------+----------------------------------------------------
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. -I`echo ../../../Clp/src` -I../inc -I`echo
/opt/Bonmin-1.0.1/CoinUtils/src` -I`echo
/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. -I`echo ../../../Clp/src` -I../inc -I`echo
/opt/Bonmin-1.0.1/CoinUtils/src` -I`echo
/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. -I`echo ../../../Clp/src` -I../inc -I`echo
/opt/Bonmin-1.0.1/CoinUtils/src` -I`echo
/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
--
Ticket URL: <https://projects.coin-or.org/Bonmin/ticket/34>
Bonmin <http://projects.coin-or.org/Bonmin>
Basic Open-source Nonlinear Mixed INteger programming
More information about the Bonmin-tickets
mailing list