Skip to content

Instantly share code, notes, and snippets.

@mhubig
Created June 5, 2012 13:39
Show Gist options
  • Save mhubig/2875057 to your computer and use it in GitHub Desktop.
Save mhubig/2875057 to your computer and use it in GitHub Desktop.
Homebrew, Shiboken 1.1.0 compile error on Mac OSX
brew install -v shiboken
==> Downloading http://pyside.org/files/shiboken-1.1.0.tar.bz2
Already downloaded: /Users/mhubig/Library/Caches/Homebrew/shiboken-1.1.0.tar.bz2
/usr/bin/tar xf /Users/mhubig/Library/Caches/Homebrew/shiboken-1.1.0.tar.bz2
==> cmake . -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/shiboken/1.1.0 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev
cmake . -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/shiboken/1.1.0 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev
-- The C compiler identification is Clang 3.1.0
-- The CXX compiler identification is Clang 3.1.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found suitable version "4.8.2", required is "4.5.0")
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found suitable version "2.7.1", required is "2.6")
-- sphinx-build - not found! doc target disabled
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0
==> make install
make install
Scanning dependencies of target libshiboken
Scanning dependencies of target shiboken_generator
[ 5%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.o
[ 10%] Building CXX object generator/CMakeFiles/shiboken_generator.dir/cppgenerator.cpp.o
In file included from /tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:23:
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.h:87:5: error: unknown type name
'PyHeapTypeObject'; did you mean 'PyTypeObject'?
PyHeapTypeObject super;
^~~~~~~~~~~~~~~~
PyTypeObject
/usr/local/include/object.h:322:3: note: 'PyTypeObject' declared here
} PyTypeObject;
^
In file included from /tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:25:
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/sbkconverter.h:337:26: error: unknown type name
'PyHeapTypeObject'; did you mean 'PyTypeObject'?
struct _SbkGenericType { PyHeapTypeObject super; SbkConverter** converter; };
^~~~~~~~~~~~~~~~
PyTypeObject
/usr/local/include/object.h:322:3: note: 'PyTypeObject' declared here
} PyTypeObject;
^
In file included from /tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:28:
In file included from /tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/typeresolver.h:27:
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/conversions.h:363:35: error: use of undeclared identifier
'PyInt_AsUnsignedLongLongMask'; did you mean 'PyLong_AsUnsignedLongLongMask'?
PY_LONG_LONG result = PyInt_AsUnsignedLongLongMask(pyobj);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
PyLong_AsUnsignedLongLongMask
/usr/local/include/pypy_decl.h:180:27: note: 'PyLong_AsUnsignedLongLongMask' declared here
PyAPI_FUNC(unsigned long) PyLong_AsUnsignedLongLongMask(PyObject *arg0);
^
In file included from /tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:28:
In file included from /tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/typeresolver.h:27:
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/conversions.h:399:35: error: use of undeclared identifier
'PyInt_AsUnsignedLongLongMask'; did you mean 'PyLong_AsUnsignedLongLongMask'?
PY_LONG_LONG result = PyInt_AsUnsignedLongLongMask(pyobj);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
PyLong_AsUnsignedLongLongMask
/usr/local/include/pypy_decl.h:180:27: note: 'PyLong_AsUnsignedLongLongMask' declared here
PyAPI_FUNC(unsigned long) PyLong_AsUnsignedLongLongMask(PyObject *arg0);
^
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:156:27: error: excess elements in scalar
initializer
PyVarObject_HEAD_INIT(&SbkObjectType_Type, 0)
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/object.h:31:21: note: expanded from macro 'PyVarObject_HEAD_INIT'
PyObject_HEAD_INIT(type) size,
^
/usr/local/include/object.h:28:5: note: expanded from macro 'PyObject_HEAD_INIT'
1, type,
^~~~
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:246:5: error: use of undeclared identifier
'Py_TRASHCAN_SAFE_BEGIN'
Py_TRASHCAN_SAFE_BEGIN(pyObj);
^
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:259:5: error: use of undeclared identifier
'Py_TRASHCAN_SAFE_END'
Py_TRASHCAN_SAFE_END(pyObj);
^
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:693:21: error: no member named 'ht_type' in
'_typeobject'; did you mean 'ob_type'?
type->super.ht_type.tp_base = (PyTypeObject*)baseType;
^~~~~~~
ob_type
/usr/local/include/object.h:244:2: note: 'ob_type' declared here
PyObject_VAR_HEAD
^
/usr/local/include/object.h:24:2: note: expanded from macro 'PyObject_VAR_HEAD'
PyObject_HEAD \
^
/usr/local/include/object.h:21:25: note: expanded from macro 'PyObject_HEAD'
struct _typeobject *ob_type;
^
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:693:28: error: member reference type
'struct _typeobject *' is a pointer; maybe you meant to use '->'?
type->super.ht_type.tp_base = (PyTypeObject*)baseType;
~~~~~~~~~~~~~~~~~~~^
->
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:697:25: error: no member named 'ht_type' in
'_typeobject'; did you mean 'ob_type'?
type->super.ht_type.tp_bases = baseTypes;
^~~~~~~
ob_type
/usr/local/include/object.h:244:2: note: 'ob_type' declared here
PyObject_VAR_HEAD
^
/usr/local/include/object.h:24:2: note: expanded from macro 'PyObject_VAR_HEAD'
PyObject_HEAD \
^
/usr/local/include/object.h:21:25: note: expanded from macro 'PyObject_HEAD'
struct _typeobject *ob_type;
^
/tmp/homebrew-shiboken-1.1.0-iVcP/shiboken-1.1.0/libshiboken/basewrapper.cpp:697:32: error: member reference type
'struct _typeobject *' is a pointer; maybe you meant to use '->'?
type->super.ht_type.tp_bases = baseTypes;
~~~~~~~~~~~~~~~~~~~^
->
11 errors generated.
make[2]: *** [libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.o] Error 1
make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 15%] Building CXX object generator/CMakeFiles/shiboken_generator.dir/headergenerator.cpp.o
[ 20%] Building CXX object generator/CMakeFiles/shiboken_generator.dir/overloaddata.cpp.o
[ 25%] Building CXX object generator/CMakeFiles/shiboken_generator.dir/shiboken.cpp.o
[ 30%] Building CXX object generator/CMakeFiles/shiboken_generator.dir/shibokengenerator.cpp.o
[ 35%] Building CXX object generator/CMakeFiles/shiboken_generator.dir/shibokennormalize.cpp.o
Linking CXX shared library shiboken_generator.dylib
[ 35%] Built target shiboken_generator
make: *** [all] Error 2
CMakeCache.txt was copied to /Users/mhubig/Library/Logs/Homebrew
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/shiboken.rb#L15
==> Build Environment
CPU: dual-core 64-bit penryn
MacOS: 10.7.4-x86_64
Xcode: 4.3.2
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j2
Error: Failed executing: make install (shiboken.rb:15)
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/reporting-bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment