delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/08/22:33:57

Message-ID: <37D6CEC4.72FA95D0@swipnet.se>
From: Anders David Skarin <hobbit AT swipnet DOT se>
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem compiling cpu.c in Allegro...
References: <935854169 DOT 868702 AT rodelo DOT cyberverse DOT com>
Lines: 48
NNTP-Posting-Host: 130.244.210.54
X-Complaints-To: news-abuse AT swip DOT net
X-Trace: nntpserver.swip.net 936824709 130.244.210.54 (Wed, 08 Sep 1999 23:05:09 MET DST)
NNTP-Posting-Date: Wed, 08 Sep 1999 23:05:09 MET DST
Organization: A Customer of Tele2
X-Sender: s-437261 AT dialup210-1-54 DOT swipnet DOT se
Date: Wed, 08 Sep 1999 23:01:56 +0200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In the beginning of the allegro
makefile there is a commented line
(#PGCC=1). But this is (as i understand it)
only for compilor optimization switches. And
should not cause any compilation errors.

I can't tell you whats wrong, but I don't 
think it has anything to do with PGCC.

Good luck!

> 
> I downloaded GCC 2.95 and Allegro 3.11 from ftp.cdrom.com, and am having a
> nightmare trying to build the Allegro objects.
> 
> I have the path set and the environment variable set, and I believe that gcc
> is installed properly, but when I run 'make' in the Allegro directory, it
> fails on cpu.o with the following errors:
> 
> gcc -I. -Isrc -Iobj/djgpp -Wall -Wno-unused -m486 -O3 -ffast-math -fomit-fra
> me-p
> ointer -o obj/djgpp/cpu.o -c src/cpu.c
> src/cpu.c: In function `check_cpu':
> src/cpu.c:276: Invalid `asm' statement:
> src/cpu.c:276: fixed or forbidden register 0 (ax) was spilled for class
> AREG.
> src/cpu.c:155: Invalid `asm' statement:
> src/cpu.c:155: fixed or forbidden register 0 (ax) was spilled for class
> AREG.
> src/cpu.c:124: Invalid `asm' statement:
> src/cpu.c:124: fixed or forbidden register 0 (ax) was spilled for class
> AREG.
> src/cpu.c:64: Invalid `asm' statement:
> src/cpu.c:64: fixed or forbidden register 0 (ax) was spilled for class AREG.
> src/cpu.c:155: Invalid `asm' statement:
> src/cpu.c:155: fixed or forbidden register 0 (ax) was spilled for class
> AREG.
> make.exe: *** [obj/djgpp/cpu.o] Error 1
> 
> If I remove the assembly routines from cpu.c and rerun 'make', everything
> compiles fine, but obviously this is not an ideal solution! :o)
> 
> Is this related to what processor I'm running (a Pentium II 450)?  Should I
> be using PGCC?  Is it simply a djgpp configuration issue?
> 
> Any pointers would be greatly appreciated.
> 
> Chris

- Raw text -


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