[
https://issues.apache.org/jira/browse/MESOS-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817719#comment-13817719
]
Niklas Quarfot Nielsen commented on MESOS-798:
----------------------------------------------
Cool, that looks like a clang built _mesos.so. While I need to test the last
steps in a python egg patch, here is what you need:
----
diff --git a/src/Makefile.am b/src/Makefile.am
index a73d6e1..e1313db 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -678,7 +678,7 @@ PROTOBUF_EGG =
../$(PROTOBUF)/python/dist/protobuf-$(PROTOBUF_EGG_SUFFIX)
$(PROTOBUF_EGG):
@echo "Building protobuf Python egg ..."
cd ../$(PROTOBUF)/python && \
- PYTHONPATH=$(DISTRIBUTE_EGG) $(PYTHON) setup.py bdist_egg
+ CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)"
PYTHONPATH=$(DISTRIBUTE_EGG) $(PYTHON) setup.py bdist_egg
CLEANFILES += $(PROTOBUF_EGG)
----
TL;DR The chosen c and c++ compiler was not propagated to setup.py.
Also, when you rebuild the python egg remember to delete the
build/src/python/build & dist directories.
> ExamplesTest.PythonFramework failing
> -------------------------------------
>
> Key: MESOS-798
> URL: https://issues.apache.org/jira/browse/MESOS-798
> Project: Mesos
> Issue Type: Bug
> Components: test
> Affects Versions: 0.16.0
> Environment: Linux 2.6.32-279.el6.x86_64
> Python 2.6.6
> Python Packages installed
> python-2.6.6-37.el6_4.x86_64
> protobuf-python-2.3.0-7.el6.x86_64
> python-libs-2.6.6-37.el6_4.x86_64
> python-devel-2.6.6-37.el6_4.x86_64
> python-setuptools-0.6.10-3.el6.noarch
> python-boto-2.13.3-1.el6.noarch
> Reporter: Bernardo Gomez Palacio
> Labels: test
>
> (Based on Git Commit Hash 03b9407)
> Running `make check` fails while executing ExamplesTest.PythonFramework with
> the following trace:
> [ RUN ] ExamplesTest.PythonFramework
> Using temporary directory '/tmp/ExamplesTest_PythonFramework_5Vv4TM'
> Traceback (most recent call last):
> File
> "/builddir/build/BUILD/mesos-03b94076caddceda4c0a6a03aa44ebe4d64f1acc/src/examples/python/test_framework.py",
> line 23, in <module>
> import mesos
> File "build/bdist.linux-x86_64/egg/mesos.py", line 26, in <module>
> File "build/bdist.linux-x86_64/egg/_mesos.py", line 7, in <module>
> File "build/bdist.linux-x86_64/egg/_mesos.py", line 6, in __bootstrap__
> File "build/bdist.linux-x86_64/egg/mesos_pb2.py", line 1545, in <module>
> AttributeError: 'FileDescriptor' object has no attribute
> 'message_types_by_name'
> tests/script.cpp:77: Failure
> Failed
> python_framework_test.sh exited with status 1
> [ FAILED ] ExamplesTest.PythonFramework (432 ms)
> [----------] 5 tests from ExamplesTest (4346 ms total)
--
This message was sent by Atlassian JIRA
(v6.1#6144)