Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty 19.18 compile error - help?

Author: Matthew Hull

Date: 04:47:24 02/11/05

Go up one level in this thread


On February 10, 2005 at 18:54:09, Bryan Hofmann wrote:

>On February 10, 2005 at 17:16:54, Matthew Hull wrote:
>
>>On February 10, 2005 at 17:14:52, Joshua Haglund wrote:
>>
>>>On February 10, 2005 at 14:25:26, Matthew Hull wrote:
>>>
>>>>bash-2.05b$ make profile
>>>>make linux-icc-profile
>>>>make[1]: Entering directory `/home/matt/Datafile/Chess/crafty19.18/crafty-19.18'
>>>>make target=LINUX \
>>>>        CC=icc CXX=icc \
>>>>        CFLAGS=' -D_REENTRANT -O2 \
>>>>                        -xN -prof_genx -prof_dir ./profdir \
>>>>                        -Ob2 -fno-alias' \
>>>>        CXFLAGS=' -D_REENTRANT -O2 \
>>>>                        -w -xN -prof_genx -prof_dir ./profdir' \
>>>>        LDFLAGS=' -lstdc++ -lpthread' \
>>>>        opt=' -DFUTILITY -DFAST -DINLINE_ASM \
>>>>                         -DPOSIX -DSMP -DCPUS=2' \
>>>>        crafty-make
>>>>make[2]: Entering directory `/home/matt/Datafile/Chess/crafty19.18/crafty-19.18'
>>>>make[3]: Entering directory `/home/matt/Datafile/Chess/crafty19.18/crafty-19.18'
>>>>icc -D_REENTRANT -O2                         -xN -prof_genx -prof_dir ./profdir
>>>>                       -Ob2 -fno-alias -DFUTILITY -DFAST -DINLINE_ASM
>>>>              -DPOSIX -DSMP -DCPUS=2 -DLINUX -c crafty.c
>>>>iccbin: Command line warning: unknown extension 'N' ignored in option '-x'
>>>>iccbin: warning: PGOPTI instrumentation disables IP optimizations
>>>>icc -c -D_REENTRANT -O2                         -w -xN -prof_genx -prof_dir
>>>>./profdir -DFUTILITY -DFAST -DINLINE_ASM                          -DPOSIX -DSMP
>>>>-DCPUS=2 -DLINUX egtb.cpp
>>>>iccbin: Command line warning: unknown extension 'N' ignored in option '-x'
>>>>icc -lstdc++ -lpthread -o crafty crafty.o egtb.o -lm
>>>>ld: cannot find -lstdc++
>>>>make[3]: *** [crafty] Error 1
>>>>make[3]: Leaving directory `/home/matt/Datafile/Chess/crafty19.18/crafty-19.18'
>>>>make[2]: *** [crafty-make] Error 2
>>>>make[2]: Leaving directory `/home/matt/Datafile/Chess/crafty19.18/crafty-19.18'
>>>>make[1]: *** [linux-icc-profile] Error 2
>>>>make[1]: Leaving directory `/home/matt/Datafile/Chess/crafty19.18/crafty-19.18'
>>>>make: *** [profile] Error 2
>>>
>>> I had trouble with this too, but I just installed the lastest of everything for
>>>GCC, and compiled with make-linux.
>>>
>>>How come Linux is so slow?
>>>
>>>Joshua Haglund
>>>toneewa@yahoo.com
>>
>>
>>This version of icc (not gcc) compiles crafty19.13 just fine.  For some reason,
>>it chokes with the above error for version 19.18.
>>
>>There may be a newer version of icc, but this is the version (7.1) I get with
>>Gentoo.
>
>Just remove the "-lstdc++" from the LFLAGS in the makefile. Also version 7 did
>not have the -xN flag for pentium 4's you need to use march=pentium4
>mcpu=pentium4 Replace these in the linux-icc-profile: and linux-icc: areas in
>the Makefile


Thanks.  That worked great!



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.