[Cbc] CLP_VERSION build error

Matthew Gidden gidden at wisc.edu
Tue Jul 29 23:39:26 EDT 2014


Hi all,

A final report -- as best as I can tell, this is an Ubuntu-14.04 specific
issue. On a fresh ubuntu 14.04 box, I was able to install coincbc-dev
through synaptic but get the CLP_VERSION error when trying to install from
source. The last time I built form source I was on 13.10 and was able to
build from source just fine.

Is anyone else on ubuntu 14.04 able to confirm/disconfirm this?
Unfortunately (for me), my research group members on 14.04 are on vacation,
so I can't confirm locally.

Cheers,


On Tue, Jul 29, 2014 at 10:32 AM, Matthew Gidden <gidden at wisc.edu> wrote:

> Hi Yann,
>
>
> On Tue, Jul 29, 2014 at 10:12 AM, <ycollette.nospam at free.fr> wrote:
>
>> First I include the directory which contains the generated config.h and
>> config_clp.h and then the other directories.
>> ClpConfig.h looks for config.h and if, instead of finding the config.h
>> file of clp, it finds the config.h of Cbc, then, CLP_VERSION* will not be
>> defined.
>>
> I suspect my issue is at least related to this. If I use the same compile
> command, but remove  `-DCLP_BUILD` (i.e., it looks for config_clp.h rather
> than config.h), then everything builds fine.
>
>>
>> YC
>>
>>
>> ----- Mail original -----
>> De: "Matthew Gidden" <gidden at wisc.edu>
>> À: "ycollette.nospam" <ycollette.nospam at free.fr>
>> Cc: "cbc" <cbc at list.coin-or.org>
>> Envoyé: Mardi 29 Juillet 2014 16:57:38
>> Objet: Re: [Cbc] CLP_VERSION build error
>>
>>
>>
>> Hi Yann,
>>
>>
>>
>> On Tue, Jul 29, 2014 at 9:46 AM, < ycollette.nospam at free.fr > wrote:
>>
>>
>> I meet the same problem with cbc trunk compiled with cmake. But I fixed
>> the problem by ordering correctly the gcc -I path.
>>
>> What ordering do you use?
>>
>>
>> FWIW, I can replicate the error with the cherry-picked g++ command:
>>
>>
>> 09:55 Kermit:~/software/coin-Cbc-trunk/build/Clp/src$ g++ -DHAVE_CONFIG_H
>> -I. -I`echo ../../../Clp/src` -I/home/gidden/software/tmp/tst/CoinUtils/src
>> -I/home/gidden/software/tmp/tst/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 -o Clp_C_Interface.lo
>> ../../../Clp/src/Clp_C_Interface.cpp;
>> ../../../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/tmp/tst/CoinUtils/src/CoinFinite.hpp: At global
>> scope:
>> /home/gidden/software/tmp/tst/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/tmp/tst/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/tmp/tst/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();
>> ^
>>
>>
>> Cheers,
>> Matt
>>
>>
>>
>>
>>
>> I have not compiled Cbc trunk using autoconf, just using cmake.
>>
>> Which version of gcc is it ?
>>
>> YC
>>
>>
>> ----- Mail original -----
>> De: "Matthew Gidden" < gidden at wisc.edu >
>> À: "Ted Ralphs" < ted at lehigh.edu >
>> Cc: "cbc" < cbc at list.coin-or.org >
>> Envoyé: Mardi 29 Juillet 2014 16:21:53
>> Objet: Re: [Cbc] CLP_VERSION build error
>>
>>
>>
>>
>> Hi Miles and Ted,
>>
>>
>> First of all, I agree this is an unexpected error -- I've built coin from
>> source previously with no issue. There is probably something up on my end
>> (I'm checking env vars this morning), but I wanted to ping the list to see
>> if anyone had seen this before. Thanks for responding!
>>
>>
>> Regarding the existence of /user/include/coin:
>>
>>
>> 09:08 Kermit:~/software/coin-Cbc-trunk/build$ ls /usr/include/coin
>> ls: cannot access /usr/include/coin: No such file or directory
>>
>>
>> Note that I install my packages to ~/.local and have removed it when I
>> have tried to build (below).
>>
>> On Mon, Jul 28, 2014 at 9:31 PM, Ted Ralphs < ted at lehigh.edu > wrote:
>>
>>
>>
>> Hi Matt,
>>
>>
>> I have never seen this behavior and I routinely build Cbc on most common
>> platforms, including Ubuntu. I can't really think of a scenario in which
>> those variables could be undefined during the build unless perhaps the
>> configuration failed in some way and make was executed anyway? Could you
>> send or post the contents of /home/gidden/software/coin-
>> Cbc-trunk/build/Clp/src/config.h?
>>
>>
>> I checked this yesterday to confirm -- everything looks to be in order.
>>
>> 09:02 Kermit:~/software/coin-Cbc-trunk/build$ cat Clp/src/config.h
>>
>>
>> /* src/config.h. Generated by configure. */
>> /* src/ config.h.in . Generated from configure.ac by autoheader. */
>>
>>
>> /* Define to 1, 2, 3, or 4 if Aboca should be build. */
>> /* #undef CLP_HAS_ABC */
>> /* SVN revision number of project */
>> #define CLP_SVN_REV 2043
>> /* Version number of project */
>> #define CLP_VERSION "trunk"
>> /* Major Version number of project */
>> #define CLP_VERSION_MAJOR 9999
>> /* Minor Version number of project */
>> #define CLP_VERSION_MINOR 9999
>> /* Release Version number of project */
>> #define CLP_VERSION_RELEASE 9999
>> /* Define to the debug sanity check level (0 is no test) */
>> #define COIN_CLP_CHECKLEVEL 0
>> /* Define to the debug verbosity level (0 is no output) */
>> #define COIN_CLP_VERBOSITY 0
>> /* Define to 1 if the AMD package is available */
>> /* #undef COIN_HAS_AMD */
>> /* Define to 1 if the ASL package is available */
>> /* #undef COIN_HAS_ASL */
>> /* If defined, the BLAS Library is available. */
>> /* #undef COIN_HAS_BLAS */
>> /* Define to 1 if the CHOLMOD package is available */
>> /* #undef COIN_HAS_CHOLMOD */
>> /* Define to 1 if the CoinUtils package is available */
>> #define COIN_HAS_COINUTILS 1
>> /* Define to 1 if the Glpk package is available */
>> /* #undef COIN_HAS_GLPK */
>> /* Define to 1 if the Mumps package is available */
>> /* #undef COIN_HAS_MUMPS */
>> /* Define to 1 if the Netlib package is available */
>> /* #undef COIN_HAS_NETLIB */
>> /* Define to 1 if the Osi package is available */
>> #define COIN_HAS_OSI 1
>> /* Define to 1 if the OsiTests package is available */
>> #define COIN_HAS_OSITESTS 1
>> /* Define to 1 if readline is available */
>> /* #undef COIN_HAS_READLINE */
>> /* Define to 1 if the Sample package is available */
>> #define COIN_HAS_SAMPLE 1
>> /* Define to 1 if the WSMP package is available */
>> /* #undef COIN_HAS_WSMP */
>> /* Define to dummy `main' function (if any) required to link to the
>> Fortran
>> libraries. */
>> /* #undef F77_DUMMY_MAIN */
>> /* Define to a macro mangling the given C identifier (in lower and upper
>> case), which must not contain underscores, for linking with Fortran. */
>> /* #undef F77_FUNC */
>> /* As F77_FUNC, but for C identifiers containing underscores. */
>> /* #undef F77_FUNC_ */
>> /* Define if F77 and FC dummy `main' functions are identical. */
>> /* #undef FC_DUMMY_MAIN_EQ_F77 */
>> /* Define to 1 if you have the <cfloat> header file. */
>> #define HAVE_CFLOAT 1
>> /* Define to 1 if you have the <cieeefp> header file. */
>> /* #undef HAVE_CIEEEFP */
>> /* Define to 1 if you have the <cmath> header file. */
>> #define HAVE_CMATH 1
>> /* Define to 1 if you have the <dlfcn.h> header file. */
>> #define HAVE_DLFCN_H 1
>> /* Define to 1 if you have the <float.h> header file. */
>> /* #undef HAVE_FLOAT_H */
>> /* Define to 1 if you have the <ieeefp.h> header file. */
>> /* #undef HAVE_IEEEFP_H */
>> /* Define to 1 if you have the <inttypes.h> header file. */
>> #define HAVE_INTTYPES_H 1
>> /* Define to 1 if you have the <math.h> header file. */
>> /* #undef HAVE_MATH_H */
>> /* Define to 1 if you have the <memory.h> header file. */
>> #define HAVE_MEMORY_H 1
>> /* Define to 1 if you have the <readline/readline.h> header file. */
>> /* #undef HAVE_READLINE_READLINE_H */
>> /* Define to 1 if you have the <stdint.h> header file. */
>> #define HAVE_STDINT_H 1
>> /* Define to 1 if you have the <stdlib.h> header file. */
>> #define HAVE_STDLIB_H 1
>> /* Define to 1 if you have the <strings.h> header file. */
>> #define HAVE_STRINGS_H 1
>> /* Define to 1 if you have the <string.h> header file. */
>> #define HAVE_STRING_H 1
>> /* Define to 1 if you have the <sys/stat.h> header file. */
>> #define HAVE_SYS_STAT_H 1
>> /* Define to 1 if you have the <sys/types.h> header file. */
>> #define HAVE_
>> /* Name of package */
>> #define PACKAGE "clp"
>> /* Define to the address where bug reports for this package should be
>> sent. */
>> #define PACKAGE_BUGREPORT " clp at list.coin-or.org "
>> /* Define to the full name of this package. */
>> #define PACKAGE_NAME "Clp"
>> /* Define to the full name and version of this package. */
>> #define PACKAGE_STRING "Clp trunk"
>> /* Define to the one symbol short name of this package. */
>> #define PACKAGE_TARNAME "clp"
>> /* Define to the version of this package. */
>> #define PACKAGE_VERSION "trunk"
>> /* Define to 1 if you have the ANSI C header files. */
>> #define STDC_HEADERS 1
>> /* Version number of package */
>> #define VERSION "trunk"SYS_TYPES_H 1
>> /* Define to 1 if you have the <unistd.h> header file. */
>> #define HAVE_UNISTD_H 1
>> /* Name of package */
>> #define PACKAGE "clp"
>> /* Define to the address where bug reports for this package should be
>> sent. */
>> #define PACKAGE_BUGREPORT " clp at list.coin-or.org "
>> /* Define to the full name of this package. */
>> #define PACKAGE_NAME "Clp"
>> /* Define to the full name and version of this package. */
>> #define PACKAGE_STRING "Clp trunk"
>> /* Define to the one symbol short name of this package. */
>> #define PACKAGE_TARNAME "clp"
>> /* Define to the version of this package. */
>> #define PACKAGE_VERSION "trunk"
>> /* Define to 1 if you have the ANSI C header files. */
>> #define STDC_HEADERS 1
>> /* Version number of package */
>> #define VERSION "trunk"
>>
>>
>>
>>
>>
>> That is where they should be defined. You might as well also include
>> /home/gidden/software/coin- Cbc-trunk/build/Clp/config.log.
>> Clp/config.log is longer; I put the results here:
>> https://gist.github.com/gidden/d7050c3fddcc7f5572e8 .
>>
>>
>> Thanks again for your interest. I'm having a colleague try and see if he
>> can replicate on a similar system.
>>
>>
>> Cheers,
>> Matt
>>
>>
>>
>>
>>
>>
>>
>> Cheers,
>>
>>
>> Ted
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Jul 28, 2014 at 12:14 PM, Matthew Gidden < gidden at wisc.edu >
>> wrote:
>>
>>
>>
>>
>>
>> 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
>>
>>
>> _______________________________________________
>> Cbc mailing list
>> Cbc at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/cbc
>>
>>
>>
>>
>>
>> --
>> Dr. Ted Ralphs
>> Associate Professor, Lehigh University
>> (610) 628-1280
>> ted 'at' lehigh 'dot' edu
>> coral.ie.lehigh.edu/~ted
>>
>>
>>
>>
>> --
>>
>> Matthew Gidden
>> Ph.D. Candidate, Nuclear Engineering
>> The University of Wisconsin -- Madison
>> Ph. 225.892.3192
>>
>> _______________________________________________
>> Cbc mailing list
>> Cbc at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/cbc
>>
>> _______________________________________________
>> Cbc mailing list
>> Cbc at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/cbc
>>
>>
>>
>>
>> --
>>
>> Matthew Gidden
>> Ph.D. Candidate, Nuclear Engineering
>> The University of Wisconsin -- Madison
>> Ph. 225.892.3192
>>
>
>
>
> --
> Matthew Gidden
> Ph.D. Candidate, Nuclear Engineering
> The University of Wisconsin -- Madison
> Ph. 225.892.3192
>



-- 
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/20140729/e199b208/attachment-0001.html>


More information about the Cbc mailing list