-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: command 'gcc' failed with exit status 1 #9
Comments
Cython version 0.14.1 cc1plus: warning: command line option â-Wstrict-prototypesâ is valid for C/ObjC but not for C++ [enabled by default] Any Idea ,? |
What revision of openzwave are you compiling against? |
latest version from http://code.google.com/p/open-zwave/source/checkout |
Ok, I will check it out.. |
Please compile using Cython 0.16 instead of 0.17.. not sure what Cython changed but it works with 0.16 and not with 0.17. |
I can confirm this is still an issue with Cython 0.19. Installing Cython 0.16 did not fix the issue. This is against openzwave r661. Pyhton packages: $ pip freeze
Cython==0.16
Mako==0.8.0
MarkupSafe==0.15
Twisted==13.0.0
TxScheduling==1.1
argparse==1.2.1
pyzmq==13.1.0
txZMQ==0.6.2
wsgiref==0.1.2
zope.interface==4.0.5 Error Output $ python setup.py build
running build
running build_ext
skipping 'openzwave.cpp' Cython extension (up-to-date)
building 'openzwave' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iopenzwave/cpp/src -Iopenzwave/cpp/src/value_classes -Iopenzwave/cpp/src/platform -I/usr/include/python2.7 -c openzwave.cpp -o build/temp.linux-x86_64-2.7/openzwave.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from openzwave/cpp/src/Notification.h:32:0,
from openzwave.cpp:310:
/usr/include/c++/4.7/bits/stl_pair.h: In instantiation of ‘std::pair<_T1, _T2>::pair() [with _T1 = long unsigned int; _T2 = OpenZWave::ValueID]’:
openzwave.cpp:1880:42: required from here
openzwave/cpp/src/value_classes/ValueID.h:244:3: error: ‘OpenZWave::ValueID::ValueID()’ is private
In file included from /usr/include/c++/4.7/utility:72:0,
from openzwave.cpp:300:
/usr/include/c++/4.7/bits/stl_pair.h:101:25: error: within this context
error: command 'gcc' failed with exit status 1 |
Some more info from upstream openzwave. https://code.google.com/p/open-zwave/issues/detail?id=26 The "fix" listed here worked for me. https://groups.google.com/forum/#!msg/openzwave/GbCnNAo82FU/D4nUBWm4rXUJ Not sure what ValueID is used for, or if it's a bug upstream that it's now private or not. |
hi,
Cython version 0.17.2
python setup.py build
Return :
openzwave.cpp:7181: warning: comparison between signed and unsigned integer expressions
In file included from /usr/include/c++/4.4/utility:63,
from openzwave.cpp:254:
openzwave/cpp/src/value_classes/ValueID.h: In constructor âstd::pair<_T1, _T2>::pair() [with _T1 = long long unsigned int, _T2 = OpenZWave::ValueID]â:
openzwave.cpp:1755: instantiated from here
openzwave/cpp/src/value_classes/ValueID.h:243: error: âOpenZWave::ValueID::ValueID()â is private
/usr/include/c++/4.4/bits/stl_pair.h:80: error: within this context
error: command 'gcc' failed with exit status 1
The text was updated successfully, but these errors were encountered: