Navigation Menu

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

add an "hpx_" prefix to libraries and components to avoid name conflicts #1493

Closed
biddisco opened this issue May 5, 2015 · 11 comments
Closed

Comments

@biddisco
Copy link
Contributor

biddisco commented May 5, 2015

No description provided.

@hkaiser
Copy link
Member

hkaiser commented Jun 2, 2015

Allmost all of the work has been done on the branch fixing_1493. One test is still failing (see: https://circleci.com/gh/STEllAR-GROUP/hpx/346)

@biddisco
Copy link
Contributor Author

biddisco commented Jun 3, 2015

I am not able to reproduce this error locally and I suspect that the -liostreams was somehow caused by a stale cache entry - though I'm not sure how this would happen if each build is done from a clean dir.

@hkaiser
Copy link
Member

hkaiser commented Jun 3, 2015

@biddisco do I understand correctly that this PR does actually work for you?

@biddisco
Copy link
Contributor Author

biddisco commented Jun 3, 2015

yes, I'm just waiting for a full rebuild to complete and I started a couple of builds on hermione to see if they also produced the link error. I'll know for sure when they all complete.

@biddisco
Copy link
Contributor Author

biddisco commented Jun 3, 2015

OK, I have reproduced the error (but on a different target than the one detected in the original error log). Im looking into it now.

@biddisco
Copy link
Contributor Author

biddisco commented Jun 3, 2015

I've pushed a fix to fixing_1493 which I believe now resolves this. if circle ci gives an all clear, then this is good to go.

@hkaiser
Copy link
Member

hkaiser commented Jun 4, 2015

Thanks! Unfortunately now inspect is complaining about your file you added to that branch earlier: https://circle-artifacts.com/gh/STEllAR-GROUP/hpx/667/artifacts/0/tmp/circle-artifacts.WeCx8nK/hpx_inspect_report.html

@biddisco biddisco mentioned this issue Jun 5, 2015
@biddisco
Copy link
Contributor Author

biddisco commented Jun 5, 2015

Fixed the remaining refs to iostreams and merged PR

@biddisco biddisco closed this as completed Jun 5, 2015
@biddisco
Copy link
Contributor Author

biddisco commented Jun 5, 2015

Just a heads up that this branch has been merged and it modifies HPX_SetupTarget.cmake so that libraries and components have “hpx_" prefixed to the name.

It does not affect the target name in cmake, so you can still say
target_link_libraries(myapp iostreams)
But the name of the library iostreams on disk changes to hpx_iostreams.
This will also affect custom components and libraries which users create – it should not affect cmake generated projects, but If you have non cmake generated projects which use hardcoded library names, these will break and will need to be adjusted.

For reasons of caution, it would be a good idea to wipe any libraries in your build dir so that you don’t inadvertently link to them when you really want the newer ones that are generated but with a different name.

JB

@hkaiser
Copy link
Member

hkaiser commented Jun 5, 2015

We should send a mail to hpx-users describing the breaking change. We should also update the whats_new.qbk to mention this breaking change.

Thanks for your work on this!

@biddisco
Copy link
Contributor Author

biddisco commented Jun 5, 2015

I did sent a warning message to the list, but I don’t see it in my mailbox. Did it not arrive?

From: Hartmut Kaiser <notifications@github.commailto:notifications@github.com>
Reply-To: STEllAR-GROUP/hpx <reply@reply.github.commailto:reply@reply.github.com>
Date: Friday 5 June 2015 15:35
To: STEllAR-GROUP/hpx <hpx@noreply.github.commailto:hpx@noreply.github.com>
Cc: cscs <biddisco@cscs.chmailto:biddisco@cscs.ch>
Subject: Re: [hpx] add an "hpx_" prefix to libraries and components to avoid name conflicts (#1493)

We should send a mail to hpx-users describing the breaking change. We should also update the whats_new.qbk to mention this breaking change.

Thanks for your work on this!


Reply to this email directly or view it on GitHubhttps://github.com//issues/1493#issuecomment-109294213.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants