Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300470 - sys-libs/ncurses-5.7-r3 build failure on x86 due to nonsense build settings
Summary: sys-libs/ncurses-5.7-r3 build failure on x86 due to nonsense build settings
Status: RESOLVED DUPLICATE of bug 184722
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-10 17:26 UTC by Rick Farina (Zero_Chaos)
Modified: 2010-01-11 04:08 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,302.02 KB, text/plain)
2010-01-10 17:27 UTC, Rick Farina (Zero_Chaos)
Details
emerge-info (emerge-info,11.78 KB, text/plain)
2010-01-10 17:34 UTC, Rick Farina (Zero_Chaos)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Farina (Zero_Chaos) gentoo-dev 2010-01-10 17:26:52 UTC
Can't build sys-libs/ncurses-5.7-r3

Reproducible: Always

Steps to Reproduce:
1.try to upgrade ncurses
2.watch it fail
3.not error of -pg being incompatible with -fomit-frame-pointer

Actual Results:  
Gcc tells me I suck

Expected Results:  
success

This should have been a blocker of 299159 stabilization request....
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2010-01-10 17:27:54 UTC
Created attachment 216002 [details]
build.log
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2010-01-10 17:34:35 UTC
Created attachment 216005 [details]
emerge-info
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2010-01-10 18:00:35 UTC
Never ever cc anyone yourself...this just makes the whole wrangling system absurd.

From your build.log:
i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible

base-system: -fomit-frame-pointer should be filtered or -pg excluded.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2010-01-10 18:03:11 UTC
Sorry, wrong resolution.

*** This bug has been marked as a duplicate of bug 184722 ***
Comment 5 Rick Farina (Zero_Chaos) gentoo-dev 2010-01-10 21:59:40 UTC
(In reply to comment #3)
> Never ever cc anyone yourself...this just makes the whole wrangling system
> absurd.
> 
many apologies, it will not happen again.

> From your build.log:
> i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible
> 
> base-system: -fomit-frame-pointer should be filtered or -pg excluded.
> 

Comment 6 Rick Farina (Zero_Chaos) gentoo-dev 2010-01-10 22:02:32 UTC
(In reply to comment #4)
> Sorry, wrong resolution.
> 
> *** This bug has been marked as a duplicate of bug 184722 ***
> 

For those of you reading this bug let me save you reading through a bunch of garbage to find the solution.

Remove profile use flag or remove -fomit-frame-pointer cflag.  Personally, I'm removing the use flag.

Why EVERY OTHER GENTOO PACKAGE builds fine like this and ncurses doesn't is completely unknown to me. But hey, they aren't going to fix it for you so do it yourself.  Don't think I ever used profiling, and -fomit-frame-pointer is default cflags for x86 so the choice is clear enough for me.
Comment 7 SpanKY gentoo-dev 2010-01-10 22:15:03 UTC
stupid user configurations result in a build failure.  not an ncurses bug.
Comment 8 Rick Farina (Zero_Chaos) gentoo-dev 2010-01-10 23:20:40 UTC
Okay, I'm sorry to do this because it's 75% chance of me getting shut down and yelled at, BUT....

Instead of giving the users a gcc error and watching more needless bugs get opened for, and I grant, obvious user stupidity... maybe we could educate our users?

use profile && has -fomit-frame-pointer ${CFLAGS}; then die "You can't use -fomit-frame-pointer and use=profile. Ever. How are you still breathing with an IQ so low?"; fi

Adding a stanza like this to ncurses would not just silently filter out user stupidity, but would actively cause the users to educate themselves.  Having gcc bug out about a bad setup, user fault or not, is going to cause more noise on the bug tracker and more user pain.

Please seriously consider adding this to sys-libs/ncurses.

Even better, you could make all the other ebuilds stop just filtering the flag and educate users there too:

media-sound/mpd/mpd-0.15.6.ebuild
xfce-base/xfce4-session/xfce4-session-4.6.1-r1.ebuild
xfce-base/xfconf/xfconf-4.6.1-r1.ebuild
net-analyzer/wireshark/wireshark-1.2.5.ebuild

I'm fine with not correcting stupidity, but we should handle this per ebuild or throw it in an eclass.  Filtering for user stupidity is bad, and that's the way most ebuilds handle this.  Leaving users in the dark with a gcc error and closing tickets with comments which can be summed up with the word "moron" is even less useful.  Can we PLEASE do something constructive for this issue?
Comment 9 Rick Farina (Zero_Chaos) gentoo-dev 2010-01-10 23:25:42 UTC
Apologies, correct syntax for fix is:

use profile && has -fomit-frame-pointer ${CFLAGS} && die "You can't use
-fomit-frame-pointer and use=profile. Ever. How are you still breathing with an
IQ so low?"
Comment 10 SpanKY gentoo-dev 2010-01-11 04:08:59 UTC
it's still a dupe, and those packages shouldnt be filtering.  i'll put something in profile.bashrc.

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