Opened 17 years ago
Closed 17 years ago
#21626 closed defect (fixed)
libsdl 1.2.14_3 fails in SDL_cpuinfo.c on i386
| Reported by: | skymoo (Adam Mercer) | Owned by: | nox@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | gale@…, whitley@…, bryeung@… | |
| Port: | libsdl |
Description
Getting the following build error from libsdl 1.2.14_3 on Intel Leopard:
/usr/bin/gcc-4.0 -O2 -arch i386 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/opt/local/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/cpuinfo/SDL_cpuinfo.c -fno-common -DPIC -o build/.libs/SDL_cpuinfo.o ./src/cpuinfo/SDL_cpuinfo.c: In function 'SDL_GetCPUFeatures': ./src/cpuinfo/SDL_cpuinfo.c:150: error: PIC register '%ebx' clobbered in 'asm' ./src/cpuinfo/SDL_cpuinfo.c:150: error: PIC register '%ebx' clobbered in 'asm' ./src/cpuinfo/SDL_cpuinfo.c:220: error: PIC register '%ebx' clobbered in 'asm' ./src/cpuinfo/SDL_cpuinfo.c:220: error: PIC register '%ebx' clobbered in 'asm' ./src/cpuinfo/SDL_cpuinfo.c:220: error: PIC register '%ebx' clobbered in 'asm' ./src/cpuinfo/SDL_cpuinfo.c:150: error: PIC register '%ebx' clobbered in 'asm' ./src/cpuinfo/SDL_cpuinfo.c:150: error: PIC register '%ebx' clobbered in 'asm' /usr/bin/gcc-4.0 -O2 -arch i386 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/opt/local/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/events/SDL_active.c -fno-common -DPIC -o build/.libs/SDL_active.o make: *** [build/SDL_cpuinfo.lo] Error 1
Change History (9)
comment:1 Changed 17 years ago by jmroot (Joshua Root)
comment:2 Changed 17 years ago by gale@…
Also on Tiger, MacBook 2Ghz Intel Core 2 Duo.
Please fix the summary. Besides removing "Leopard", could we please make it more descriptive - add "SDL_cpuinfo.c" or "PIC register" or something - so that careless people like me will stop submitting dupes? Thanks.
comment:4 Changed 17 years ago by skymoo (Adam Mercer)
| Summary: | libsdl 1.2.14_3 fails on Intel Leopard → libsdl 1.2.14_3 fails in SDL_cpuinfo.c |
|---|
comment:5 Changed 17 years ago by jmroot (Joshua Root)
| Summary: | libsdl 1.2.14_3 fails in SDL_cpuinfo.c → libsdl 1.2.14_3 fails in SDL_cpuinfo.c on i386 |
|---|
Patch (should be in the next revision): http://www.libsdl.org/cgi/viewvc.cgi/branches/SDL-1.2/src/cpuinfo/SDL_cpuinfo.c?r1=4848&r2=4859&view=patch
comment:6 Changed 17 years ago by jmroot (Joshua Root)
| Port: | libsdl added; sdl removed |
|---|
comment:9 Changed 17 years ago by nox@…
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Either this has been fixed somewhere between libsdl 1.2.14_3 and 1.2.14_6, or jmr patch is not its fix, as it's already in 1.2.14_6 sourcecode.
Note: See
TracTickets for help on using
tickets.

Seems to have been broken by the patch from this upstream bug: http://bugzilla.libsdl.org/show_bug.cgi?id=734