Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: compiling crafty with mingw32

Author: Dann Corbit

Date: 13:24:03 02/17/03

Go up one level in this thread


On February 17, 2003 at 16:06:37, Sean Mintz wrote:

>Has anyone been able to compile crafty using the MingW compiler under
>windows? I tried using ''mingw32-make dos'' and ''mingw32-make cygwin'',
>neither of which was successful. I made it's own make option ''mingw32''
>which looks like this:
>
>mingw32:
>	$(MAKE) target=NT_i386 \
>		CC=gcc CXX=g++ \
>		CFLAGS='$(CFLAGS) -fomit-frame-pointer -O3' \
>		CXFLAGS=$(CFLAGS) \
>		LDFLAGS=$(LDFLAGS) \
>		opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
>		     -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
>		asm='X86.o' \
>		crafty-make
>
>Everything goes OK until it gets to the assembly and heres what I get:
>
>as  -o X86.o X86.s
>X86.s: Assembler messages:
>X86.s:4: Error: bad or irreducible absolute expression
>X86.s:30: Error: bad or irreducible absolute expression
>X86.s:45: Error: bad or irreducible absolute expression
>X86.s:63: Error: bad or irreducible absolute expression
>X86.s:122: Error: bad or irreducible absolute expression
>X86.s:154: Error: bad or irreducible absolute expression
>X86.s:182: Error: bad or irreducible absolute expression
>X86.s:234: Error: bad or irreducible absolute expression
>X86.s:266: Error: bad or irreducible absolute expression
>X86.s:301: Error: bad or irreducible absolute expression
>X86.s:347: Error: bad or irreducible absolute expression
>X86.s:384: Error: bad or irreducible absolute expression
>X86.s:456: Error: bad or irreducible absolute expression
>X86.s:492: Error: bad or irreducible absolute expression
>X86.s:516: Error: bad or irreducible absolute expression
>mingw32-make[2]: *** [X86.o] Error 1

If mingw can't do the inline assembly, then use the C version for that function
group.



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.