-
Notifications
You must be signed in to change notification settings - Fork 121
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
Compilation of example program on OS X #25
Comments
Sorry for those issues - I did not test CK on Mac OS and I assumed that the conventions/commands are the same as in Linux. However, seems like there are differences. I think the problem is in exporting variables:
There you will see file "env.sh" - it is executed just before compilation and it's the one that sets It uses bash and relies on two things: #! /bin/bash Above line checks if the script was already called to avoid calling it again (unless forced by CK) - Otherwise, I also use: export CK_AR=ar Maybe export doesn't properly on MacOS and something else is needed?.. Can you please just try to run it like that: Thanks! |
Setting the environment works fine:
(note that running I believe that the problem is that the other script doesn't actually substitute |
Strange. May I ask you to compile program with the following flag:
It should keep all temporary files. You can find them in tmp directory of the entry:
There should be one or more files tmp-XYZ.sh Can you please print them here (or at least one where there is CK_CC)? Thanks! |
Oh, I fixed that - stupid mistake - I just did not add environment var description to MasOS entry in CK.
Can you please try to compile program again (I am now concerned about GCC -> LLVM substitution - hope there will be no new problems with calling conventions) ... You can find MacOs description here:
There is a file .cm/meta.json that I use to describe various OS parameters needed for CK - this allows me to support Android, remote SSH, Windows, etc (you can also view it directly in console via ck load os:macos-64). You can see other OS via:
|
Thanks! Looks like compilation goes fine, but now there are linker warnings:
The issues with I am not sure if this is relevant, but OS X uses |
I think I fixed all above issues: As usual, do not forget to do
Then find related ENV UID (on the left) - normally you should have only 1 entry ...
for example: ck rm env:593df795f48cfbb5 Now you can reinstall xopenme and hopefully it should now have $ ...
Please, tell me if it will work! Thanks!!! By the way, note that my idea of CK was to make it extensible by the community aka research Wikipedia, i.e. users can add/unify descriptions/modules just like we do above. |
Works as advertised, thanks! |
Great! By the way, before closing this ticket, do you mind to remove again the env of the XOPENME as describe above and then try to install it automatically, i.e. when you compile program? |
No, that doesn't solve it:
Is there a way to get it more verbose? |
Sure. I need to check first what happens. Will try to reproduce this on my machine. Will tell you if I manage to sort it out ... |
I will close this ticket and will check it in ticket #24 ... |
CM/CMX v3.2.8: fixed a few tests (#1340)
I am following the basis getting starting guide and am currently trying to compile the Susan program. Unfortunately, compilation fails on OS X (
Darwin-14.4.0-x86_64-i386-64bit
):It seems that several variables starting with
CK_
are not properly substituted, perhaps there is a missing$
-sign? Or did I forget to do something, perhaps loading some environmental variables? Setting$CK_CC
to for example Clang doesn't seem to help.The text was updated successfully, but these errors were encountered: