Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#1189 - sdl doesn't compile
Attached to Project:
Arch Linux
Opened by Jason Chu (jason) - Monday, 26 July 2004, 10:26 GMT
Last edited by Judd Vinet (judd) - Tuesday, 27 July 2004, 15:36 GMT
Opened by Jason Chu (jason) - Monday, 26 July 2004, 10:26 GMT
Last edited by Judd Vinet (judd) - Tuesday, 27 July 2004, 15:36 GMT
|
Detailsgcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\" -DVERSION=\"1.2.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -march=i586 -O2 -pipe -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT -DESD_SUPPORT -DESD_DYNAMIC=libesd.so.0 -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA -DENABLE_FBCON -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../../include -I../../include/SDL -I../../src -I../../src/main/linux -I../../src/audio -I../../src/video -I../../src/video/XFree86/extensions -I../../src/events -I../../src/joystick -I../../src/cdrom -I../../src/thread -I../../src/timer -I../../src/endian -I../../src/file -I../../src/thread -MT SDL_cpuinfo.lo -MD -MP -MF .deps/SDL_cpuinfo.Tpo -c SDL_cpuinfo.c -fPIC -DPIC -o .libs/SDL_cpuinfo.o
SDL_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 |
This task depends upon
sdl-gcc34.patch
sdl.org has also been dead for months. Their code is not complient with the latest gcc, flex, etc.
If you know of any patches for it, let me know Xentac.
http://gcc.gnu.org/ml/gcc-bugs/2001-08/msg00856.html
The attached files fixes the asm statements by pushing ebx before using it, and popping it after. When this error was fixed, compilation was a breeze...