Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184722 - sys-libs/ncurses-5.6-r2 doesn't compile with -fomit-frame-pointer
Summary: sys-libs/ncurses-5.6-r2 doesn't compile with -fomit-frame-pointer
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 185065 185861 186963 189894 195134 196203 203700 204936 205719 210170 223719 238456 285268 285473 294122 300470 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-09 11:54 UTC by Marek Sapota
Modified: 2010-01-11 04:08 UTC (History)
17 users (show)

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


Attachments
emerge --info (info,8.45 KB, text/plain)
2007-07-09 18:39 UTC, Marek Sapota
Details
filter -fomit-frame-pointer (filter_-fomit-frame-pointer.patch,543 bytes, patch)
2007-08-23 17:08 UTC, Christopher Covington
Details | Diff
filter -fomit-frame-pointer (filter_-fomit-frame-pointer.patch,543 bytes, patch)
2007-08-23 17:08 UTC, Christopher Covington
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Sapota 2007-07-09 11:54:27 UTC
Emerge says that --pg option is incompatible with --fomit-frame-pointer option.

Reproducible: Always

Steps to Reproduce:
1. emerge ncurses with --fomit-frame-pointer cflag
2.
3.
Comment 1 Kevin Lacquement 2007-07-09 15:41:44 UTC
Um...5.6-r2 of what package?  Might be some useful info to have.
Comment 2 Marek Sapota 2007-07-09 17:16:37 UTC
(In reply to comment #1)
> Um...5.6-r2 of what package?  Might be some useful info to have.
> 

ncurses, sorry, I must have cut it accidentally.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-09 18:28:58 UTC
Please, post some errors, emerge --info and emerge -pv ncurses output.
Comment 4 Marek Sapota 2007-07-09 18:37:50 UTC
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-libs/ncurses-5.6-r2  USE="gpm profile unicode -bootstrap -build -debug -doc -minimal -nocxx -trace" 0 kB

----------------------

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/ncurses -I/var/tmp/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/ncurses/../include -I. -I../include  -D_GNU_SOURCE -DXTSTRINGDEFINES -DNDEBUG -O2 -march=prescott -pipe -fomit-frame-pointer  -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wwrite-strings -pg -c /var/tmp/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/ncurses/tty/hashmap.c -o ../obj_p/hashmap.o
i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible
make[1]: *** [../obj_p/hardscroll.o] Error 1
make[1]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible
make[1]: *** [../obj_p/hashmap.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-libs/ncurses-5.6-r2/work/narrowc/ncurses'
make: *** [all] Error 2
 *
 * ERROR: sys-libs/ncurses-5.6-r2 failed.
 * Call stack:
 *   ebuild.sh, line 1647:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ncurses-5.6-r2.ebuild, line 49:   Called do_compile
 *   ncurses-5.6-r2.ebuild, line 102:   Called die
 *
 * make failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/ncurses-5.6-r2/temp/build.log'.
 *
Comment 5 Marek Sapota 2007-07-09 18:39:45 UTC
Created attachment 124348 [details]
emerge --info
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-09 19:31:58 UTC
And reopen this bug. I can confirm it.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-07-09 19:33:49 UTC
Reopen.
Comment 8 SpanKY gentoo-dev 2007-07-09 20:10:01 UTC
error looks pretty self explanatory to me:
i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible

you honestly cannot expect USE=profile to work when you have -fomit-frame-pointer in your CFLAGS
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-09 20:46:29 UTC
Does USE="profile" only adds -pg?
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-07-12 13:17:59 UTC
*** Bug 185065 has been marked as a duplicate of this bug. ***
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-07-19 11:54:37 UTC
*** Bug 185861 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-07-29 06:27:50 UTC
*** Bug 186963 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-08-23 05:58:17 UTC
*** Bug 189894 has been marked as a duplicate of this bug. ***
Comment 14 Christopher Covington 2007-08-23 17:08:19 UTC
Created attachment 128975 [details, diff]
filter -fomit-frame-pointer

I have no clue what USE=profile or -pg mean but filtering out -fomit-frame-pointer fixed the problem for me.
Comment 15 Christopher Covington 2007-08-23 17:08:41 UTC
Created attachment 128977 [details, diff]
filter -fomit-frame-pointer

I have no clue what USE=profile or -pg mean but filtering out -fomit-frame-pointer fixed the problem for me.
Comment 16 SpanKY gentoo-dev 2007-08-23 18:08:46 UTC
if you have no clue what USE=profile is, then why exactly did you put it into your make.conf
Comment 17 Christopher Covington 2007-08-24 01:03:53 UTC
(In reply to comment #16)
> if you have no clue what USE=profile is, then why exactly did you put it into
> your make.conf
> 

Because I thought it had something to do with Gentoo's profiles, not program profiling (a number of USE flag descriptions are inadequate).
Comment 18 SpanKY gentoo-dev 2007-08-25 17:02:49 UTC
it's easy to complain something sucks, why dont you try suggesting something that is clearer
Comment 19 Christopher Covington 2007-08-27 17:34:15 UTC
(In reply to comment #18)
> it's easy to complain something sucks, why dont you try suggesting something
> that is clearer
> 

Thanks for reminding me to turn my annoyance into something productive. #190431.
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2007-10-08 19:00:06 UTC
*** Bug 195134 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2007-10-17 19:30:52 UTC
*** Bug 196203 has been marked as a duplicate of this bug. ***
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2007-12-29 21:56:12 UTC
*** Bug 203700 has been marked as a duplicate of this bug. ***
Comment 23 Isaac ‘Will It Work’ Dansicker 2008-01-03 22:11:17 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > it's easy to complain something sucks, why dont you try suggesting something
> > that is clearer
> > 
> 
> Thanks for reminding me to turn my annoyance into something productive.
> #190431.
> 

Mmm, and made me realize since I'm doing very little profiling, I can remove the use flag.  Interesting to note that glibc with profile still compiles without frame pointers.  I guess it's actually not using the profiling option in the compiler.
Comment 24 SpanKY gentoo-dev 2008-01-04 05:19:07 UTC
glibc is special ... it builds a different set of libraries used only for profiling
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2008-01-08 21:59:45 UTC
*** Bug 204936 has been marked as a duplicate of this bug. ***
Comment 26 Denis Misiurca 2008-01-08 22:51:59 UTC
In Bug 204936 the message from gcc is hidden in the configure log, and this is not a user-friendly behavior.

If you know that these flags are incompatible, why not just 'filter-flags' one of them?
Comment 27 SpanKY gentoo-dev 2008-01-09 00:41:47 UTC
having USE=profile and CFLAGS=-fomit-frame-pointer makes no sense.  the fact that ncurses dies while others do not is largely irrelevant ... the combination makes no sense for any package.
Comment 28 jieryn 2008-01-09 00:49:14 UTC
Can we please just use profile && filter-flag -fomit-frame-pointer then? Perhaps that isn't the best long term solution, but it would at least solve the immediate problem.
Comment 29 SpanKY gentoo-dev 2008-01-09 01:02:18 UTC
it wouldnt solve anything.  it'd allow people to continue on using wrong combinations and thinking it's ok.
Comment 30 jieryn 2008-01-09 01:10:03 UTC
Why bother having filter-flags at all then? If we cared about teaching people how to maintain their system, then this function would be useless. Since portage doesn't easily allow custom cflags on a per-package basis, and it certainly doesn't do this out of the box, we *NEED* to sanitize the environment for the user!

Please apply Keyword: QAbaddie
Comment 31 Mark Loeser (RETIRED) gentoo-dev 2008-01-09 01:26:11 UTC
There are lots of stupid combinations of CFLAGS.  We don't step in when a user sets USE=debug and compiles with crazy optimizations that make debug info useless.  This is something that documenting the USE flag better would resolve, and there are already several bugs open about that.  Searching bugzilla quick will turn up those bugs.
Comment 32 Isaac ‘Will It Work’ Dansicker 2008-01-10 03:19:32 UTC
(In reply to comment #30)
> Why bother having filter-flags at all then? If we cared about teaching people
> how to maintain their system, then this function would be useless. 

Personally, one of the reasons I like to run Gentoo is because I like to be edgy.  So being kicked out to do some research, to me is a good thing.  But that doesn't mean I'm a guru, or I can program like a cool person.  Filter flags is a good way to remove build-breaking options being done, so I can still run my website while I've broken something.

(In reply to comment #31)
>We don't step in when a user sets USE=debug and compiles with crazy
> optimizations that make debug info useless.

Right.  Personally, for an end-user, I would keep leaving out frame pointers, and remove profile.  Bt that's just me.
Comment 33 Jakub Moc (RETIRED) gentoo-dev 2008-01-13 23:31:58 UTC
*** Bug 205719 has been marked as a duplicate of this bug. ***
Comment 34 Jakub Moc (RETIRED) gentoo-dev 2008-02-14 19:18:59 UTC
*** Bug 210170 has been marked as a duplicate of this bug. ***
Comment 35 arthur_torrey 2008-02-14 23:24:08 UTC
Sorry for the duplicate bug filing, I don't know why this one didn't show up when I searched on "ncurses" before filing 210170.  If it had I would have added my report here.

I would agree on the previous comments about the inadequacy of the current USE flag documentation.  This has been something I've felt for a long time, but in the past when I suggested that better docs were needed, and volunteered to try and help, I got shot down on the basis of "how much help do you need?" - or as it felt "screw you if you ain't l33t!"

At any rate, I did find that another work-around is to add -profile to an ncurses entry in /etc/portage/package.use - it solved the problem this time, though I may now go back and take the profile flag out of my make.conf.

ART / Gooserider
Comment 36 SpanKY gentoo-dev 2008-05-31 07:29:24 UTC
*** Bug 223719 has been marked as a duplicate of this bug. ***
Comment 37 Harald van Dijk (RETIRED) gentoo-dev 2008-09-23 20:09:08 UTC
*** Bug 238456 has been marked as a duplicate of this bug. ***
Comment 38 Harald van Dijk (RETIRED) gentoo-dev 2009-09-19 10:47:08 UTC
*** Bug 285473 has been marked as a duplicate of this bug. ***
Comment 39 Harald van Dijk (RETIRED) gentoo-dev 2009-09-19 10:50:13 UTC
*** Bug 285268 has been marked as a duplicate of this bug. ***
Comment 40 Marcin Mirosław 2009-09-19 13:48:55 UTC
Please tell mi what is going on. This bug is opened since 2007.07. It's more than 2 years! Situations like this is shame. You are quarreling "user should think" or "user schould has *working* system". Yes, root-user always should think, but when user can't upgrade package hi is irritated. Not every one is programer and knows -fomit-frame-pointer can't be used with "profile". The main goal is *working system*. I saw two propositions in this bug:
- do nothing
- filter flag (there is many ebuilds filtering -fomit..)
My proposal is einfo "you can't have both USE="profile" and CFLAGS="-fomit-frame-pointer""
Please, choose second option, third, ninth, but choose something, and let ncurses compile cleanly or let user know why hi/she can not compile this package.
Comment 41 Ryan Hill (RETIRED) gentoo-dev 2009-11-23 01:02:10 UTC
*** Bug 294122 has been marked as a duplicate of this bug. ***
Comment 42 Christian Faulhammer (RETIRED) gentoo-dev 2010-01-10 18:03:11 UTC
*** Bug 300470 has been marked as a duplicate of this bug. ***
Comment 43 SpanKY gentoo-dev 2010-01-11 04:08:59 UTC
*** Bug 300470 has been marked as a duplicate of this bug. ***