mv -f .deps/core_simple.Tpo .deps/core_simple.Pog++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -fPIC -MT core_prefetch.o -MD -MP -MF .deps/core_prefetch.Tpo -c -o core_prefetch.o core_prefetch.cppmv -f .deps/core_prefetch.Tpo .deps/core_prefetch.Pog++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -fPIC -MT core_dyn_x86.o -MD -MP -MF .deps/core_dyn_x86.Tpo -c -o core_dyn_x86.o core_dyn_x86.cppIn file included from core_dyn_x86.cpp:181:0:core_dyn_x86/risc_x86.h: In function 'BlockReturn gen_runcode(Bit8u*)':core_dyn_x86/risc_x86.h:142:3: error: PIC register clobbered by '%ebx' in 'asm'make[4]: *** [core_dyn_x86.o] Error 1make[4]: Leaving directory /Depot/jj/dosbox-17.03.2013/src/cpu'make[3]: *** [all-recursive] Error 1make[3]: Leaving directory/Depot/jj/dosbox-17.03.2013/src/cpu'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory /Depot/jj/dosbox-17.03.2013/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory/Depot/jj/dosbox-17.03.2013'make: *** [all] Error 2
GCC Version: 4.7.2
Glibc Version: (Ubuntu EGLIBC 2.15-0ubuntu20) 2.15
CFLAGS in use: -fomit-frame-pointer -pipe -fPIC -pthread -fno-strict-overflow -O1 -Wno-error
Binutils Version: GNU ld (GNU Binutils for Ubuntu) 2.22.90.20120924
Operating System: i686 GNU/Linux
Command that fails is:
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -fPIC -MT core_dyn_x86.o -MD -MP -MF .deps/core_dyn_x86.Tpo -c -o core_dyn_x86.o core_dyn_x86.cpp
In file included from core_dyn_x86.cpp:181:0:
core_dyn_x86/risc_x86.h: In function 'BlockReturn gen_runcode(Bit8u*)':
core_dyn_x86/risc_x86.h:142:3: error: PIC register clobbered by '%ebx' in 'asm'
does the attached patch solve the problem ?
(and does the dynamic core work)
(type in dosbox:
core=dynamic
and run a game)