Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PACKAGE: xmame-0.60.1-r1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Kaali
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2002
Posts: 80

PostPosted: Sat Jun 15, 2002 11:42 am    Post subject: PACKAGE: xmame-0.60.1-r1 Reply with quote

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
View user's profile Send private message
handsomepete
Guru
Guru


Joined: 21 Apr 2002
Posts: 548
Location: Kansas City, MO

PostPosted: Sat Jun 15, 2002 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
handsomepete
Guru
Guru


Joined: 21 Apr 2002
Posts: 548
Location: Kansas City, MO

PostPosted: Sat Jun 15, 2002 5:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kaali
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2002
Posts: 80

PostPosted: Sun Jun 23, 2002 3:37 pm    Post subject: Reply with quote

I'm compiling it with -O2.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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