Skip to content

Instantly share code, notes, and snippets.

@ZoomQuiet
Created December 23, 2011 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZoomQuiet/1513373 to your computer and use it in GitHub Desktop.
Save ZoomQuiet/1513373 to your computer and use it in GitHub Desktop.
mac 10.7 brew install pyqt error
==> Downloading http://127.0.0.1:8000/PyQt-mac-gpl-4.8.6.tar.gz
File already downloaded in /Users/zoomq/Library/Caches/Homebrew
==> python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.8.6/bin --destdir=/usr/local/Cella
==> make
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.0/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/include -I/usr/local/Cellar/sip/4.12.4/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I../../QtOpenGL -I. -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -F/usr/local/Cellar/qt/4.8.0/lib -o qpyopengl_attribute_array.o qpyopengl_attribute_array.cpp
In file included from /usr/include/c++/4.2.1/ios:47,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qlist.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qobject.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtGui/qwidget.h:46,
from /usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h:45,
from qpyopengl_attribute_array.cpp:33:
/usr/include/c++/4.2.1/bits/localefwd.h:58:34: error: macro "isspace" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:70:34: error: macro "isupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:74:34: error: macro "islower" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:78:34: error: macro "isalpha" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:94:34: error: macro "isalnum" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:102:34: error: macro "toupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/localefwd.h:106:34: error: macro "tolower" passed 2 arguments, but takes just 1
In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
from /usr/include/c++/4.2.1/ios:50,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qlist.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qobject.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtGui/qwidget.h:46,
from /usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h:45,
from qpyopengl_attribute_array.cpp:33:
/usr/include/c++/4.2.1/bits/locale_facets.h:245:53: error: macro "toupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:274:53: error: macro "tolower" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:817:53: error: macro "toupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:850:53: error: macro "tolower" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4614:44: error: macro "isspace" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4632:44: error: macro "isupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4638:44: error: macro "islower" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4644:44: error: macro "isalpha" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4668:44: error: macro "isalnum" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4680:44: error: macro "toupper" passed 2 arguments, but takes just 1
/usr/include/c++/4.2.1/bits/locale_facets.h:4686:44: error: macro "tolower" passed 2 arguments, but takes just 1
In file included from /usr/include/c++/4.2.1/ios:47,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qlist.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qobject.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtGui/qwidget.h:46,
from /usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h:45,
from qpyopengl_attribute_array.cpp:33:
/usr/include/c++/4.2.1/bits/localefwd.h:58: error: ‘std::isspace’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:58: error: template declaration of ‘bool std::isspace’
/usr/include/c++/4.2.1/bits/localefwd.h:70: error: ‘std::isupper’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:70: error: template declaration of ‘bool std::isupper’
/usr/include/c++/4.2.1/bits/localefwd.h:74: error: ‘std::islower’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:74: error: template declaration of ‘bool std::islower’
/usr/include/c++/4.2.1/bits/localefwd.h:78: error: ‘std::isalpha’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:78: error: template declaration of ‘bool std::isalpha’
/usr/include/c++/4.2.1/bits/localefwd.h:94: error: ‘std::isalnum’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:94: error: template declaration of ‘bool std::isalnum’
/usr/include/c++/4.2.1/bits/localefwd.h:102: error: ‘std::toupper’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:102: error: template declaration of ‘_CharT std::toupper’
/usr/include/c++/4.2.1/bits/localefwd.h:106: error: ‘std::tolower’ declared as an ‘inline’ variable
/usr/include/c++/4.2.1/bits/localefwd.h:106: error: template declaration of ‘_CharT std::tolower’
In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
from /usr/include/c++/4.2.1/ios:50,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qlist.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtCore/qobject.h:50,
from /usr/local/Cellar/qt/4.8.0/include/QtGui/qwidget.h:46,
from /usr/local/Cellar/qt/4.8.0/lib/QtOpenGL.framework/Versions/4/Headers/qgl.h:45,
from qpyopengl_attribute_array.cpp:33:
/usr/include/c++/4.2.1/bits/locale_facets.h:230: error: ‘btowc’ is not a type
/usr/include/c++/4.2.1/bits/locale_facets.h:245: error: expected ‘;’ before ‘const’
/usr/include/c++/4.2.1/bits/locale_facets.h:258: error: expected `;' before ‘char_type’
/usr/include/c++/4.2.1/bits/locale_facets.h:259: error: ‘btowc’ is not a type
/usr/include/c++/4.2.1/bits/locale_facets.h:274: error: expected ‘;’ before ‘const’
/usr/include/c++/4.2.1/bits/locale_facets.h:290: error: expected `;' before ‘char_type’
/usr/include/c++/4.2.1/bits/locale_facets.h: In member function ‘_CharT std::__ctype_abstract_base<_CharT>::towupper(int (*)(_CharT)) const’:
/usr/include/c++/4.2.1/bits/locale_facets.h:231: error: ‘__c’ was not declared in this scope
/usr/include/c++/4.2.1/bits/locale_facets.h: In member function ‘_CharT std::__ctype_abstract_base<_CharT>::towlower(int (*)(_CharT)) const’:
/usr/include/c++/4.2.1/bits/locale_facets.h:260: error: ‘__c’ was not declared in this scope
/usr/include/c++/4.2.1/bits/locale_facets.h: At global scope:
/usr/include/c++/4.2.1/bits/locale_facets.h:800: error: ‘btowc’ is not a type
/usr/include/c++/4.2.1/bits/locale_facets.h:817: error: expected ‘;’ before ‘const’
/usr/include/c++/4.2.1/bits/locale_facets.h:832: error: expected `;' before ‘char_type’
/usr/include/c++/4.2.1/bits/locale_facets.==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/pyqt.rb#L22
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: ad135faa9637cb2c2a9ef157a2ede92335afb727
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: 8-core 64-bit sandybridge
OS X: 10.7.2
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.2.1
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.0-211.12
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -w -pipe -march=core2 -msse4
CXXFLAGS: -O3 -w -pipe -march=core2 -msse4
MAKEFLAGS: -j8
Error: Failed executing: make
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/8182
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment