Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Daphne Laserdisc Emulator compile problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Panda
Apprentice
Apprentice


Joined: 31 Jul 2003
Posts: 223
Location: Cremona <=> Catania

PostPosted: Mon Sep 22, 2003 2:27 pm    Post subject: Daphne Laserdisc Emulator compile problems Reply with quote

Hi everyone... I truly hope someone can help me 'cause I'm really going out of mind.

Since I upgraded my gentoo-box I can't build Daphne. I tried to move on "/usr/tmp/portage/daphne-xxx/work/daphne/src" and launch a 'make' there but I noticed some problems with SDL headerfiles. In the sources SDL are included by "#include <SDL.h>", I tried to change some directives in "#include "/usr/include/SDL/SDL.h" and I noticed that this way he find the headerfiles. So i tried to copy all SDL headerfile in /usr/include: now it finds headerfiles but:
Code:
g++ -O3 -march=i686 -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DMMX_RGB2YUV -Wall -Winline -c copintf.cpp -o copintf.o
/var/tmp/portage/daphne-0.99.6/temp/cc5HGnfj.s: Assembler messages:
/var/tmp/portage/daphne-0.99.6/temp/cc5HGnfj.s:12940: Error: bad register name `%dil'
/var/tmp/portage/daphne-0.99.6/temp/cc5HGnfj.s:19035: Error: bad register name `%dil'
/var/tmp/portage/daphne-0.99.6/temp/cc5HGnfj.s:19078: Error: bad register name `%dil'
/var/tmp/portage/daphne-0.99.6/temp/cc5HGnfj.s:27967: Error: bad register name `%dil'
/var/tmp/portage/daphne-0.99.6/temp/cc5HGnfj.s:33633: Error: bad register name `%dil'
/var/tmp/portage/daphne-0.99.6/temp/cc5HGnfj.s:33678: Error: bad register name `%dil'
make[1]: *** [m80.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/daphne-0.99.6/work/daphne/src/cpu'
make: *** [sub] Error 2

!!! ERROR: games-emulation/daphne-0.99.6 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! src build failed


I would remeber that before my 'emerge -Uvp world' I had built successfully Daphne, but now I can't. Here there are some info's about my linux-box:
Code:
gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) with glibc-2.3.2-r1


Thanks in advance
Back to top
View user's profile Send private message
Brandy
Bodhisattva
Bodhisattva


Joined: 08 Jun 2003
Posts: 820
Location: New Zealand

PostPosted: Tue Sep 23, 2003 8:13 am    Post subject: Reply with quote

Panda, it's the -march=i686 in your CFLAGS that is causing you grief. What does surprise me however is that back in July the daphne ebuild was fixed in order to solve the exact problem you are now experiencing; are you by any chance using a pre-July ebuild?

Up-to-date daphne ebuilds should contain the following lines near the top:
Code:

replace-flags -march=i686 -march=i586      # Bug 18807 Comment #11
replace-flags -march=pentium3 -march=i586   # Bug 18807 Comment #4

Ciao, Brandy
_________________
Faber est suae quisque fortunae.
Back to top
View user's profile Send private message
Panda
Apprentice
Apprentice


Joined: 31 Jul 2003
Posts: 223
Location: Cremona <=> Catania

PostPosted: Wed Sep 24, 2003 10:04 am    Post subject: Reply with quote

Brandy wrote:
Panda, it's the -march=i686 in your CFLAGS that is causing you grief. What does surprise me however is that back in July the daphne ebuild was fixed in order to solve the exact problem you are now experiencing; are you by any chance using a pre-July ebuild?


That's the changelog for daphne I have in my portage tree:
Code:
*daphne-0.99.6 (15 Jul 2003)

  15 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
  Initial import.  Ebuild submitted by Andrea Cerrito <cerrito@centromultimediale.it> #18807.

Brandy wrote:
Up-to-date daphne ebuilds should contain the following lines near the top:
Code:

replace-flags -march=i686 -march=i586      # Bug 18807 Comment #11
replace-flags -march=pentium3 -march=i586   # Bug 18807 Comment #4

Ciao, Brandy


My ebuild has that lines... but i noticed one thing I'm going to explain: just after the build fails I moved in /var/tmp/portage/daphne-0.99.6/work/daphne/src/ and tried to build it manually. In each source subdir I lauched a 'make' to find in which file it fails. If I lauch 'make' in the 'src' root, it complete successfully and build the '../daphne' binary. But I noticed that the ebuild also build vldp and vldp2. If I launch 'make' in the vldp2 dir it fails with :
Code:
panda vldp2 # make -f Makefile.linux
gcc -O3 -march=i686 -fomit-frame-pointer -funroll-loops `sdl-config --cflags` -I./include -c vldp/vldp.c -o vldp/vldp.o
gcc -O3 -march=i686 -fomit-frame-pointer -funroll-loops `sdl-config --cflags` -I./include -c vldp/vldp_internal.c -o vldp/vldp_internal.o
gcc -O3 -march=i686 -fomit-frame-pointer -funroll-loops `sdl-config --cflags` -I./include -c vldp/mpegscan.c -o vldp/mpegscan.o
gcc -O3 -march=i686 -fomit-frame-pointer -funroll-loops `sdl-config --cflags` -I./include -c libmpeg2/cpu_accel.c -o libmpeg2/cpu_accel.o
libmpeg2/cpu_accel.c:24:20: config.h: No such file or directory
make: *** [libmpeg2/cpu_accel.o] Error 1


But I just can't understand why if I build manually following what the ebuild do (first daphne, second vldp and finally vldp2) i can build daphne and vldp (vldp2 fails) but the ebuild fails on daphne.

PS: I'm sorry for my english... I tried to do the best to explain the problem :roll:
Back to top
View user's profile Send private message
mandis
n00b
n00b


Joined: 07 Aug 2003
Posts: 7
Location: Greece, Crete

PostPosted: Tue Jun 22, 2004 5:42 pm    Post subject: Daphne emerge problem and Daphne roms Reply with quote

Brandy I get the following error :

Code:

m80.cpp:2984: error: can't find a register in class `BREG' while reloading
   `asm'
make[1]: *** [m80.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/daphne-0.99.6-r2/work/daphne/src/cpu'
make: *** [sub] Error 2

!!! ERROR: games-emulation/daphne-0.99.6-r2 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! src build failed


I have changed march=pentium4 to march=i586 but error persists.
Also any ideas of where can I find roms for DAPHNE emulator?
Thanks in advance

Any ideas?
_________________
Linux gentoo 2.6.4 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players 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