You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Vinod Kone (JIRA)" <ji...@apache.org> on 2014/08/04 21:36:12 UTC
[jira] [Created] (MESOS-1665) Build fails when configured with
--disable-shared
Vinod Kone created MESOS-1665:
---------------------------------
Summary: Build fails when configured with --disable-shared
Key: MESOS-1665
URL: https://issues.apache.org/jira/browse/MESOS-1665
Project: Mesos
Issue Type: Bug
Environment: CentOS
Reporter: Vinod Kone
In file included from /usr/include/python2.6/Python.h:80:0,
from native/module.cpp:33:
native/module.cpp: In function ‘void init_mesos()’:
/usr/include/python2.6/object.h:756:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
((PyObject*)(op))->ob_refcnt++)
^
native/module.cpp:94:3: note: in expansion of macro ‘Py_INCREF’
Py_INCREF(&MesosSchedulerDriverImplType);
^
/usr/include/python2.6/object.h:756:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
((PyObject*)(op))->ob_refcnt++)
^
native/module.cpp:98:3: note: in expansion of macro ‘Py_INCREF’
Py_INCREF(&MesosExecutorDriverImplType);
^
gcc -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -g -Wno-unused-local-typedefs -g -Wno-unused-local-typedefs -std=c++11 -fPIC -I/home/vinod/mesos/build/../include -I/home/vinod/mesos/build/include -I/home/vinod/mesos/build/include/mesos -I/home/vinod/mesos/build/src -I/home/vinod/mesos/build/src/python/native -I/home/vinod/mesos/build/3rdparty/libprocess/3rdparty/protobuf-2.5.0/src -I/usr/include/python2.6 -c native/mesos_scheduler_driver_impl.cpp -o build/temp.linux-x86_64-2.6/native/mesos_scheduler_driver_impl.o
gcc -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -g -Wno-unused-local-typedefs -g -Wno-unused-local-typedefs -std=c++11 -fPIC -I/home/vinod/mesos/build/../include -I/home/vinod/mesos/build/include -I/home/vinod/mesos/build/include/mesos -I/home/vinod/mesos/build/src -I/home/vinod/mesos/build/src/python/native -I/home/vinod/mesos/build/3rdparty/libprocess/3rdparty/protobuf-2.5.0/src -I/usr/include/python2.6 -c native/mesos_executor_driver_impl.cpp -o build/temp.linux-x86_64-2.6/native/mesos_executor_driver_impl.o
gcc -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -g -Wno-unused-local-typedefs -g -Wno-unused-local-typedefs -std=c++11 -fPIC -I/home/vinod/mesos/build/../include -I/home/vinod/mesos/build/include -I/home/vinod/mesos/build/include/mesos -I/home/vinod/mesos/build/src -I/home/vinod/mesos/build/src/python/native -I/home/vinod/mesos/build/3rdparty/libprocess/3rdparty/protobuf-2.5.0/src -I/usr/include/python2.6 -c native/proxy_executor.cpp -o build/temp.linux-x86_64-2.6/native/proxy_executor.o
g++ -pthread -shared -g -Wno-unused-local-typedefs -g -Wno-unused-local-typedefs -std=c++11 build/temp.linux-x86_64-2.6/native/proxy_scheduler.o build/temp.linux-x86_64-2.6/native/module.o build/temp.linux-x86_64-2.6/native/mesos_scheduler_driver_impl.o build/temp.linux-x86_64-2.6/native/mesos_executor_driver_impl.o build/temp.linux-x86_64-2.6/native/proxy_executor.o /home/vinod/mesos/build/src/.libs/libmesos_no_3rdparty.a /home/vinod/mesos/build/3rdparty/libprocess/3rdparty/protobuf-2.5.0/src/.libs/libprotobuf.a /home/vinod/mesos/build/3rdparty/libprocess/.libs/libprocess.a /home/vinod/mesos/build/3rdparty/libprocess/3rdparty/glog-0.3.3/.libs/libglog.a /home/vinod/mesos/build/3rdparty/leveldb/libleveldb.a /home/vinod/mesos/build/3rdparty/zookeeper-3.4.5/src/c/.libs/libzookeeper_mt.a /home/vinod/mesos/build/3rdparty/libprocess/3rdparty/libev-4.15/.libs/libev.a -L/usr/lib64 -lpython2.6 -o build/lib.linux-x86_64-2.6/_mesos.so -lsasl2 -lcurl -lz -lrt -lunwind
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.1/ld: /home/vinod/mesos/build/src/.libs/libmesos_no_3rdparty.a(libmesos_no_3rdparty_la-exec.o): relocation R_X86_64_32 against `__pthread_key_create' can not be used when making a shared object; recompile with -fPIC
/home/vinod/mesos/build/src/.libs/libmesos_no_3rdparty.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
make[2]: *** [python/dist/mesos-0.20.0-py2.6-linux-x86_64.egg] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: link: ranlib .libs/libmesos.a
libtool: link: rm -fr .libs/libmesos.lax
libtool: link: ( cd ".libs" && rm -f "libmesos.la" && ln -s "../libmesos.la" "libmesos.la" )
make[2]: Leaving directory `/home/vinod/mesos/build/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/vinod/mesos/build/src'
make: *** [all-recursive] Error 1
--
This message was sent by Atlassian JIRA
(v6.2#6252)