delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/03/22:41:25

From: survivethis AT my-deja DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: compiling crafty
Date: Sun, 04 Feb 2001 03:11:02 GMT
Organization: Deja.com
Lines: 79
Message-ID: <95ih85$4m8$1@nnrp1.deja.com>
References: <95ceoa$7l6$1 AT nnrp1 DOT deja DOT com> <1438-Thu01Feb2001233252+0200-eliz AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: 152.18.60.26
X-Article-Creation-Date: Sun Feb 04 03:11:02 2001 GMT
X-Http-User-Agent: Mozilla/4.08 [en] (WinNT; U ;Nav)
X-Http-Proxy: 1.0 x53.deja.com:80 (Squid/1.1.22) for client 152.18.60.26
X-MyDeja-Info: XMYDJUIDsurvivethis
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <1438-Thu01Feb2001233252+0200-eliz AT is DOT elta DOT co DOT il>,
  djgpp AT delorie DOT com wrote:
> > From: survivethis AT my-deja DOT com
> > Newsgroups: comp.os.msdos.djgpp
> > Date: Thu, 01 Feb 2001 19:51:43 GMT
> >
> > I'm trying to compile a program named crafty (public chess program).
I get
> > the following error:
> >
> > gcc -c -fomit-frame-pointer -m486 -O3 -DCOMPACT_ATTACKS
> > -DUSE_ATTACK_FUNCTIONS - DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DDOS
egtb.cpp In
> > file included from egtb.cpp:3228: tbdecode.h:79: warning:
`cbEGTBCompBytes'
> > initialized and declared `extern' gcc -fomit-frame-pointer -m486 -O3
> > -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DUS E_ASSEMBLY_A
-DUSE_ASSEMBLY_B
> > -DDOS -c dgt.c as  -o X86.o X86.s X86.s: Assembler messages:
X86.s:4: Error:
> > bad or irreducible absolute expression; zero assumed X86.s:30:
Error: bad or
> > irreducible absolute expression; zero assumed X86.s:45:
>
> I'm guessing that X86.s is actually X86.S (with a capital .S), and
> should be passed through the preprocessor before the assembler.
>
> Try this from the command line and see if it works:
>
>    gcc -c X86.S
>
> If it works, replace the command in the Makefile.
>
> If that doesn't help, post the file X86.s here.
>



Well, the actual file had a lower-case .s extension. But I tried the
command gcc -c x86.s and it gave me the same errors. Then I tried the
same command, but capitalized the .s to .S anyway, and it gave me the
same kind of errors, but slightly different - very strange:

C:\DOCUME~1\dell\Desktop\chess\crafty>gcc -c x86.S
c:/djgpp/tmp\cc0dDBvY.s: Assembler messages:
c:/djgpp/tmp\cc0dDBvY.s:5: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:31: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:46: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:64: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:123: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:155: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:183: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:235: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:267: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:302: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:348: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:385: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:457: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:493: Error: bad or irreducible absolute
expression; zero assumed
c:/djgpp/tmp\cc0dDBvY.s:517: Error: bad or irreducible absolute
expression; zero assumed


Sent via Deja.com
http://www.deja.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019