Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To dorphell (dorphell)
Architecture not specified
Severity Very Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

gcc -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
   sdl-gcc34.patch (2.3 KiB)
This task depends upon

Closed by  dorphell (dorphell)
Wednesday, 18 August 2004, 17:06 GMT
Reason for closing:  Fixed
Comment by dorphell (dorphell) - Wednesday, 28 July 2004, 12:14 GMT
yeah, this has been a problem for a while.

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.
Comment by Gustav Munkby (grddev) - Saturday, 31 July 2004, 11:49 GMT
the problem is really not only for gcc3.4, this code should have yielded errors in earlier versions as well... but due to a bug in gcc this wasn't the case until recent versions:

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...
Comment by Jason Chu (jason) - Monday, 09 August 2004, 16:50 GMT
I have used this to successfully compile sdl 1.2.7. Please add this to the package as soon as possible (so that sdl is in a buildable state).
Comment by dorphell (dorphell) - Wednesday, 18 August 2004, 17:06 GMT
Thanks Gustav. Sorry took so long to get to this.

Loading...