First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 77300
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: AMD64 Project <amd64@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: SpanKY <vapier@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
SDL_endian-patch.h SDL_endian-patch.h patch SpanKY 2005-01-09 18:28 0000 4.53 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 77300 depends on: Show dependency tree
Bug 77300 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-01-09 17:28 0000
core issue here seems to be with libsdl ... here's some example error messages:
{standard input}:32495: Error: suffix or operands invalid for `xchg'
{standard input}:32525: Error: suffix or operands invalid for `xchg'

{standard input}:2190: Error: bad register name `%'
{standard input}:2213: Error: suffix or operands invalid for `xchg'
{standard input}:2228: Error: suffix or operands invalid for `xchg'

all appear to be with byteswapping functions, usually in network related functions ... currently known to be broken:
sdl-net
sdl-perl
sdl-mixer

------- Comment #1 From SpanKY 2005-01-09 17:28:49 0000 -------
*** Bug 76218 has been marked as a duplicate of this bug. ***

------- Comment #2 From SpanKY 2005-01-09 17:32:59 0000 -------
err forgot to note, this is happening with 1.2.8 but not with 1.2.8

------- Comment #3 From SpanKY 2005-01-09 17:33:15 0000 -------
*** Bug 76395 has been marked as a duplicate of this bug. ***

------- Comment #4 From SpanKY 2005-01-09 17:33:19 0000 -------
*** Bug 77291 has been marked as a duplicate of this bug. ***

------- Comment #5 From SpanKY 2005-01-09 17:50:03 0000 -------
blah, i mean this is a problem when using libsdl-1.2.8, but not libsdl-1.2.7

------- Comment #6 From SpanKY 2005-01-09 18:18:28 0000 -------
for sanity's sake, i verified this happens with gcc-3.3.5-r1 as well as
gcc-3.4.3-r1 ... i'll e-mail upstream

------- Comment #7 From SpanKY 2005-01-09 18:28:03 0000 -------
Created an attachment (id=48076) [edit]
SDL_endian-patch.h

any package that uses the SDL_Swap* funcs seem to be bombing

this is the cvs diff between 1.2.7 and 1.2.8 ... if some gcc guru's could track
down why these chunks of inline asm code fail under high optimizations, that'd
be cool :P

------- Comment #8 From SpanKY 2005-01-11 07:07:49 0000 -------
*** Bug 77513 has been marked as a duplicate of this bug. ***

------- Comment #9 From SpanKY 2005-01-11 18:41:20 0000 -------
seems to be a binutils issue, and the following tested broken :/
x86_64-pc-linux-gnu-2.15.90.0.1.1
x86_64-pc-linux-gnu-2.15.92.0.2
x86_64-pc-linux-gnu-2.15.94.0.2

------- Comment #10 From SpanKY 2005-01-12 06:34:33 0000 -------
*** Bug 77675 has been marked as a duplicate of this bug. ***

------- Comment #11 From Jose Ildefonso Camargo Tolosa 2005-01-12 15:36:43 0000 -------
I posted a bug on this (#77675), I got it working right by using -O0 compiler
flag.  So, I guess this have something to do with the optimizer.

------- Comment #12 From SpanKY 2005-01-13 15:20:16 0000 -------
*** Bug 77785 has been marked as a duplicate of this bug. ***

------- Comment #13 From SpanKY 2005-01-13 15:37:16 0000 -------
ok, they just merged a fix upstream in libsdl to fix this ... i'll post
libsdl-1.2.8-r1 shortly

------- Comment #14 From SpanKY 2005-01-13 16:59:11 0000 -------
try out 1.2.8-r1, that fixed it for me in a quick test of emerging sdl-mixer

------- Comment #15 From Gerald Normandin (RETIRED) 2005-01-13 18:03:04 0000 -------
* Failed Patch: 1.2.8-direct-8bit-color.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/libsdl-1.2.8-r1/temp/1.2.8-direct-8bit-color.patch-2934.out


Contents: 
***** 1.2.8-direct-8bit-color.patch *****

=========================================

PATCH COMMAND:  patch -p0 -g0 < /usr/portage/media-libs/libsdl/files/1.2.8-direct-8bit-color.patch

=========================================
patching file src/video/SDL_pixels.c
Hunk #1 FAILED at 22.
1 out of 3 hunks FAILED -- saving rejects to file src/video/SDL_pixels.c.rej
=========================================

PATCH COMMAND:  patch -p1 -g0 < /usr/portage/media-libs/libsdl/files/1.2.8-direct-8bit-color.patch

=========================================
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/video/SDL_pixels.c
|===================================================================
|RCS file: /home/sdlweb/libsdl.org/cvs/SDL12/src/video/SDL_pixels.c,v
|retrieving revision 1.12
|retrieving revision 1.13
|diff -u -r1.12 -r1.13
|--- src/video/SDL_pixels.c     30 Nov 2004 14:28:20 -0000      1.12
|+++ src/video/SDL_pixels.c     12 Jan 2005 19:38:24 -0000      1.13
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
=========================================

PATCH COMMAND:  patch -p2 -g0 < /usr/portage/media-libs/libsdl/files/1.2.8-direct-8bit-color.patch

=========================================
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/video/SDL_pixels.c
|===================================================================
|RCS file: /home/sdlweb/libsdl.org/cvs/SDL12/src/video/SDL_pixels.c,v
|retrieving revision 1.12
|retrieving revision 1.13
|diff -u -r1.12 -r1.13
|--- src/video/SDL_pixels.c     30 Nov 2004 14:28:20 -0000      1.12
|+++ src/video/SDL_pixels.c     12 Jan 2005 19:38:24 -0000      1.13
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
=========================================

PATCH COMMAND:  patch -p3 -g0 < /usr/portage/media-libs/libsdl/files/1.2.8-direct-8bit-color.patch

=========================================
missing header for unified diff at line 9 of patch
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
--------------------------
|Index: src/video/SDL_pixels.c
|===================================================================
|RCS file: /home/sdlweb/libsdl.org/cvs/SDL12/src/video/SDL_pixels.c,v
|retrieving revision 1.12
|retrieving revision 1.13
|diff -u -r1.12 -r1.13
|--- src/video/SDL_pixels.c     30 Nov 2004 14:28:20 -0000      1.12
|+++ src/video/SDL_pixels.c     12 Jan 2005 19:38:24 -0000      1.13
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
=========================================

PATCH COMMAND:  patch -p4 -g0 < /usr/portage/media-libs/libsdl/files/1.2.8-direct-8bit-color.patch

=========================================
missing header for unified diff at line 9 of patch
can't find file to patch at input line 9
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: src/video/SDL_pixels.c
|===================================================================
|RCS file: /home/sdlweb/libsdl.org/cvs/SDL12/src/video/SDL_pixels.c,v
|retrieving revision 1.12
|retrieving revision 1.13
|diff -u -r1.12 -r1.13
|--- src/video/SDL_pixels.c     30 Nov 2004 14:28:20 -0000      1.12
|+++ src/video/SDL_pixels.c     12 Jan 2005 19:38:24 -0000      1.13
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored

------- Comment #16 From Gerald Normandin (RETIRED) 2005-01-13 18:08:56 0000 -------
From IRC:
<SpanKY> [21:07] <CIA-4> vapier * gentoo-x86/media-libs/libsdl/files/ (1.2.8-amd64-endian.patch 1.2.8-direct-8bit-color.patch): remove cvs headers
<SpanKY> it's fixed you wanker

------- Comment #17 From SpanKY 2005-01-13 18:46:37 0000 -------
*** Bug 77922 has been marked as a duplicate of this bug. ***

------- Comment #18 From SpanKY 2005-06-13 08:43:00 0000 -------
*** Bug 95972 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug