From owner-freebsd-current@FreeBSD.ORG Thu Jan 15 22:04:59 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 C519516A4CE for ; Thu, 15 Jan 2004 22:04:59 -0800 (PST) Received: from lakemtao01.cox.net (lakemtao01.cox.net [68.1.17.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56CC043D6A for ; Thu, 15 Jan 2004 22:04:58 -0800 (PST) (envelope-from eqe@cox.net) Received: from merlin ([68.110.209.157]) by lakemtao01.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040116060456.OAUO23168.lakemtao01.cox.net@merlin> for ; Fri, 16 Jan 2004 01:04:56 -0500 From: eqe Organization: Dark Ronin To: freebsd-current@freebsd.org Date: Thu, 15 Jan 2004 13:16:24 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401151316.24827.eqe@cox.net> X-Mailman-Approved-At: Fri, 16 Jan 2004 05:11:22 -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 06:04:59 -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>