From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: inline asm problems and making Allegro Date: Wed, 22 Sep 1999 12:58:38 -0700 Organization: Harvey Mudd College Lines: 41 Message-ID: <37E934EE.9D8A5497@hmc.edu> References: <37E8F250 DOT BDC383E8 AT sheffield DOT ac DOT uk> NNTP-Posting-Host: mercury.st.hmc.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: nntp1.interworld.net 938030346 64284 134.173.45.219 (22 Sep 1999 19:59:06 GMT) X-Complaints-To: usenet AT nntp1 DOT interworld DOT net NNTP-Posting-Date: 22 Sep 1999 19:59:06 GMT X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.13pre10 i586) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com N E Parris wrote: > > hi all, > > This is probably a problem you've seen before but I couldn't > see it in the newsgroup so I hope someone can help? > > I've installed everything alright, gcc, rhide, info, g032 etc etc > seem to work fine for the programs I have written so far > but when I try to 'make' in the Allegro library it has a problem > with the inline asm in the code... here's the error: > > D:\djgpp\allegro>make > Compiling Allegro. Please wait... > gcc -I. -Isrc -Iobj/djgpp -Wall -Wno-unused -m486 -O3 -ffast-math -fomit-frame-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 > > D:\djgpp\allegro> > > I've been reading all I can about the inline asm etc, clobbering > and all that but I can't work out why this doesn't work. Please try a more recent version of Allegro, like 3.12. This is an incompatibility between older versions and a new version of the compiler. -- Nate Eldredge neldredge AT hmc DOT edu