<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I'm using docker to compile a multi treaded version of SCIP with the following dockerfile\install instructions:</div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(86,156,214)">FROM</span> debian:latest</div><div><span style="color:rgb(86,156,214)">MAINTAINER</span> Sander de Wildt <<a href="mailto:sanderdw@gmail.com" target="_blank">sanderdw@gmail.com</a>></div><br><div><span style="color:rgb(86,156,214)">RUN</span> apt-get update && \</div><div>    apt-get install -y --no-install-recommends \</div><div>    build-essential zlib1g-dev libgmp3-dev libreadline-dev lib32ncurses5-dev && apt-get clean</div><div><span style="color:rgb(86,156,214)">COPY</span> scipoptsuite-6.0.1.tgz /</div><div><span style="color:rgb(86,156,214)">COPY</span> markshare2.mps /</div><div><span style="color:rgb(86,156,214)">RUN</span> tar xvf scipoptsuite-6.0.1.tgz</div><div><span style="color:rgb(86,156,214)">RUN</span> cd scipoptsuite-6.0.1 && make install TPI=tny </div></div></div><div><br></div><div>But i get the following errors:</div><div><div>-> linking bin/scip-6.0.1.linux.x86_64.gnu.opt.spx2.tny</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `mtx_init':</div><div>tinycthread.c:(.text+0x37): undefined reference to `pthread_mutexattr_init'</div><div>tinycthread.c:(.text+0x4a): undefined reference to `pthread_mutexattr_settype'</div><div>tinycthread.c:(.text+0x5f): undefined reference to `pthread_mutexattr_destroy'</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `mtx_timedlock':</div><div>tinycthread.c:(.text+0xb5): undefined reference to `pthread_mutex_timedlock'</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `mtx_trylock':</div><div>tinycthread.c:(.text+0xe5): undefined reference to `pthread_mutex_trylock'</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `thrd_create':</div><div>tinycthread.c:(.text+0x221): undefined reference to `pthread_create'</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `thrd_detach':</div><div>tinycthread.c:(.text+0x285): undefined reference to `pthread_detach'</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `thrd_join':</div><div>tinycthread.c:(.text+0x2ce): undefined reference to `pthread_join'</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `tss_create':</div><div>tinycthread.c:(.text+0x345): undefined reference to `pthread_key_create'</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `tss_set':</div><div>tinycthread.c:(.text+0x385): undefined reference to `pthread_setspecific'</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `tss_delete':</div><div>tinycthread.c:(.text+0x361): undefined reference to `pthread_key_delete'</div><div>/scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o): In function `tss_get':</div><div>tinycthread.c:(.text+0x371): undefined reference to `pthread_getspecific'</div><div>collect2: error: ld returned 1 exit status</div></div><div><br></div><div>When i use theĀ scipoptsuite-5.0.1.tgz release it's compiling and running fine. I also tried different versions of Debian and Ubuntu. When i did some research on these errors some are referring to the gcc compile flag -pthread, but no idea where to put it?</div><div><br></div><div>Thanks in advance.</div><div><br clear="all"><div><div dir="ltr" class="m_-2890787208546945596gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Met vriendelijke groet / Kind regards,<br><br><div>Sander de Wildt<br>E-mail: <a href="mailto:sanderdw@gmail.com" target="_blank">sanderdw@gmail.com</a><br>Tel.: (+31) 06<span style="color:rgb(38,38,38);font-family:"Helvetica Neue",arial,sans-serif;font-size:13px;line-height:16px">43066419</span><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>