Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Building crafty in unix

Author: Matthew Hull

Date: 13:59:12 09/04/02

Go up one level in this thread


On September 04, 2002 at 16:50:48, Russell Reagan wrote:

>Thanks for your reply. Two things happened so far. When I tried make solaris, I
>got:
>
>clyde% make solaris
>make target=SUN \
>        AS=/usr/ccs/bin/as CC=cc CXX='$(CC)' \
>        AFLAGS='-P' \
>        CFLAGS=' -fast -xO5 -xunroll=20' \
>        CXFLAGS='' \
>        LDFLAGS=' -lpthread' \
>        opt=' -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
>             -DUSE_ASSEMBLY_A -DSMP -DCPUS=4 -DMUTEX -DPOSIX' \
>        asm=Sparc.o \
>        crafty-make
>cc -fast -xO5 -xunroll=20 -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
>             -DUSE_ASSEMBLY_A -DSMP -DCPUS=4 -DMUTEX -DPOSIX -DSUN -c searchr.c
>/usr/ucb/cc:  language optional software package not installed
>*** Error code 1
>make: Fatal error: Command failed for target `searchr.o'
>Current working directory /std1/rr240/crafty
>*** Error code 1
>make: Fatal error: Command failed for target `crafty-make'
>Current working directory /std1/rr240/crafty
>*** Error code 1
>make: Fatal error: Command failed for target `solaris'
>
>Then I tried make solaris-gcc. It seemed to compile and it created the
>executable, but when I run it, I get:
>
>clyde% crafty
>Segmentation Fault (core dumped)
>
>Any advice from here?
>
>Russell


Looks like the first one might need CC instead of cc.  You can change that in
the Makefile.  As for the second, you could try not including the
-DUSE_ASSEMBLY_A.  You can keep taking out switches until you get a good
executable, then figure out which ones you can add back in.

I think Dan had a post with a similar problem to #1 above.

Others here may know more.

Regards,

I've never done a SUN build, so that's about all I know.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.