Bug 18807 - Ebuild for daphne emulator
|
Bug#:
18807
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: enhancement
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: games@gentoo.org
|
Reported By: is@gentestrana.net
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: Ebuild for daphne emulator
|
|
Keywords: EBUILD
|
|
Status Whiteboard:
|
|
Opened: 2003-04-05 11:51 0000
|
I've made a new ebuild for the daphne emulator (http://www.daphne-emu.com).
This is my first ebuild, so ... be patient :)
Anyway, it work on my machine.
0.99.6 is now in portage ... i heavily modified your ebuild to make it Gentoo
happy ... please try it out and tell me how it goes :)
Not so well...
g++ -O3 -march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse
-falign-functions=4 -fforce-addr -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 nes_6502.cpp -o nes_6502.o
nes_6502.cpp:47: warning: initialization of negative value `-1' to `uint32'
nes_6502.cpp:47: warning: argument of negative value `-1' to `unsigned int'
nes_6502.cpp:47: warning: initialization of negative value `-1' to `uint32'
nes_6502.cpp:47: warning: argument of negative value `-1' to `unsigned int'
nes_6502.cpp:53: warning: initialization of negative value `-1' to `uint32'
nes_6502.cpp:53: warning: argument of negative value `-1' to `unsigned int'
nes_6502.cpp:53: warning: initialization of negative value `-1' to `uint32'
nes_6502.cpp:53: warning: argument of negative value `-1' to `unsigned int'
g++ -O3 -march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse
-falign-functions=4 -fforce-addr -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 cop.cpp -o cop.o
g++ -O3 -march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse
-falign-functions=4 -fforce-addr -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
{standard input}: Assembler messages:
{standard input}:12890: Error: bad register name `%sil'
{standard input}:18980: Error: bad register name `%sil'
{standard input}:19022: Error: bad register name `%sil'
{standard input}:27370: Error: bad register name `%sil'
{standard input}:32975: Error: bad register name `%sil'
make[1]: *** [m80.o] Error 1
make[1]: Leaving directory `/home/portage/daphne-0.99.6/work/daphne/src/cpu'
make: *** [sub] Error 2
!!! ERROR: app-emulation/daphne-0.99.6 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! src build failed
what? no posting of emerge info?
Try it with just
CFLAGS="-march=pentium3 -O2 -pipe"
CXXFLAGS="-march=pentium3 -O2 -pipe"
and see if that works please.
Same.
g++ -O3 -march=pentium3 -O2 -pipe -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 nes_6502.cpp -o nes_6502.o
nes_6502.cpp:47: warning: initialization of negative value `-1' to `uint32'
nes_6502.cpp:47: warning: argument of negative value `-1' to `unsigned int'
nes_6502.cpp:47: warning: initialization of negative value `-1' to `uint32'
nes_6502.cpp:47: warning: argument of negative value `-1' to `unsigned int'
nes_6502.cpp:53: warning: initialization of negative value `-1' to `uint32'
nes_6502.cpp:53: warning: argument of negative value `-1' to `unsigned int'
nes_6502.cpp:53: warning: initialization of negative value `-1' to `uint32'
nes_6502.cpp:53: warning: argument of negative value `-1' to `unsigned int'
g++ -O3 -march=pentium3 -O2 -pipe -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 cop.cpp -o cop.o
g++ -O3 -march=pentium3 -O2 -pipe -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
{standard input}: Assembler messages:
{standard input}:12940: Error: bad register name `%sil'
{standard input}:19036: Error: bad register name `%sil'
{standard input}:19079: Error: bad register name `%sil'
{standard input}:27969: Error: bad register name `%sil'
{standard input}:33635: Error: bad register name `%sil'
{standard input}:33680: Error: bad register name `%sil'
make[1]: *** [m80.o] Error 1
make[1]: Leaving directory `/home/portage/daphne-0.99.6/work/daphne/src/cpu'
make: *** [sub] Error 2
!!! ERROR: app-emulation/daphne-0.99.6 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! src build failed
do it with just CFLAGS=-pipe and CXXFLAGS=-pipe
it appears to be a bug with march=p3 ... it works just fine with march=p4 and
march=i686, but failed on my box with p3 :/
ill replace flags in the ebuild to change the p3 into a i686
i guess march=i686 fails too !
i586 and pentium4 work fine, so ill filter p3/686 down to 586 :/
ok, those flags are now filtered
The ebuild in portage (daphne-0.99.6-r2) doesn't filter i686/pentium3 flags.
You have to manually add the following to it:
replace-flags -march=i686 -march=i586
replace-flags -march=pentium3 -march=i586