-
Notifications
You must be signed in to change notification settings - Fork 13
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
Non gcc/linux64 portability issues #46
Comments
Confirmed, pychapel + clang on OS-X will not work. Chapel itself includes a nice build system which supports compilation and linking of all things "Chapel", in many environments. Pychapel should take advantage of that. For example, instead of using the hard-coded gcc command line template in pychapel/module/configs/pych.json, perhaps Pychapel could "ask" chpl (or a new target in Chapel's Make system, or a new chplenv Python utility) for the appropriate link command for the current environment. |
@ben-albrecht and I experimented with just sending the clang equivalent of --whole-archive instead and were able to get tests to run successfully. We have an action item for one of us to add the detection necessary to work in both situations |
That flag is For completeness, here's the patch that will get OSX working for PyChapel: https://gist.github.com/ben-albrecht/f02b33dbefad74a8629de49cab795628 |
Thinking about creating/building a Pychapel Homebrew formula using a temporarily-patched Pychapel source tree. Even if the patch is not on master branch yet. |
Unable to get all pychapel unit tests to work on my Macbook.
https://gist.github.com/awallace-cray/64e9d2d94349f44907556aabc3e27e10 |
FWIW, @lydia-duncan and I did not run the full test suite with these changes. This SO post might be helpful for matplotlib setup (assuming it's not PyChapel-specific) |
That backend change gets the tests to run- good! I wonder if a user app could actually make a plot. I'm not going to stop and check. |
Created a set of rudimentary build scripts for Pychapel on Mac OS X. |
|
In an empty dir, ran this and got
|
It looks like https://gist.github.com/awallace-cray/31da7c2f2333e56cb7949f94d5fcea5f#file-pychpl-2-full-pych-sh was run without preparing the machine as described in https://gist.github.com/awallace-cray/31da7c2f2333e56cb7949f94d5fcea5f#file-pychpl-0-readme-txt. At least, the virtualenv tools do need to be installed. |
It was installed, but I re-installed the wrapper and setup tools:
|
Looks like the backend compiler is always given
-static
and--whole-archive
options. The former is not supported on OSX, and the latter is a gcc flag. Other compilers might support it (I didn't check pgi, intel, or cray) but I'm pretty sure clang doesn'tThe text was updated successfully, but these errors were encountered: