Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

htop-osx error #12081

Closed
douglascamata opened this issue May 5, 2012 · 13 comments
Closed

htop-osx error #12081

douglascamata opened this issue May 5, 2012 · 13 comments

Comments

@douglascamata
Copy link

I just installed htop-osx and I got htop 0.8.2.1 aborted. Please report bug at http://htop.sf.net while trying to run htop. Using Xcode 4.3.2 and Mac OS X Lion.

@jacknagel
Copy link
Contributor

Please report this to htop-osx (this is a fork of htop).

@douglascamata
Copy link
Author

Just fixed by #12083.

@adamv
Copy link
Contributor

adamv commented May 10, 2012

Something about compiling with Clang is causing an abort when resizing the terminal window.

@douglascamata
Copy link
Author

@adamv can you try my patch from #12083 and give some feedback if it worked?

@jacknagel
Copy link
Contributor

I see this now when resizing; it appears to be an optimization issue, as this patch fixes it for me:

diff --git a/Library/Formula/htop-osx.rb b/Library/Formula/htop-osx.rb
index aa0bf8c..e61f84c 100644
--- a/Library/Formula/htop-osx.rb
+++ b/Library/Formula/htop-osx.rb
@@ -8,6 +8,7 @@ class HtopOsx < Formula
   depends_on "automake" => :build if MacOS.xcode_version.to_f >= 4.3

   def install
+    ENV.no_optimization if ENV.compiler == :clang
     system "./autogen.sh"
     system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
     system "make", "install", "DEFAULT_INCLUDES='-iquote .'"

@adamv
Copy link
Contributor

adamv commented May 16, 2012

255acfb

@adamv adamv closed this as completed May 16, 2012
@sirdharma
Copy link

This issue is still present with clang for me. brew install --use-gcc htop-osx fixed the issue.

$ brew --config                                                                                                               ~/Documents/Titanium_Studio_Workspace
HOMEBREW_VERSION: 0.9.3
HEAD: cee85750076b3ea47ec69cc8a02542eb3ee7c372
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.8.1-x86_64
Xcode: 4.4.1
CLT: 4.4.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.0 build 421
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

@artdevgame
Copy link

Found this if it's any use?
AndyA/htop-osx#2

@adamv
Copy link
Contributor

adamv commented Oct 8, 2012

Given that the bug has been open upstream for a year, looks like it is no longer being maintained.

@mistydemeo
Copy link
Member

A pull request to fix the bug was merged a year ago, but the issue was left dangling: AndyA/htop-osx#5

@firedev
Copy link

firedev commented Dec 2, 2012

I have this issue on Mountain Lion 10.8.2, brew install --use-gcc htop indeed solves it.

@Balauue
Copy link

Balauue commented Dec 5, 2012

sirdharma's suggenstion ( #12081 (comment) ) works for me (ML 10.8.2 / i7 / Early 2011) as well!

@cmhobbs
Copy link

cmhobbs commented Jan 31, 2013

sirdharma's fix worked for me as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants