First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 86481
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Matt Taylor <liverbugg@juno.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
1.2.8-gcc2-asm2.patch 1.2.8-gcc2-asm.patch patch Matt Taylor 2005-03-24 00:46 0000 14.66 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 86481 depends on: Show dependency tree
Bug 86481 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-03-24 00:45 0000
trying to link agains libsdl gives this:

/usr/lib/libSDL.so: undefined reference to `_MMX_UbluRGB'
/usr/lib/libSDL.so: undefined reference to `_MMX_Vred5x5'
/usr/lib/libSDL.so: undefined reference to `_MMX_VgrnRGB'
/usr/lib/libSDL.so: undefined reference to `_MMX_grn565'
/usr/lib/libSDL.so: undefined reference to `_MMX_VredRGB'
/usr/lib/libSDL.so: undefined reference to `_MMX_Vgrn565'
/usr/lib/libSDL.so: undefined reference to `_MMX_FF00w'
/usr/lib/libSDL.so: undefined reference to `_MMX_Ugrn565'
/usr/lib/libSDL.so: undefined reference to `_MMX_Ycoeff'
/usr/lib/libSDL.so: undefined reference to `_MMX_UgrnRGB'
/usr/lib/libSDL.so: undefined reference to `_MMX_00FFw'
/usr/lib/libSDL.so: undefined reference to `_MMX_red565'
/usr/lib/libSDL.so: undefined reference to `_MMX_0080w'
/usr/lib/libSDL.so: undefined reference to `_MMX_Ublu5x5'

This is because of the patch from bug 75392.  Better patch that works for both gcc2 and gcc3 follows.

------- Comment #1 From Matt Taylor 2005-03-24 00:46:55 0000 -------
Created an attachment (id=54317) [edit]
1.2.8-gcc2-asm.patch

from http://www.devolution.com/pipermail/sdl-cvs/2005-February/000767.html

------- Comment #2 From SpanKY 2005-03-24 15:40:38 0000 -------
added to portage, thanks :)

------- Comment #3 From Matt Taylor 2005-03-25 00:32:54 0000 -------
the logic to apply the old 1.2.8-gcc2-asm.patch only on gcc2 in the ebuild
should be removed as its no longer needed and it is broken if they are both
applied.

 * Applying libsdl-1.2.8-gcc2.patch.bz2 ...                               [ ok
]
 * Applying 1.2.8-keyrepeat.patch ...                                     [ ok
]
 * Applying 1.2.8-linux26.patch ...                                       [ ok
]
 * Applying 1.2.8-amd64-endian.patch ...                                  [ ok
]
 * Applying 1.2.8-gcc2-asm.patch ...

 * Failed Patch: 1.2.8-gcc2-asm.patch !
 *  ( /mnt/portage/portage/media-libs/libsdl/files/1.2.8-gcc2-asm.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *  
/mnt/portage/tmp/portage/libsdl-1.2.8-r1/temp/1.2.8-gcc2-asm.patch-31520.out


!!! ERROR: media-libs/libsdl-1.2.8-r1 failed.
!!! Function epatch, Line 402, Exitcode 0
!!! Failed Patch: 1.2.8-gcc2-asm.patch!

------- Comment #4 From SpanKY 2005-03-25 05:38:51 0000 -------
whoops, i didnt notice because i have gcc-2 :)

fixed in cvs, sorry about that

------- Comment #5 From Jon 2005-03-31 08:16:43 0000 -------
This patch causes the compile of libsdl-1.2.8-r1 to fail when compiling with
GCC 3.4.3. See this bug report:
http://bugs.gentoo.org/show_bug.cgi?id=87077

There is a fix that involves disabling a compile flag, but that is a hack for a
bad patch. This patch is flawed and needs fixing. I suggest disabling it for
gcc versions greater than 3.4.

------- Comment #6 From Matt Taylor 2005-03-31 16:39:18 0000 -------
Remove the volatiles added in the top section of the patch and it compiles with
-fforce-addr on gcc-3.4.3 (bug 87077) and still works with gcc2.

This patch is from upstream, and I don't know if they had a reason for adding
volatile or not, or if they support using -fforce-addr.

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