[SCIP] Fwd: SCIP compiling issue with flag TPI=tny

sanderdw at gmail.com sanderdw at gmail.com
Mon Jan 28 22:48:35 CET 2019


Thanks Stefan, works like a charm.

Met vriendelijke groet / Kind regards,

Sander de Wildt
E-mail: sanderdw at gmail.com
Tel.: (+31) 0643066419


Op ma 28 jan. 2019 om 15:58 schreef Stefan Vigerske <
stefan at math.hu-berlin.de>:

> Hi,
>
> make install TPI=tny USRLDFLAGS=-lpthread
>
> may work.
>
> Stefan
>
> On 1/28/19 3:12 PM, sanderdw at gmail.com wrote:
> > Hi,
> >
> > I'm using docker to compile a multi treaded version of SCIP with the
> > following dockerfile\install instructions:
> > FROM debian:latest
> > MAINTAINER Sander de Wildt <sanderdw at gmail.com>
> >
> > RUN apt-get update && \
> > apt-get install -y --no-install-recommends \
> > build-essential zlib1g-dev libgmp3-dev libreadline-dev lib32ncurses5-dev
> &&
> > apt-get clean
> > COPY scipoptsuite-6.0.1.tgz /
> > COPY markshare2.mps /
> > RUN tar xvf scipoptsuite-6.0.1.tgz
> > RUN cd scipoptsuite-6.0.1 && make install TPI=tny
> >
> > But i get the following errors:
> > -> linking bin/scip-6.0.1.linux.x86_64.gnu.opt.spx2.tny
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `mtx_init':
> > tinycthread.c:(.text+0x37): undefined reference to
> `pthread_mutexattr_init'
> > tinycthread.c:(.text+0x4a): undefined reference to
> > `pthread_mutexattr_settype'
> > tinycthread.c:(.text+0x5f): undefined reference to
> > `pthread_mutexattr_destroy'
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `mtx_timedlock':
> > tinycthread.c:(.text+0xb5): undefined reference to
> `pthread_mutex_timedlock'
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `mtx_trylock':
> > tinycthread.c:(.text+0xe5): undefined reference to
> `pthread_mutex_trylock'
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `thrd_create':
> > tinycthread.c:(.text+0x221): undefined reference to `pthread_create'
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `thrd_detach':
> > tinycthread.c:(.text+0x285): undefined reference to `pthread_detach'
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `thrd_join':
> > tinycthread.c:(.text+0x2ce): undefined reference to `pthread_join'
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `tss_create':
> > tinycthread.c:(.text+0x345): undefined reference to `pthread_key_create'
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `tss_set':
> > tinycthread.c:(.text+0x385): undefined reference to `pthread_setspecific'
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `tss_delete':
> > tinycthread.c:(.text+0x361): undefined reference to `pthread_key_delete'
> >
> /scipoptsuite-6.0.1/scip/lib/static/libtpitny-6.0.1.linux.x86_64.gnu.opt.a(tinycthread.o):
> > In function `tss_get':
> > tinycthread.c:(.text+0x371): undefined reference to `pthread_getspecific'
> > collect2: error: ld returned 1 exit status
> >
> > 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?
> >
> > Thanks in advance.
> >
> > Met vriendelijke groet / Kind regards,
> >
> > Sander de Wildt
> > E-mail: sanderdw at gmail.com
> > Tel.: (+31) 0643066419
> >
> >
> > _______________________________________________
> > Scip mailing list
> > Scip at zib.de
> > https://listserv.zib.de/mailman/listinfo/scip
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20190128/22d5dc5c/attachment.html>


More information about the Scip mailing list