View previous topic :: View next topic |
Author |
Message |
Kaali Tux's lil' helper
Joined: 12 May 2002 Posts: 80
|
Posted: Sat Jun 15, 2002 11:42 am Post subject: PACKAGE: xmame-0.60.1-r1 |
|
|
It won't compile:
Quote: |
Compiling src/cpu/i8085/i8085.c ...
{standard input}: Assembler messages:
{standard input}:5530: Error: bad register name `%sil'
{standard input}:5659: Error: bad register name `%sil'
{standard input}:5775: Error: bad register name `%sil'
{standard input}:5910: Error: bad register name `%sil'
{standard input}:6147: Error: bad register name `%sil'
make: *** [xmame.obj/cpu/i8085/i8085.o] Error 1
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 1, Exitcode 2
!!! (no error message)
!!! emerge aborting on /usr/portage/app-emulation/xmame/xmame-0.60.1-r1.ebuild
|
Could someone confirm this?
At the same time i propose that people would use 'PACKAGE:' (or something that we could make a standard) to define package compilation problem. It would be a lot easier to see what works and doesn't in the thread list.[/quote] |
|
Back to top |
|
|
handsomepete Guru
Joined: 21 Apr 2002 Posts: 548 Location: Kansas City, MO
|
Posted: Sat Jun 15, 2002 3:38 pm Post subject: |
|
|
Confirmed. On the xmame website I noticed that they mentioned this problem and it's fixed under xmess (just not xmame). It *should* be trivial to correct the code ourselves via a little cut and paste seeing as xmess and xmame use the exact same headers. If I get the time I'll try and post a fix today.
Fixed the register constraints in cpu/i8085/i8085cpu.h so that cpu/i8085/i8085.c can build for x86 using gcc-3.1 with -O3. |
|
Back to top |
|
|
handsomepete Guru
Joined: 21 Apr 2002 Posts: 548 Location: Kansas City, MO
|
Posted: Sat Jun 15, 2002 5:14 pm Post subject: |
|
|
Ack. Emulator programming is some hairy business. If you've gotta have your mame w/ gcc 3.1 (although I think it would probably be easier to try to compile it w/ -O2 and see if that works), I can post the entire diff between the two. There's just a couple of changes the most important seeming to be:
(*** is updated version)
Code: | $ diff -bBp i8085cpu_2.h i8085cpu.h
*** i8085cpu_2.h Sat Jun 15 16:04:54 2002
--- i8085cpu.h Sat Jun 15 16:05:26 2002
***************
*** 73,80 ****
" shlb $2,%%al \n" /* shift to P/V bit position */ \
" andb $0xd1,%%ah \n" /* sign, zero, half carry, carry */ \
" orb %%ah,%%al \n" \
! :"=mq" (I.AF.b.h), "=a" (I.AF.b.l) \
! :"q" (R), "0" (I.AF.b.h) \
)
#else
#define M_ADD(R) { \
--- 73,80 ----
" shlb $2,%%al \n" /* shift to P/V bit position */ \
" andb $0xd1,%%ah \n" /* sign, zero, half carry, carry */ \
" orb %%ah,%%al \n" \
! :"=g" (I.AF.b.h), "=a" (I.AF.b.l) \
! :"r" (R), "0" (I.AF.b.h) \
)
#else
#define M_ADD(R) |
...I'm at work and can't play with it right now. I imagine there'll be an xmame 0.60.2 soon enough. |
|
Back to top |
|
|
Kaali Tux's lil' helper
Joined: 12 May 2002 Posts: 80
|
Posted: Sun Jun 23, 2002 3:37 pm Post subject: |
|
|
I'm compiling it with -O2.
Thanks! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|