Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Error: suffix or operands invalid for 'fnstsw'

Credits go to ReyBrujo for helping out!
This thread is locked; no one can reply to it. rss feed Print
Error: suffix or operands invalid for 'fnstsw'
stanislav stoyanov
Member #10,341
October 2008

I'm trying to install the latest stable version of Allegro (4.2.2) - following the instructions here: http://www.glost.eclipse.co.uk/gfoot/vivace/vivace.html#How%20to%20install%20Allegro , but when I run "make", the following error occurs:

Error: suffix or operands invalid for 'fnstsw'

What am I doing wrong? How it can be fixed?
My OS is Windows XP.

Evert
Member #794
November 2000
avatar

Vivace is old, nevertheless, the installation instructions should be fine.
My first guess is that your version of binutils is too old. I assume you're using MinGW? Which version?

stanislav stoyanov
Member #10,341
October 2008

Sorry, I got confused with all the install stuff :-[

I'm using Dev-cpp 4.9.9.2 ... I think it comes with MinGW but I'm not sure about the version.

Anyways, I tried installing Allegro the way it says in mingw32.txt..

cd c:\allegro fix.bat mingw

that worked fine and returned a success.. but when I type:

mingw32-make (because only 'make' didn't work),

it shows the following error:

gcc: installation problem, cannot exec `cc1': No such file or directory

Hmm... ???
The files cc1 and cc1plus are in "C:\djgpp\libexec\gcc\djgpp\4.32"
I tried adding the directory to the PATH environment variable, but it still won't work... the only difference is that it said "invalid argument" instead of "no such file or directory" in the error..
And binutils is v. 219b I think...

Milan Mimica
Member #3,877
September 2003
avatar

Quote:

The files cc1 and cc1plus are in "C:\djgpp\libexec\gcc\djgpp\4.32"

Who cares about DJGPP, you're trying to use MinGW.

stanislav stoyanov
Member #10,341
October 2008

OK, I deleted everything and started again from the beginning...
This time I followed this guide:
http://ceniza666.googlepages.com/ceniza%27swebsite-mingw

It gives me:
"Compiling Allegro for MinGW32, optimised. Please wait... gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll -loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/mingw32/alleg/po ly3d.o -c src/poly3d.c src/poly3d.c:44: error: syntax error before string constant make: *** [obj/mingw32/alleg/poly3d.o] Error 1"
when I run Make..

Nah, it seems that it just won't work on me, whatever I try :/

ReyBrujo
Moderator
January 2001
avatar

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Follow the directions in the allegro zip file in the allegro/docs/build/mingw32.txt file.

You'll need the mingw/bin directory in your PATH, as well as the directory with cc1.exe and cc1plus.exe from your mingw installation. It's probably c:\mingw\libexec\gcc\mingw32#.#.# or since you're using dev-cpp, replace the mingw directory with the devcpp directory.

stanislav stoyanov
Member #10,341
October 2008

Thanks, it worked after I edited the "asmcapa.h" file :)
Sorry about asking before using the forum search.

ReyBrujo
Moderator
January 2001
avatar

It should be fixed in newer versions, too.

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Go to: