I don’t know exactly the source of your error, but I see that you are
compiling for the AMD k6 architecture, and the error is precesely in
one of the most cpu-dependent codes in SDL, the CPU features polling.
I am not sure the k6 had cpuinfo, and I can’t remember whether
pentiums or pentium IIs were the first to have the cpuinfo
instruction.
Try to help the community and see if you can rewrite some code to make
it work. I understand a little of x86 asm in gcc (and nasm), so I
think I could help you, but you try first and let me see what you
tried.On Fri, 5 Nov 2004 11:08:18 +0100, Johannes Bretscher <bretscher at 5sl.org> wrote:
Hello,
I downloaded the sdl-1.2.7 source and wantet to install, but I get the
following error:
#v+
DL_cpuinfo.c: In function SDL_GetCPUFeatures': SDL_cpuinfo.c:107: error: PIC register
%ebx’ clobbered in asm' SDL_cpuinfo.c:107: error: PIC register
%ebx’ clobbered in asm' SDL_cpuinfo.c:143: error: PIC register
%ebx’ clobbered in asm' SDL_cpuinfo.c:143: error: PIC register
%ebx’ clobbered in asm' SDL_cpuinfo.c:143: error: PIC register
%ebx’ clobbered in asm' SDL_cpuinfo.c:107: error: PIC register
%ebx’ clobbered in asm' SDL_cpuinfo.c:107: error: PIC register
%ebx’ clobbered in asm' SDL_cpuinfo.c: At top level: SDL_cpuinfo.c:58: warning: 'illegal_instruction' defined but not used make[2]: *** [SDL_cpuinfo.lo] Fehler 1 make[2]: Leaving directory
/home/hans/download/SDL-1.2.7/src/cpuinfo’
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/hans/download/SDL-1.2.7/src’
make: *** [all-recursive] Fehler 1
hans at cthulhu:~/download/SDL-1.2.7>
#v-
I did nothing fancy in configure, just set a --prefix and --sysconfdir.
My environment compiler options are “-O3 -march=k6”.
How can I correct this error?
Greetings,
Johannes
–
http://www.5sl.org/~bretscher/mert/
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
“The reasonable man adapts himself to the world: the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.” George Bernard Shaw
“We live together, you and I, in a dark time when all official history
is propaganda” John Taylor Gatto,
http://www.johntaylorgatto.com/underground/prologue7.htm