<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 9:46 AM,  <span dir="ltr">&lt;<a href="mailto:ycollette.nospam@free.fr" target="_blank">ycollette.nospam@free.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I meet the same problem with cbc trunk compiled with cmake. But I fixed the problem by ordering correctly the gcc -I path.<br>


I have not compiled Cbc trunk using autoconf, just using cmake.<br>
<br>
Which version of gcc is it ?<br></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

09:49 Kermit:~$ gcc -v<br>Using built-in specs.<br>COLLECT_GCC=gcc<br>COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper<br>Target: x86_64-linux-gnu<br>Configured with: ../src/configure -v --with-pkgversion=&#39;Ubuntu 4.8.2-19ubuntu1&#39; --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu<br>

Thread model: posix<br>gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)  </blockquote><div><br></div><div>Cheers,</div><div>Matt</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<br>
YC<br>
<br>
<br>
----- Mail original -----<br>
De: &quot;Matthew Gidden&quot; &lt;<a href="mailto:gidden@wisc.edu">gidden@wisc.edu</a>&gt;<br>
À: &quot;Ted Ralphs&quot; &lt;<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>&gt;<br>
Cc: &quot;cbc&quot; &lt;<a href="mailto:cbc@list.coin-or.org">cbc@list.coin-or.org</a>&gt;<br>
Envoyé: Mardi 29 Juillet 2014 16:21:53<br>
Objet: Re: [Cbc] CLP_VERSION build error<br>
<div class=""><br>
<br>
<br>
Hi Miles and Ted,<br>
<br>
<br>
First of all, I agree this is an unexpected error -- I&#39;ve built coin from source previously with no issue. There is probably something up on my end (I&#39;m checking env vars this morning), but I wanted to ping the list to see if anyone had seen this before. Thanks for responding!<br>


<br>
<br>
Regarding the existence of /user/include/coin:<br>
<br>
<br>
09:08 Kermit:~/software/coin-Cbc-trunk/build$ ls /usr/include/coin<br>
ls: cannot access /usr/include/coin: No such file or directory<br>
<br>
<br>
Note that I install my packages to ~/.local and have removed it when I have tried to build (below).<br>
<br>
On Mon, Jul 28, 2014 at 9:31 PM, Ted Ralphs &lt; <a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a> &gt; wrote:<br>
<br>
<br>
<br>
Hi Matt,<br>
<br>
<br>
I have never seen this behavior and I routinely build Cbc on most common platforms, including Ubuntu. I can&#39;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?<br>


