I'm building SDL-1.2.14 on Debian Stretch. Running
- Code: Select all
./configure
- Code: Select all
$ make
- Code: Select all
/bin/bash ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/SDL_RLEaccel.c -o build/SDL_RLEaccel.lo
libtool: compile: gcc -g -O2 -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/video/SDL_RLEaccel.c -fPIC -DPIC -o build/.libs/SDL_RLEaccel.o
./src/video/SDL_RLEaccel.c: Assembler messages:
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:831: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
./src/video/SDL_RLEaccel.c:930: Error: operand type mismatch for `movq'
build-deps:536: recipe for target 'build/SDL_RLEaccel.lo' failed
make: *** [build/SDL_RLEaccel.lo] Error 1
$
I did find one bug report similar to this topic: https://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=50111. I did change the flag value several times (the default at "-g -O2"), and it only changed the position of the errors. I do not know how to use the flags, but fooling around with them did not seem to be a solution (at least changing the flags alone). I did not understand the last comment in that thread, either.
Have a great day!