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

mac compilation problem tr1 #7

Closed
rizkg opened this issue May 31, 2016 · 13 comments
Closed

mac compilation problem tr1 #7

rizkg opened this issue May 31, 2016 · 13 comments

Comments

@rizkg
Copy link
Contributor

rizkg commented May 31, 2016

compilation of MindTheGap with clang v7.3.0 does not work since commit a4438e3 (19 mai), probably because of this code removed
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.3)
set (dont_use_tr1 0)
else()
set (dont_use_tr1 1)

Should we patch gatb-core v1.2.0 for this ?

@rchikhi
Copy link
Member

rchikhi commented May 31, 2016

I've changed mindthegap to use USE_NEW_CXX instead of dont_use_tr1. could you try to compile it now? (update mindthegap and gatb-core).

I'd like to deprecate dont_use_tr1 because use_new_cxx already exists

@rchikhi
Copy link
Member

rchikhi commented May 31, 2016

looks like the CI could compile it just now

@rizkg
Copy link
Contributor Author

rizkg commented May 31, 2016

are you sure you pushed to mindthegap? i dont see any new commit. (right now mindthegap CI works because I temporarily added dont_use_tr1 variable to the cmakelist of mindthegap)

@rchikhi
Copy link
Member

rchikhi commented May 31, 2016

@rizkg
Copy link
Contributor Author

rizkg commented May 31, 2016

oh, this does not appear in the gforge repo, did you commit to the wrong repo :) ?

@rchikhi
Copy link
Member

rchikhi commented May 31, 2016

oh yes, I did :) fixed.

@rizkg
Copy link
Contributor Author

rizkg commented Jun 1, 2016

thx, ok to switch to use_new_cxx. It seems I have to add the -DUSE_NEW_CXX in the gatb-core cmakelist.
By the way, how should we deal with such minor modif ? The politic for tools is to point to a released gatb-core submodule. Should we make a new patched gatb-core release just for this ?

@clemaitre
Copy link
Contributor

Hi guys !

MindTheGap CI does not compile on mac.
To take into account your last modifications, is it necessary to update gatb-core ? Currently I think mindthegap points to gatb-core release v1.2.0, so this is this version of gatb-core that is used in CI.

@clemaitre
Copy link
Contributor

I made mindthegap point to the current master version of gatb-core (and committed it), it did not fix the problem with tr1.
Guillaume, does it compile on your mac ?

@rizkg
Copy link
Contributor Author

rizkg commented Jun 2, 2016

I pushed a new patch in gatb-core and again made mtg point to it, CI works now.

@rizkg
Copy link
Contributor Author

rizkg commented Jun 2, 2016

hmm, or not :) it compiles and passes all test, but another error comes (Invalid escape sequence .), dont know what that is.

@clemaitre
Copy link
Contributor

thanks ! I know what it is, I am fixing it !

@rchikhi
Copy link
Member

rchikhi commented Jun 2, 2016

@rizkg:

I had added -DUSE_NEW_CXX to MindTheGap CMakefile's. It's odd that you needed to have it defined in gatb-core's CMakefile also, isn't it? Because gatb-core doesn't have any #ifdef USE_NEW_CXX.

I think our politics are to only link to a released version of gatb-core. But since it's a minor modification here , we could pragmatically point to the appropriate commit that we want, until we release a gatb-core update.

@rizkg rizkg closed this as completed Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants