Mail Archives: djgpp/2001/02/03/22:41:25
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 -