Problem on Cross-Compile

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Post Reply
xtale
New Member
Posts: 7
Joined: Thu Jan 20, 2005 7:13 pm

Problem on Cross-Compile

Post by xtale »

Hi,
I tried to build a win32 binary using mingw-crosscompile
It died on compiling winlink, bitching about the assembler-stuff:

Code: Select all

tharos@y033:~/zsnes/src$ make -f makefile.ms PLATFORM=win32-cross DEBUGGER=no
i586-mingw32msvc-g++ -O3 -march=i586 -ffast-math -fomit-frame-pointer -fno-unroll-loops -Wall -Wno-unused -I. -DNO_DEBUGGER -D__WIN32__ -masm=intel -o win/winlink.obj -c win/winlink.cpp
/tmp/cc7QXPs1.s: Assembler messages:
/tmp/cc7QXPs1.s:8448: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8454: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8456: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8512: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8520: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8522: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8536: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8541: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8543: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8552: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8556: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8558: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8589: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8598: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8600: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8606: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8611: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8613: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8643: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8649: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8651: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8827: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8833: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8835: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8891: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8897: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8899: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8911: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8916: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8918: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8925: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8929: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8931: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8960: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:8965: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8967: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:8999: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:9004: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:9006: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:9018: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:9023: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:9025: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:9061: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:9068: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:9070: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:9074: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:9076: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:9369: Error: suffix or operands invalid for `fnstcw'
/tmp/cc7QXPs1.s:9374: Error: suffix or operands invalid for `fldcw'
/tmp/cc7QXPs1.s:9376: Error: suffix or operands invalid for `fldcw'
make: *** [win/winlink.obj] Fehler 1
I know that you will probably not help me, according to the readme, but maybe someone encountered the same problem and knows how to fix it :)

I'm using the debian-sarge mingw environment:

Code: Select all

tharos@y033:~/zsnes/src$ i586-mingw32msvc-g++ -v
Reading specs from /usr/lib/gcc/i586-mingw32msvc/3.4.2/specs
Configured with: /home/ron/devel/debian/mingw32/mingw32-3.4.2.20040916.1/build_dir/src/gcc-3.4.2-20040916-1/configure -v --prefix=/usr --target=i586-mingw32msvc --enable-languages=c,c++ --enable-threads --enable-sjlj-exceptions --disable-multilib --enable-version-specific-runtime-libs
Thread model: win32
gcc version 3.4.2 (mingw-special)
[url=http://www.aep-emu.de]http://www.aep-emu.de[/url]
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Your copy of GCC is horribly busted.

Get a good one here:
http://debian.speedblue.org/
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
xtale
New Member
Posts: 7
Joined: Thu Jan 20, 2005 7:13 pm

Post by xtale »

damn.. that's what I thought :/

I'm not sure if I really want to switch to unstable stuff on the server I used to compile, but thanks for the hint.
[url=http://www.aep-emu.de]http://www.aep-emu.de[/url]
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Just install the 4 or 5 MinGW packages and ditch the official Debian ones. Trust me the ones from Speedblue are much more stable than the Debian ones.

I've been sending bug reports to the MinGW maintainer for Debian for a while and he kept on ignoring them.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
xtale
New Member
Posts: 7
Joined: Thu Jan 20, 2005 7:13 pm

Post by xtale »

Nice, it is working now :) Thanks
[url=http://www.aep-emu.de]http://www.aep-emu.de[/url]
xtale
New Member
Posts: 7
Joined: Thu Jan 20, 2005 7:13 pm

Post by xtale »

FYI: If anyone is interested in automated, daily svn win32 crosscompiles without any guarantees that they're working, you can find them on http://builds.tharos-online.de
[url=http://www.aep-emu.de]http://www.aep-emu.de[/url]
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Why don't they just compile for themselves?

And to the answer to your question as to whether you found all the easter eggs or not. It is no, there are much more than 4.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
xtale
New Member
Posts: 7
Joined: Thu Jan 20, 2005 7:13 pm

Post by xtale »

you know that most people are too lazy to compile them ;)

edit: hm, so you read my post ;)

how many are there?
[url=http://www.aep-emu.de]http://www.aep-emu.de[/url]
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

xtale wrote:you know that most people are too lazy to compile them ;)
Since I wrote zget, and some word spread, I see that's not the case with the forumers.
xtale wrote: edit: hm, so you read my post ;)

how many are there?
Yes, it's the responsible thing to do.
Over 20, so start looking ;)
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
xtale
New Member
Posts: 7
Joined: Thu Jan 20, 2005 7:13 pm

Post by xtale »

Nach wrote:
xtale wrote:you know that most people are too lazy to compile them ;)
Since I wrote zget, and some word spread, I see that's not the case with the forumers.
hm - ok, you're right ;) I forgot about zget
Nach wrote:
xtale wrote: edit: hm, so you read my post ;)

how many are there?
Yes, it's the responsible thing to do.
Over 20, so start looking ;)
damn ;) That's too much. It's not that funny to read ASM source :-P
[url=http://www.aep-emu.de]http://www.aep-emu.de[/url]
Post Reply