Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461520 - net-irc/hexchat - do we still need to force -O2 for sparc when -O3 is used?
Summary: net-irc/hexchat - do we still need to force -O2 for sparc when -O3 is used?
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc64 Linux
: Normal enhancement (vote)
Assignee: Denis M. (Phr33d0m)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 14:09 UTC by Denis M. (Phr33d0m)
Modified: 2013-03-31 15:17 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis M. (Phr33d0m) 2013-03-12 14:09:02 UTC
Hello sparc team, in the hexchat ebuild we have:

# Added for to fix a sparc seg fault issue by Jason Wever <weeve@gentoo.org>
if [[ ${ARCH} = sparc ]] ; then
        replace-flags "-O[3-9]" "-O2"
fi

Which we're carrying from the original xchat ebuild (as hexchat is a fork from xchat), and which I want to (possibly) remove from the ebuilds.

Could you test any of the ebuilds (preferibly 2.9.4) without that piece of code from the ebuild and with CFLAGS including -O3 and check if it still segfaults?

As hexchat has been under heavy development since it started, I believe the issue might have been fixed somewhere in between the code changes.

Thanks in advance.
Comment 1 Denis M. (Phr33d0m) 2013-03-12 14:21:40 UTC
Looking around when this 'fix' was added to the ebuild:

13 Aug 2003; Jason Wever <weeve@gentoo.org> xchat-2.0.3-r1.ebuild,
xchat-2.0.4.ebuild:
Added a replace-flags statement to hopefully fix a seg fault on sparcs.

Which is a bit surprising that it has been carried so many years. Which means that the problem could have been fixed even in the xchat's development years.

If there's no segfault in hexchat, I'd want to open a bug about this for xchat as well.
Comment 2 Julian Ospald 2013-03-31 15:17:55 UTC
+  31 Mar 2013; Julian Ospald <hasufell@gentoo.org> hexchat-2.9.4-r1.ebuild:
+  remove -O3 hack wrt #461520
+


hacks need to be removed from time to time

@sparc team: reopen if still present and I will add it again