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

Environment settings may get overwritten during package installation #13

Open
psyhtest opened this issue Sep 27, 2016 · 1 comment
Open

Comments

@psyhtest
Copy link
Contributor

I encountered a peculiar bug when installing a package. On a system with two compilers installed (GCC and Clang), I chose to build a package with GCC, but to my surprise CK attempted to build it with Clang!

It turned out that the package had a dependency on a library built with Clang. In addition, the library dependency was specified with a higher "sort" value than the compiler dependency. As a result, CK first set up the compiler environment with CK_CXX=gcc (as per my request); then CK overwrote the compiler environment with CK_CXX=clang (as per the environment settings of the library).

A workaround in this case was to lower the "sort" value of the library. But what can be done in general to prevent this counter-intuitive behaviour?

@gfursin
Copy link
Member

gfursin commented Mar 6, 2017

Yes, that's right - I also know this issue, and it's true that it's not intuitive (though reasonable from low-level CK implementations). At the moment I do the same - I just move compiler above such lib using 'sort' ... Maybe we can think about cleaner solution in the longer future (when updating/improving soft/package manager) ...

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