[Cbc] CLP_VERSION build error

Matthew Gidden gidden at wisc.edu
Mon Jul 28 12:14:07 EDT 2014


Hi all,

I'm running ubuntu 14.04 and get the following error when building from
source (I've tried stable 2.8, releases 2.8.7-10, and trunk -- this is from
trunk, but they all fail to build with the same error). I have replicated
this issue on a separate machine, also running ubuntu 14.04. I am curious
if anyone else has seen this before? I've tried to visually inspect the
related config files, and they appear to be fine. Both of these systems
have had coin installed on them before; however, I made sure to remove it
(manually -- there is no make uninstall =( ) from one to confirm.

I checkout and install normally

$ svn co <trunk>
> $ cd <trunk>; mkdir build; cd build
> $ ./configure --prefix $HOME/.local
> $ make


The error is as follows:

 g++ -DHAVE_CONFIG_H -I. -I../../../Clp/src
> -I/home/gidden/software/coin-Cbc-trunk/CoinUtils/src
> -I/home/gidden/software/coin-Cbc-trunk/build/CoinUtils/src -DCOIN_HAS_CLP
> -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual
> -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas
> -Wno-long-long -DCLP_BUILD -MT Clp_C_Interface.lo -MD -MP -MF
> .deps/Clp_C_Interface.Tpo -c ../../../Clp/src/Clp_C_Interface.cpp  -fPIC
> -DPIC -o .libs/Clp_C_Interface.o
> ../../../Clp/src/Clp_C_Interface.cpp: In function 'const char*
> Clp_Version()':
> ../../../Clp/src/Clp_C_Interface.cpp:206:11: error: 'CLP_VERSION' was not
> declared in this scope
>     return CLP_VERSION;
>            ^
> ../../../Clp/src/Clp_C_Interface.cpp: In function 'int Clp_VersionMajor()':
> ../../../Clp/src/Clp_C_Interface.cpp:211:11: error: 'CLP_VERSION_MAJOR'
> was not declared in this scope
>     return CLP_VERSION_MAJOR;
>            ^
> ../../../Clp/src/Clp_C_Interface.cpp: In function 'int Clp_VersionMinor()':
> ../../../Clp/src/Clp_C_Interface.cpp:215:11: error: 'CLP_VERSION_MINOR'
> was not declared in this scope
>     return CLP_VERSION_MINOR;
>            ^
> ../../../Clp/src/Clp_C_Interface.cpp: In function 'int
> Clp_VersionRelease()':
> ../../../Clp/src/Clp_C_Interface.cpp:219:11: error: 'CLP_VERSION_RELEASE'
> was not declared in this scope
>     return CLP_VERSION_RELEASE;
>            ^
> ../../../Clp/src/Clp_C_Interface.cpp: In function 'const char*
> Clp_Version()':
> ../../../Clp/src/Clp_C_Interface.cpp:207:1: warning: control reaches end
> of non-void function [-Wreturn-type]
>  }
>  ^
> ../../../Clp/src/Clp_C_Interface.cpp: In function 'int Clp_VersionMajor()':
> ../../../Clp/src/Clp_C_Interface.cpp:212:1: warning: control reaches end
> of non-void function [-Wreturn-type]
>  }
>  ^
> ../../../Clp/src/Clp_C_Interface.cpp: In function 'int Clp_VersionMinor()':
> ../../../Clp/src/Clp_C_Interface.cpp:216:1: warning: control reaches end
> of non-void function [-Wreturn-type]
>  }
>  ^
> ../../../Clp/src/Clp_C_Interface.cpp: In function 'int
> Clp_VersionRelease()':
> ../../../Clp/src/Clp_C_Interface.cpp:220:1: warning: control reaches end
> of non-void function [-Wreturn-type]
>  }
>  ^
> In file included from ../../../Clp/src/ClpModel.hpp:23:0,
>                  from ../../../Clp/src/ClpSimplex.hpp:16,
>                  from ../../../Clp/src/Clp_C_Interface.cpp:14:
> /home/gidden/software/coin-Cbc-trunk/CoinUtils/src/CoinFinite.hpp: At
> global scope:
> /home/gidden/software/coin-Cbc-trunk/CoinUtils/src/CoinFinite.hpp:17:14:
> warning: 'COIN_DBL_MIN' defined but not used [-Wunused-variable]
>  const double COIN_DBL_MIN = std::numeric_limits<double>::min();
>               ^
> /home/gidden/software/coin-Cbc-trunk/CoinUtils/src/CoinFinite.hpp:19:14:
> warning: 'COIN_INT_MAX' defined but not used [-Wunused-variable]
>  const int    COIN_INT_MAX = std::numeric_limits<int>::max();
>               ^
> /home/gidden/software/coin-Cbc-trunk/CoinUtils/src/CoinFinite.hpp:20:14:
> warning: 'COIN_INT_MAX_AS_DOUBLE' defined but not used [-Wunused-variable]
>  const double COIN_INT_MAX_AS_DOUBLE = std::numeric_limits<int>::max();
>               ^
> make[3]: *** [Clp_C_Interface.lo] Error 1
> make[3]: Leaving directory
> `/home/gidden/software/coin-Cbc-trunk/build/Clp/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/home/gidden/software/coin-Cbc-trunk/build/Clp/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/gidden/software/coin-Cbc-trunk/build/Clp'
> make: *** [all-recursive] Error 1
>
>


-- 
Matthew Gidden
Ph.D. Candidate, Nuclear Engineering
The University of Wisconsin -- Madison
Ph. 225.892.3192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20140728/34fbb9de/attachment.html>


More information about the Cbc mailing list