Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22683 - SDL-1.2.5-r1 fails to compile under GCC 3.3
Summary: SDL-1.2.5-r1 fails to compile under GCC 3.3
Status: RESOLVED DUPLICATE of bug 21808
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-12 09:58 UTC by Cliff L. Biffle
Modified: 2011-10-30 22:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch; fixes the build for me. (src-video-SDL_stretch.c.patch,372 bytes, patch)
2003-06-12 10:01 UTC, Cliff L. Biffle
Details | Diff
Patch; fixes the build for me. (src-video-SDL_stretch.c.patch,372 bytes, patch)
2003-06-12 10:02 UTC, Cliff L. Biffle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cliff L. Biffle 2003-06-12 09:58:01 UTC
SDL-1.2.5 (from the media-libs/libsdl ebuild) fails to compile on my system after an 
upgrade to GCC 3.3.  The problem is easily resolved, and appears to be a change in 
how GCC handles multiline string literals. 
 
The specifics: the x86 asm stretch routine is written as a three-line string literal 
__asm__ declaration.  GCC croaks on this.  Flattening it to one line works great. 

Reproducible: Always
Steps to Reproduce:
1. Upgrade to gcc 3.3. 
2. `emerge libsdl` 
3. Profit! 
Actual Results:  
Parse error, unterminated string constant. 

Expected Results:  
...worked? :-)  I'm so used to everything in Gentoo 'Just Work'-ing. 

Gentoo 1.4_rc4 
GCC 3.3, from the ebuild 
emerge sync'd yesterday.
Comment 1 Cliff L. Biffle 2003-06-12 10:01:54 UTC
Created attachment 13160 [details, diff]
Patch; fixes the build for me.

This patch simply condenses the asm call to a single line.  This fixes the
build under GCC 3.3 for me.
Comment 2 Cliff L. Biffle 2003-06-12 10:02:45 UTC
Created attachment 13161 [details, diff]
Patch; fixes the build for me.

This patch simply condenses the asm call to a single line.  This fixes the
build under GCC 3.3 for me.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-06-25 14:34:55 UTC

*** This bug has been marked as a duplicate of 21808 ***