<div dir="ltr">Hi all,<div><br></div><div>I was able to replicate the problem Noli had with building cbc parallel and John&#39;s fix seems to work for me with clang. I am on OS X 10.9 and build with both clang and gcc (the fix was tested with clang).</div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 3:56 AM, John Forrest <span dir="ltr">&lt;<a href="mailto:john.forrest@fastercoin.com" target="_blank">john.forrest@fastercoin.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Noli,<br>
<br>
Change was to Clp (2085).<br>
<br>
Looking at your pthread.h, I can see there are no definitions for barriers.  I have now changed my previous commit to use PTHREAD_BARRIER_SERIAL_THREAD as that indicates existence of barriers (2086).<span class="HOEnZb"><font color="#888888"><br>
<br>
John</font></span><div class="HOEnZb"><div class="h5"><br>
On 14/01/15 21:54, Noli Sicad wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi John,<br>
<br>
Here attached is the pthreads.h from Mac OS X 10.8 SDK.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is trunk OK now.<br>
</blockquote>
Not downloaded the trunk yet since it seems the number is not updated<br>
(i.e. 2108) yet.<br>
<br>
What are the changes?  Can I just edit the previous code?<br>
<br>
Thanks, Noli<br>
<br>
<br>
<br>
On 1/14/15, John Forrest &lt;<a href="mailto:john.forrest@fastercoin.com" target="_blank">john.forrest@fastercoin.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Noli,<br>
<br>
Not sure why pthread_barrier_t not defined in Mac pthreads.h - can you<br>
send me the Mac copy?<br>
<br>
That bit of code not really used (by normal people), so I have modified<br>
it a bit.<br>
<br>
There is now a NORMAL_THREADS define which can be set by user -- or will<br>
be set by some other options.<br>
<br>
Is trunk OK now.<br>
<br>
John<br>
<br>
On 14/01/15 05:12, Noli Sicad wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ted,<br>
<br>
I am using Mac OS X 10.8.3 and GCC 4.7.<br>
<br>
1.5 years ago I was able compile CBC with the GCC 4.7. However, the<br>
last 6 months I have problems.<br>
<br>
I tried this (below) as well. I got error as well.<br>
<br>
./configure  --enable-cbc-parallel --enable-gnu-packages<br>
--enable-debug -C --prefix=/usr/local<br>
<br>
I am using the latest source code<br>
<br>
source: trunk/Cbc @ 2108<br>
<br>
I don&#39;t want to upgrade my GCC to 4.9 since  a lot of work.<br>
<br>
Ted, what version GCC you are using and what version of Mac OS X you<br>
are running?<br>
<br>
Here&#39;s the error (below).<br>
<br>
Noli<br>
<br>
~~~~<br>
/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk/glpk/src/amd<br>
-DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -g -O0 -pipe -Wparentheses<br>
-Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings<br>
-Wconversion -Wno-unknown-pragmas -Wno-long-long -DCBC_BUILD -MT<br>
CbcBranchDefaultDecision.lo -MD -MP -MF<br>
.deps/<u></u>CbcBranchDefaultDecision.Tpo -c CbcBranchDefaultDecision.cpp -o<br>
CbcBranchDefaultDecision.o<br>
In file included from CbcSubProblem.hpp:12:0,<br>
                   from CbcGeneralDepth.hpp:13,<br>
                   from CbcBranchActual.hpp:21,<br>
                   from CbcBranchDefaultDecision.cpp:<u></u>24:<br>
/Users/nsicad/Documents/A_CBC/<u></u>coin-Cbc/cbc/Clp/src/<u></u>ClpSimplex.hpp:1763:10:<br>
error: &#39;pthread_barrier_t&#39; does not name a type<br>
/Users/nsicad/Documents/A_CBC/<u></u>coin-Cbc/cbc/Clp/src/<u></u>ClpSimplex.hpp:1779:3:<br>
error: &#39;pthread_barrier_t&#39; does not name a type<br>
In file included from<br>
/Users/nsicad/Documents/A_CBC/<u></u>coin-Cbc/cbc/Osi/src/Osi/<u></u>OsiSolverInterface.hpp:17:0,<br>
                   from CbcBranchDefaultDecision.cpp:<u></u>19:<br>
