Skip to content
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

enable python extension for fastjet #3865

Closed
wants to merge 1 commit into from

Conversation

smuzaffar
Copy link
Contributor

No description provided.

@smuzaffar
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 22, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/27043/console

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for branch IB/CMSSW_10_1_X/gcc630.

@cmsbuild, @smuzaffar, @gudrutis, @mrodozov can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

@smuzaffar
Copy link
Contributor Author

@mrodozov , can you please check how to enable python interface or fastjet?

@mrodozov
Copy link
Contributor

@rappoccio , we were trying to enable python support for fastjet when the following broke the build:

make[2]: Entering directory `/build/mrodozov/build_fastjet/BUILD/slc6_amd64_gcc630/external/fastjet/3.3.0-cms/fastjet-3.3.0/pyinterface'
/bin/sh ../libtool  --tag=CXX --silent  --mode=compile g++ -DHAVE_CONFIG_H -I. -I../include/fastjet  -I/build/mrodozov/build_fastjet/slc6_amd64_gcc630/external/python/2.7.11-fjcbno/include/python2.7 -I/build/mrodozov/build_fastjet/slc6_amd64_gcc630/external/python/2.7.11-fjcbno/include/python2.7 -g  -Woverloaded-virtual  -DDROP_CGAL   -I../include -I../include -I../tools -DSWIG  -g  -Woverloaded-virtual  -DDROP_CGAL  -O3 -Wall -ffast-math -ftree-vectorize -msse3 -MT _fastjet_la-swig_wrap.lo -MD -MP -MF .deps/_fastjet_la-swig_wrap.Tpo -c -o _fastjet_la-swig_wrap.lo `test -f 'swig_wrap.cpp' || echo './'`swig_wrap.cpp
swig_wrap.cpp: In function 'std::__cxx11::string fastjet_Error___str__(const fastjet::Error*)':
swig_wrap.cpp:5244:87: error: 'const class fastjet::Error' has no member named 'description'
SWIGINTERN std::string fastjet_Error___str__(fastjet::Error const *self){return self->description();}
^~~~~~~~~~~
swig_wrap.cpp: In function 'PyObject* _wrap_Error_description(PyObject*, PyObject*)':
swig_wrap.cpp:9470:48: error: 'const class fastjet::Error' has no member named 'description'
result = ((fastjet::Error const *)arg1)->description();

where the file fastjet/3.3.0-cms/fastjet-3.3.0/pyinterface/swig_wrap.cpp complained that there is no method description in the fastjet::Error class. So I went to check the class definition and I noticed that
cms-externals/fastjet@156108f#diff-a15fd2fb4d8b1a8d12b7666facb52109L66
the method has been removed. I noticed you've removed entirely the declaration of the description method - have you done that by accident (so we could bring the declaration back) or the method is removed on purpose ?
Thanks & cheers,
M.

@rappoccio
Copy link

I think this must have been removed by a previous patch (I apply all of them) for thread safety. If this is safe from a thread standpoint (I think it looks to be so to me) then we can safely bring it back in.

@cmsbuild
Copy link
Contributor

-1

Tested at: 7edb4e2

  • Build:

I found an error when building:

checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.6/site-packages
checking for python2.6-config... no
checking for python-config... no
configure: error: cannot find python-config for /usr/bin/python.
error: Bad exit status from /build/cmsbld/jenkins/workspace/ib-any-integration/testBuildDir/tmp/rpm-tmp.mZI4iQ (%prep)


RPM build errors:
Bad exit status from /build/cmsbld/jenkins/workspace/ib-any-integration/testBuildDir/tmp/rpm-tmp.mZI4iQ (%prep)


You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3865/27043/summary.html

@rappoccio
Copy link

Is this somehow looking for python 2.6 instead of 2.7?

mrodozov added a commit that referenced this pull request Mar 22, 2018
This PR updates #3865 with a change to bring a declaration mrodozov/fastjet@acfff3b so that we apply only the final changes in cms-externals/fastjet (eventually)
@davidlange6
Copy link
Contributor

davidlange6 commented Mar 22, 2018 via email

@mrodozov
Copy link
Contributor

Yes the dep was missing I've added it in #3867 as I can't put commits on top of this PR. I'm closing this one

@mrodozov mrodozov closed this Mar 22, 2018
@smuzaffar smuzaffar deleted the smuzaffar-patch-2 branch March 23, 2018 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants