Skip to contentSkip to conversation

Missing -lpython2.7 when linking ceph-dencoder

DISCUSSION Willem Jan Withagen 2 participants 4 messages May 26, 2017 – May 27, 2017

lore
Share & tools
lore
#0 lore raw

Hi Kefu,

This change has happend relatively early in my vacation because all the build that are left sort of hang on this. ceph-dencoder just misses out on a large number of Py object that it can not link. And that again comes from linking boost_python.

Now I remember we had this problem when we reworked the find_package(python) stuff.
Any suggestions other than starting to bisect this?

--WjW

#1 lore raw
Quoted 10 lines · Willem Jan Withagen

Hi Kefu,

This change has happend relatively early in my vacation because all the build that are left sort of hang on this. ceph-dencoder just misses out on a large number of Py object that it can not link. And that again comes from linking boost_python.

Now I remember we had this problem when we reworked the find_package(python) stuff.
Any suggestions other than starting to bisect this?

Right,

It is the other way around....
Boost linking just always includes boost_python which in turn misses -lpython to be successful.
So now the question is, why am I getting boost_python there?

--WjW

#2 lore raw
Quoted 12 lines · Willem Jan Withagen
Quoted 10 lines · Willem Jan Withagen

Hi Kefu,

This change has happend relatively early in my vacation because all the build that are left sort of hang on this. ceph-dencoder just misses out on a large number of Py object that it can not link. And that again comes from linking boost_python.

Now I remember we had this problem when we reworked the find_package(python) stuff.
Any suggestions other than starting to bisect this?

Quoted 6 lines

Right,

It is the other way around....
Boost linking just always includes boost_python which in turn misses -lpython to be successful.
So now the question is, why am I getting boost_python there?

The standard include Boost code in Cmake returns all available libraries. So for now I'm manually removing
/usr/local/lib/libboost_python.so
from the Boost_LIBRARIES.

Now REMOVE_ITEM does not use regual expressions, so it is hardcoded. Which looks sort of clumsy.

I'll submit a PR for this.

--WjW

#3 lore raw
Quoted 8 lines · Willem Jan Withagen
Quoted 7 lines · Willem Jan Withagen
Quoted 6 lines · Willem Jan Withagen

Hi Kefu,

This change has happend relatively early in my vacation because all the build that are left sort of hang on this. ceph-dencoder just misses out on a large number of Py object that it can not link. And that again comes from linking boost_python.

Willem, could you pastebin the error message somewhere, so i can take a look at it?

Quoted 29 lines
Quoted 11 lines
Quoted 4 lines

Now I remember we had this problem when we reworked the find_package(python) stuff.
Any suggestions other than starting to bisect this?

Right,

It is the other way around....
Boost linking just always includes boost_python which in turn misses -lpython to be successful.
So now the question is, why am I getting boost_python there?

The standard include Boost code in Cmake returns all available libraries. So for now I'm manually removing
/usr/local/lib/libboost_python.so
from the Boost_LIBRARIES.

Now REMOVE_ITEM does not use regual expressions, so it is hardcoded. Which looks sort of clumsy.

I'll submit a PR for this.

--WjW

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Regards
Kefu Chai