/Users/nsicad/Documents/A_CBC/<u></u>coin-Cbc/cbc/CoinUtils/src/<u></u>CoinFinite.hpp:20:14:<br>
warning: &#39;COIN_INT_MAX_AS_DOUBLE&#39; defined but not used<br>
[-Wunused-variable]<br>
make[3]: *** [CbcBranchDefaultDecision.lo] Error 1<br>
make[2]: *** [all] Error 2<br>
make[1]: *** [all-recursive] Error 1<br>
make: *** [all-recursive] Error 1<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 1/14/15, Ted Ralphs &lt;<a href="mailto:ted@lehigh.edu" target="_blank">ted@lehigh.edu</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Overriding CFLAGS and CXXFLAGS will cause problems in most cases. If you<br>
want to add extra flags for some reason, you can use ADD_CFLAGS and<br>
ADD_CXXFLAGS, but in general, you should not have to add flags like<br>
&quot;-arch<br>
x86_64&quot;. If you are trying to build binaries that target a different<br>
architecture than the one you are building on, i.e., cross-compile,<br>
there<br>
are arguments to configure to accomplish that. See the explanation here:<br>
<br>
<a href="http://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html" target="_blank">http://www.gnu.org/software/<u></u>automake/manual/html_node/<u></u>Cross_002dCompilation.html</a><br>
<br>
I guess that not defining those variables should fix the problem, but if<br>
not, please provide some more details, such as what specific version of<br>
Cbc<br>
you are trying to build, and I will try to help. I build Cbc on OS X on<br>
a<br>
regular basis.<br>
<br>
Cheers,<br>
<br>
Ted<br>
<br>
On Tue, Jan 13, 2015 at 8:36 PM, Noli Sicad &lt;<a href="mailto:nsicad@gmail.com" target="_blank">nsicad@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I got problem compiling in Mac OS X 10.8, GCC 4.7<br>
<br>
<br>
./configure CFLAGS=&quot;-arch x86_64&quot; CXXFLAGS=&quot;-arch x86_64&quot;<br>
--enable-cbc-parallel --enable-gnu-packages  --enable-debug -C<br>
--prefix=/usr/local<br>
<br>
Here the error below.<br>
<br>
How do I fix this error?<br>
<br>
Thanks, Noli<br>
<br>
<br>
Making all in Cbc<br>
Making all in src<br>
make  all-am<br>
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H<br>
-I. -I`echo .` -I../src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglAllDifferent<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglClique<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglDuplicateRow<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglFlowCover<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglGMI<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglGomory<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglKnapsackCover<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglLandP<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglLiftAndProject<br>
<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglMixedIntegerRounding<br>
<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglMixedIntegerRounding2<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglOddHole<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglPreProcess<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglProbing<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglRedSplit<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglRedSplit2<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglResidualCapacity<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglSimpleRounding<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglTwomir<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglZeroHalf<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Clp/src/<u></u>OsiClp<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Clp/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Osi/src/Osi<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk/glpk/src/amd<br>
    -I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Clp/src/<u></u>OsiClp<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Clp/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Osi/src/Osi<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk/glpk/src/amd<br>
       -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG   -arch x86_64<br>
-DCBC_BUILD -MT CbcBranchDefaultDecision.lo -MD -MP -MF<br>
&quot;.deps/<u></u>CbcBranchDefaultDecision.Tpo&quot; -c -o CbcBranchDefaultDecision.lo<br>
CbcBranchDefaultDecision.cpp; \<br>
          then mv -f &quot;.deps/<u></u>CbcBranchDefaultDecision.Tpo&quot;<br>
&quot;.deps/<u></u>CbcBranchDefaultDecision.Plo&quot;; else rm -f<br>
&quot;.deps/<u></u>CbcBranchDefaultDecision.Tpo&quot;; exit 1; fi<br>
   g++ -DHAVE_CONFIG_H -I. -I. -I../src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglAllDifferent<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglClique<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglDuplicateRow<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglFlowCover<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglGMI<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglGomory<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglKnapsackCover<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglLandP<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglLiftAndProject<br>
<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglMixedIntegerRounding<br>
<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglMixedIntegerRounding2<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglOddHole<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglPreProcess<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglProbing<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglRedSplit<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglRedSplit2<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglResidualCapacity<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglSimpleRounding<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglTwomir<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Cgl/src/<u></u>CglZeroHalf<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Clp/src/<u></u>OsiClp<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Clp/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Osi/src/Osi<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk/glpk/src/amd<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Clp/src/<u></u>OsiClp<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Clp/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/Osi/src/Osi<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_<u></u>CBC/coin-Cbc/cbc/ThirdParty/<u></u>Glpk/glpk/src/amd<br>
-DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -arch x86_64 -DCBC_BUILD -MT<br>
CbcBranchDefaultDecision.lo -MD -MP -MF<br>
.deps/<u></u>CbcBranchDefaultDecision.Tpo -c CbcBranchDefaultDecision.cpp -o<br>
CbcBranchDefaultDecision.o<br>
In file included from CbcSubProblem.hpp:12:0,<br>
                   from CbcGeneralDepth.hpp:13,<br>
                   from CbcBranchActual.hpp:21,<br>
                   from CbcBranchDefaultDecision.cpp:<u></u>24:<br>
/Users/nsicad/Documents/A_CBC/<u></u>coin-Cbc/cbc/Clp/src/<u></u>ClpSimplex.hpp:1763:10:<br>
error: &#39;pthread_barrier_t&#39; does not name a type<br>
/Users/nsicad/Documents/A_CBC/<u></u>coin-Cbc/cbc/Clp/src/<u></u>ClpSimplex.hpp:1779:3:<br>
error: &#39;pthread_barrier_t&#39; does not name a type<br>
make[3]: *** [CbcBranchDefaultDecision.lo] Error 1<br>
make[2]: *** [all] Error 2<br>
make[1]: *** [all-recursive] Error 1<br>
make: *** [all-recursive] Error 1<br>
______________________________<u></u>_________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/cbc</a><br>
<br>
</blockquote>
<br>
--<br>
Dr. Ted Ralphs<br>
Professor, Lehigh University<br>
<a href="tel:%28610%29%20628-1280" value="+16106281280" target="_blank">(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>
</blockquote>
______________________________<u></u>_________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/cbc</a><br>
<br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/cbc</a><br>
<br>
</blockquote></blockquote>
<br>
______________________________<u></u>_________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/cbc</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Dr. Ted Ralphs<br>Professor, Lehigh University<br>(610) 628-1280<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></div></div>
</div>