Bug 15754 - media-libs/imlib2-1.0.6(-r1) doesn't compile with -fomit-frame-pointer
Bug#: 15754 Product:  Gentoo Linux Version: 1.4_rc2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: seemant@gentoo.org Reported By: mckenna@cs.dal.ca
Component: Ebuilds
URL: 
Summary: media-libs/imlib2-1.0.6(-r1) doesn't compile with -fomit-frame-pointer
Keywords:  
Status Whiteboard: 
Opened: 2003-02-15 14:26 0000
Description:   Opened: 2003-02-15 14:26 0000
I get the standard error I take to mean that -fomit-frame-pointer won't work in
a given case when I try to install this package (a dependency for 3ddesktop).

After removing the flag, the package emerges perfectly.

I'll attach an ebuild, imlib2-1.0.6-r2, which solves the issue using flag-o-matic.

Reproducible: Didn't try
Steps to Reproduce:
1. CFLAGS=${CFLAGS} -fomit-frame-pointer
2. emerge it.
3.

Actual Results:  
Addressing error in the linking (I think) portion of the compile process

Expected Results:  
worked ;P

------- Comment #1 From Mark McKenna 2003-02-15 14:33:07 0000 -------
Created an attachment (id=8312) [details]
Updated ebuild for -fomit-frame-pointer error (and USE=static compatibility)

------- Comment #2 From Seemant Kulleen (RETIRED) 2003-02-15 22:59:16 0000 -------
do your -march flags have "k6" in them by any chance?

------- Comment #3 From Mark McKenna 2003-02-26 18:25:31 0000 -------
-march=k6-2, actually.  I'll change the patch and have it check for this flag,
and strip -fomit-frame-pointer only if it finds it.

I've also done this for the jpeg-mmx package.

------- Comment #4 From Mark McKenna 2003-02-26 18:30:35 0000 -------
Created an attachment (id=8752) [details]
#2: Updated ebuild for -fomit-frame-pointer on k6-2 error

------- Comment #5 From Seemant Kulleen (RETIRED) 2003-02-28 19:55:51 0000 -------
curious -- what happens with -march=i586 -fomit-frame-pointer?

------- Comment #6 From Simon ARNAUD 2003-03-05 03:45:26 0000 -------
Failed also here with march=k6-2 and fomit-frame-pointer
Worked with march=i586 and fomit-frame-pointer

Also had -Os -pipe

------- Comment #7 From Seemant Kulleen (RETIRED) 2003-03-09 09:30:51 0000 -------
fixed in portage.