Emuforums.com

Go Back   Emuforums.com > Handheld Emulation > Visualboy Advance Discussion
About Us Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old March 20th, 2007   #1 (permalink)
Registered User
 
Join Date: Mar 2007
Location: Brazil
Posts: 4
[Linux] Compiling CVS in Ubuntu Edgy

Having trouble compiling VBA from CVS on a fully updated Ubuntu Edgy 6.10:

Code:
Making all in i386
make[2]: Entering directory `/usr/src/emulation/VisualBoyAdvance/src/i386'
/usr/bin/nasm -f elf -o 2xSaImmx.o 2xSaImmx.asm
2xSaImmx.asm:86: error: parser: instruction expected
2xSaImmx.asm:794: error: symbol `NEWSYM' redefined
2xSaImmx.asm:794: error: parser: instruction expected
2xSaImmx.asm:817: error: symbol `.Loop' redefined
2xSaImmx.asm:1194: error: symbol `.SKIP_GUESS' redefined
2xSaImmx.asm:1321: error: symbol `.SKIP_PROCESS' redefined
2xSaImmx.asm:1374: error: symbol `NEWSYM' redefined
2xSaImmx.asm:1374: error: parser: instruction expected
2xSaImmx.asm:1398: error: symbol `.Loop' redefined
2xSaImmx.asm:1863: error: symbol `.SKIP_GUESS' redefined
2xSaImmx.asm:1934: error: symbol `.SKIP_PROCESS' redefined
2xSaImmx.asm:1964: error: symbol `NEWSYM' redefined
2xSaImmx.asm:1964: error: parser: instruction expected
make[2]: *** [2xSaImmx.o] Error 1
Any ideas? As far as I can tell all build dependencies are satisfied. However, I know next to nothing about asm.

Also, is CVS being updated with Spacy's changes?

Thank you,
Adolfo
arbrandes is offline   Reply With Quote
Old March 29th, 2007   #2 (permalink)
MNK
Registered User
 
MNK's Avatar
 
Join Date: Jan 2002
Location: Poland
Posts: 48
It's been a long time, since I posted here for the last time, but that's not the point.
To the point, then. I've been playing with compiling CVS sources for the last few days (about 18 hours). I must say that the build system annoys me quite a bit. Tried to upgrade it to latest autotools (automake 1.10, autoconf 1.61), wasn't very easy, but again, not that hard either. I wonder why the hell configure.in checks for zutil.h, if the only installed zlib headers are zlib.h and zconf.h. Edited it for a bit and it seems to compile/work with those two instead, after very little changes.
But I'm rambling again. Anyway, after looking at a few pages, the fact that author of 2xSaI was using zsnes sources, when he was optimizing it. Must warn you, I know almost nothing about assembler, too. In zsnes sources there's a macro
Code:
%imacro newsym 1
  GLOBAL %1
  %1:
%endmacro
I changed it to:
Code:
%imacro NEWSYM 1
  GLOBAL %1
  %1:
%endmacro
then put it right above first %ifdef/%endif using NEWSYM in 2xSaImmx.asm and everything seems to work now.

Last edited by MNK; March 29th, 2007 at 13:57.
MNK is offline   Reply With Quote
Old March 29th, 2007   #3 (permalink)
Registered User
 
Join Date: Mar 2007
Location: Brazil
Posts: 4
Well, I'll be damned! Thanks a lot, MNK! Will test as soon as I get a chance.
arbrandes is offline   Reply With Quote
Old March 30th, 2007   #4 (permalink)
MNK
Registered User
 
MNK's Avatar
 
Join Date: Jan 2002
Location: Poland
Posts: 48
After reading a bit more, namely nasm man page, I learned that actually I haven't changed that macro, after all. %imacro defines a case-insensitive macro, so both code blocks above are in fact the same.
MNK is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:10.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5