From owner-freebsd-current@FreeBSD.ORG Fri Jan 16 06:26:03 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16F8B16A525 for ; Fri, 16 Jan 2004 06:26:03 -0800 (PST) Received: from lakemtao03.cox.net (lakemtao03.cox.net [68.1.17.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 955FD43D41 for ; Fri, 16 Jan 2004 06:26:01 -0800 (PST) (envelope-from eqe@cox.net) Received: from merlin ([68.110.209.157]) by lakemtao03.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040116142601.UMEK2192.lakemtao03.cox.net@merlin> for ; Fri, 16 Jan 2004 09:26:01 -0500 From: eqe Organization: Dark Ronin To: freebsd-current@freebsd.org Date: Thu, 15 Jan 2004 21:37:28 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200401152137.28511.eqe@cox.net> X-Mailman-Approved-At: Fri, 16 Jan 2004 06:31:31 -0800 Subject: problem smp w/ crafty chess engine X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 14:26:03 -0000 Can anyone help with this, I am trying to get my dual amd mp system to compile crafty so that it can use the smp features, but I am having no luck :( This is the target that is in the make file: freebsd: $(MAKE) target=FreeBSD \ CC=gcc CXX='$(CC)' \ CFLAGS='$(CFLAGS) -fomit-frame-pointer -mcpu=i686 -O3 -Wall' \ CXFLAGS=$(CFLAGS) \ LDFLAGS=$(LDFLAGS) \ opt='$(opt) \ -DUSE_ASSEMBLY -DFAST -DPOSIX -DSMP -DCPUS=2' \ asm=X86.o \ crafty-make This is final output gcc -fomit-frame-pointer -mcpu=i686 -O3 -Wall -DUSE_ASSEMBLY -DFAST -DPOSIX -DSMP -DCPUS=2 -DFreeBSD -c bench.c cc -c -DUSE_ASSEMBLY -DFAST -DPOSIX -DSMP -DCPUS=2 -DFreeBSD egtb.cpp egtb.cpp:3795: warning: `TB_CRC_CHECK' initialized and declared `extern' gcc -fomit-frame-pointer -mcpu=i686 -O3 -Wall -DUSE_ASSEMBLY -DFAST -DPOSIX -DSMP -DCPUS=2 -DFreeBSD -c dgt.c as -o X86.o X86.s gcc -o crafty searchr.o search.o singular.o thread.o searchmp.o repeat.o next.o nexte.o nextr.o history.o quiesce.o evaluate.o movgen.o make.o unmake.o hash.o attacks.o swap.o boolean.o utility.o valid.o probe.o book.o data.o drawn.o edit.o epd.o epdglue.o init.o input.o interupt.o iterate.o main.o option.o output.o phase.o ponder.o preeval.o resign.o root.o learn.o setboard.o test.o testepd.o time.o validate.o annotate.o analyze.o evtest.o bench.o egtb.o dgt.o -lstdc++ -lpthread X86.o -lm /usr/bin/ld: cannot find -lpthread gmake[3]: *** [crafty] Error 1 gmake[3]: Leaving directory `/usr/home/eriq/Crafty' gmake[2]: *** [crafty-make] Error 2 gmake[2]: Leaving directory `/usr/home/eriq/Crafty' gmake[1]: *** [freebsd] Error 2 gmake[1]: Leaving directory `/usr/home/eriq/Crafty' gmake: *** [default] Error 2 {eriq@merlin} ~/Crafty>