<br>
<br>
I checked this yesterday to confirm -- everything looks to be in order.<br>
<br>
09:02 Kermit:~/software/coin-Cbc-trunk/build$ cat Clp/src/config.h<br>
<br>
<br>
/* src/config.h. Generated by configure. */<br>
</div>/* src/ <a href="http://config.h.in" target="_blank">config.h.in</a> . Generated from <a href="http://configure.ac" target="_blank">configure.ac</a> by autoheader. */<br>
<div class=""><div class="h5">/* Define to 1, 2, 3, or 4 if Aboca should be build. */<br>
/* #undef CLP_HAS_ABC */<br>
/* SVN revision number of project */<br>
#define CLP_SVN_REV 2043<br>
/* Version number of project */<br>
#define CLP_VERSION &quot;trunk&quot;<br>
/* Major Version number of project */<br>
#define CLP_VERSION_MAJOR 9999<br>
/* Minor Version number of project */<br>
#define CLP_VERSION_MINOR 9999<br>
/* Release Version number of project */<br>
#define CLP_VERSION_RELEASE 9999<br>
/* Define to the debug sanity check level (0 is no test) */<br>
#define COIN_CLP_CHECKLEVEL 0<br>
/* Define to the debug verbosity level (0 is no output) */<br>
#define COIN_CLP_VERBOSITY 0<br>
/* Define to 1 if the AMD package is available */<br>
/* #undef COIN_HAS_AMD */<br>
/* Define to 1 if the ASL package is available */<br>
/* #undef COIN_HAS_ASL */<br>
/* If defined, the BLAS Library is available. */<br>
/* #undef COIN_HAS_BLAS */<br>
/* Define to 1 if the CHOLMOD package is available */<br>
/* #undef COIN_HAS_CHOLMOD */<br>
/* Define to 1 if the CoinUtils package is available */<br>
#define COIN_HAS_COINUTILS 1<br>
/* Define to 1 if the Glpk package is available */<br>
/* #undef COIN_HAS_GLPK */<br>
/* Define to 1 if the Mumps package is available */<br>
/* #undef COIN_HAS_MUMPS */<br>
/* Define to 1 if the Netlib package is available */<br>
/* #undef COIN_HAS_NETLIB */<br>
/* Define to 1 if the Osi package is available */<br>
#define COIN_HAS_OSI 1<br>
/* Define to 1 if the OsiTests package is available */<br>
#define COIN_HAS_OSITESTS 1<br>
/* Define to 1 if readline is available */<br>
/* #undef COIN_HAS_READLINE */<br>
/* Define to 1 if the Sample package is available */<br>
#define COIN_HAS_SAMPLE 1<br>
/* Define to 1 if the WSMP package is available */<br>
/* #undef COIN_HAS_WSMP */<br>
/* Define to dummy `main&#39; function (if any) required to link to the Fortran<br>
libraries. */<br>
/* #undef F77_DUMMY_MAIN */<br>
/* Define to a macro mangling the given C identifier (in lower and upper<br>
case), which must not contain underscores, for linking with Fortran. */<br>
/* #undef F77_FUNC */<br>
/* As F77_FUNC, but for C identifiers containing underscores. */<br>
/* #undef F77_FUNC_ */<br>
/* Define if F77 and FC dummy `main&#39; functions are identical. */<br>
/* #undef FC_DUMMY_MAIN_EQ_F77 */<br>
/* Define to 1 if you have the &lt;cfloat&gt; header file. */<br>
#define HAVE_CFLOAT 1<br>
/* Define to 1 if you have the &lt;cieeefp&gt; header file. */<br>
/* #undef HAVE_CIEEEFP */<br>
/* Define to 1 if you have the &lt;cmath&gt; header file. */<br>
#define HAVE_CMATH 1<br>
/* Define to 1 if you have the &lt;dlfcn.h&gt; header file. */<br>
#define HAVE_DLFCN_H 1<br>
/* Define to 1 if you have the &lt;float.h&gt; header file. */<br>
/* #undef HAVE_FLOAT_H */<br>
/* Define to 1 if you have the &lt;ieeefp.h&gt; header file. */<br>
/* #undef HAVE_IEEEFP_H */<br>
/* Define to 1 if you have the &lt;inttypes.h&gt; header file. */<br>
#define HAVE_INTTYPES_H 1<br>
/* Define to 1 if you have the &lt;math.h&gt; header file. */<br>
/* #undef HAVE_MATH_H */<br>
/* Define to 1 if you have the &lt;memory.h&gt; header file. */<br>
#define HAVE_MEMORY_H 1<br>
/* Define to 1 if you have the &lt;readline/readline.h&gt; header file. */<br>
/* #undef HAVE_READLINE_READLINE_H */<br>
/* Define to 1 if you have the &lt;stdint.h&gt; header file. */<br>
#define HAVE_STDINT_H 1<br>
/* Define to 1 if you have the &lt;stdlib.h&gt; header file. */<br>
#define HAVE_STDLIB_H 1<br>
/* Define to 1 if you have the &lt;strings.h&gt; header file. */<br>
#define HAVE_STRINGS_H 1<br>
/* Define to 1 if you have the &lt;string.h&gt; header file. */<br>
#define HAVE_STRING_H 1<br>
/* Define to 1 if you have the &lt;sys/stat.h&gt; header file. */<br>
#define HAVE_SYS_STAT_H 1<br>
/* Define to 1 if you have the &lt;sys/types.h&gt; header file. */<br>
#define HAVE_<br>
/* Name of package */<br>
#define PACKAGE &quot;clp&quot;<br>
/* Define to the address where bug reports for this package should be sent. */<br>
#define PACKAGE_BUGREPORT &quot; <a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a> &quot;<br>
/* Define to the full name of this package. */<br>
#define PACKAGE_NAME &quot;Clp&quot;<br>
/* Define to the full name and version of this package. */<br>
#define PACKAGE_STRING &quot;Clp trunk&quot;<br>
/* Define to the one symbol short name of this package. */<br>
#define PACKAGE_TARNAME &quot;clp&quot;<br>
/* Define to the version of this package. */<br>
#define PACKAGE_VERSION &quot;trunk&quot;<br>
/* Define to 1 if you have the ANSI C header files. */<br>
#define STDC_HEADERS 1<br>
/* Version number of package */<br>
#define VERSION &quot;trunk&quot;SYS_TYPES_H 1<br>
/* Define to 1 if you have the &lt;unistd.h&gt; header file. */<br>
#define HAVE_UNISTD_H 1<br>
/* Name of package */<br>
#define PACKAGE &quot;clp&quot;<br>
/* Define to the address where bug reports for this package should be sent. */<br>
#define PACKAGE_BUGREPORT &quot; <a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a> &quot;<br>
/* Define to the full name of this package. */<br>
#define PACKAGE_NAME &quot;Clp&quot;<br>
/* Define to the full name and version of this package. */<br>
#define PACKAGE_STRING &quot;Clp trunk&quot;<br>
/* Define to the one symbol short name of this package. */<br>
#define PACKAGE_TARNAME &quot;clp&quot;<br>
/* Define to the version of this package. */<br>
#define PACKAGE_VERSION &quot;trunk&quot;<br>
/* Define to 1 if you have the ANSI C header files. */<br>
#define STDC_HEADERS 1<br>
/* Version number of package */<br>
#define VERSION &quot;trunk&quot;<br>
<br>
<br>
<br>
<br>
<br>
That is where they should be defined. You might as well also include /home/gidden/software/coin- Cbc-trunk/build/Clp/config.log.<br>
Clp/config.log is longer; I put the results here: <a href="https://gist.github.com/gidden/d7050c3fddcc7f5572e8" target="_blank">https://gist.github.com/gidden/d7050c3fddcc7f5572e8</a> .<br>
<br>
<br>
Thanks again for your interest. I&#39;m having a colleague try and see if he can replicate on a similar system.<br>
<br>
<br>
Cheers,<br>
Matt<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Cheers,<br>
<br>
<br>
Ted<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Mon, Jul 28, 2014 at 12:14 PM, Matthew Gidden &lt; <a href="mailto:gidden@wisc.edu">gidden@wisc.edu</a> &gt; wrote:<br>
<br>
<br>
<br>
<br>
<br>
Hi all,<br>
<br>
<br>
I&#39;m running ubuntu 14.04 and get the following error when building from source (I&#39;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&#39;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.<br>


<br>
<br>
I checkout and install normally<br>
<br>
<br>
<br>
$ svn co &lt;trunk&gt;<br>
$ cd &lt;trunk&gt;; mkdir build; cd build<br>
$ ./configure --prefix $HOME/.local<br>
$ make<br>
<br>
<br>
The error is as follows:<br>
<br>
<br>
<br>
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<br>


../../../Clp/src/Clp_C_Interface.cpp: In function &#39;const char* Clp_Version()&#39;:<br>
../../../Clp/src/Clp_C_Interface.cpp:206:11: error: &#39;CLP_VERSION&#39; was not declared in this scope<br>
return CLP_VERSION;<br>
^<br>
../../../Clp/src/Clp_C_Interface.cpp: In function &#39;int Clp_VersionMajor()&#39;:<br>
../../../Clp/src/Clp_C_Interface.cpp:211:11: error: &#39;CLP_VERSION_MAJOR&#39; was not declared in this scope<br>
return CLP_VERSION_MAJOR;<br>
^<br>
../../../Clp/src/Clp_C_Interface.cpp: In function &#39;int Clp_VersionMinor()&#39;:<br>
../../../Clp/src/Clp_C_Interface.cpp:215:11: error: &#39;CLP_VERSION_MINOR&#39; was not declared in this scope<br>
return CLP_VERSION_MINOR;<br>
^<br>
../../../Clp/src/Clp_C_Interface.cpp: In function &#39;int Clp_VersionRelease()&#39;:<br>
../../../Clp/src/Clp_C_Interface.cpp:219:11: error: &#39;CLP_VERSION_RELEASE&#39; was not declared in this scope<br>
return CLP_VERSION_RELEASE;<br>
^<br>
../../../Clp/src/Clp_C_Interface.cpp: In function &#39;const char* Clp_Version()&#39;:<br>
../../../Clp/src/Clp_C_Interface.cpp:207:1: warning: control reaches end of non-void function [-Wreturn-type]<br>
}<br>
^<br>
../../../Clp/src/Clp_C_Interface.cpp: In function &#39;int Clp_VersionMajor()&#39;:<br>
../../../Clp/src/Clp_C_Interface.cpp:212:1: warning: control reaches end of non-void function [-Wreturn-type]<br>
}<br>
^<br>
../../../Clp/src/Clp_C_Interface.cpp: In function &#39;int Clp_VersionMinor()&#39;:<br>
../../../Clp/src/Clp_C_Interface.cpp:216:1: warning: control reaches end of non-void function [-Wreturn-type]<br>
}<br>
^<br>
../../../Clp/src/Clp_C_Interface.cpp: In function &#39;int Clp_VersionRelease()&#39;:<br>
../../../Clp/src/Clp_C_Interface.cpp:220:1: warning: control reaches end of non-void function [-Wreturn-type]<br>
}<br>
^<br>
In file included from ../../../Clp/src/ClpModel.hpp:23:0,<br>
from ../../../Clp/src/ClpSimplex.hpp:16,<br>
from ../../../Clp/src/Clp_C_Interface.cpp:14:<br>
/home/gidden/software/coin-Cbc-trunk/CoinUtils/src/CoinFinite.hpp: At global scope:<br>
/home/gidden/software/coin-Cbc-trunk/CoinUtils/src/CoinFinite.hpp:17:14: warning: &#39;COIN_DBL_MIN&#39; defined but not used [-Wunused-variable]<br>
const double COIN_DBL_MIN = std::numeric_limits&lt;double&gt;::min();<br>
^<br>
/home/gidden/software/coin-Cbc-trunk/CoinUtils/src/CoinFinite.hpp:19:14: warning: &#39;COIN_INT_MAX&#39; defined but not used [-Wunused-variable]<br>
const int COIN_INT_MAX = std::numeric_limits&lt;int&gt;::max();<br>
^<br>
/home/gidden/software/coin-Cbc-trunk/CoinUtils/src/CoinFinite.hpp:20:14: warning: &#39;COIN_INT_MAX_AS_DOUBLE&#39; defined but not used [-Wunused-variable]<br>
const double COIN_INT_MAX_AS_DOUBLE = std::numeric_limits&lt;int&gt;::max();<br>
^<br>
make[3]: *** [Clp_C_Interface.lo] Error 1<br>
make[3]: Leaving directory `/home/gidden/software/coin-Cbc-trunk/build/Clp/src&#39;<br>
make[2]: *** [all] Error 2<br>
make[2]: Leaving directory `/home/gidden/software/coin-Cbc-trunk/build/Clp/src&#39;<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/home/gidden/software/coin-Cbc-trunk/build/Clp&#39;<br>
make: *** [all-recursive] Error 1<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
<br>
Matthew Gidden<br>
Ph.D. Candidate, Nuclear Engineering<br>
The University of Wisconsin -- Madison<br>
Ph. 225.892.3192<br>
<br>
<br>
_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
Dr. Ted Ralphs<br>
Associate Professor, Lehigh University<br>
<a href="tel:%28610%29%20628-1280" value="+16106281280">(610) 628-1280</a><br>
ted &#39;at&#39; lehigh &#39;dot&#39; edu<br>
<a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
<br>
<br>
<br>
<br>
--<br>
<br>
Matthew Gidden<br>
Ph.D. Candidate, Nuclear Engineering<br>
The University of Wisconsin -- Madison<br>
Ph. <a href="tel:225.892.3192" value="+12258923192">225.892.3192</a><br>
<br>
_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
<br>
_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Matthew Gidden<br>Ph.D. Candidate, Nuclear Engineering<div>The University of Wisconsin -- Madison<br>Ph. 225.892.3192<br></div></div>


</div></div>