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

Adjust error message format in multi-locale library codegen to be more useful #13393

Closed

Conversation

dlongnecke-cray
Copy link
Contributor

@dlongnecke-cray dlongnecke-cray commented Jul 8, 2019

This is a small PR that adjusts the format of error messages in multi-locale library codegen so that they provide more useful information.

Currently, multi-locale libraries fail to compile due to an unsupported type. After implementing this quick adjustment, the new error message reveals...

$CHPL_HOME/modules/standard/IO.chpl:941: error: Multi-locale libraries do not support return type: syserr

Testing:

  • interop/C/multilocale on darwin when CHPL_COMM=gasnet
  • interop/python/multilocale on darwin when CHPL_COMM=gasnet

@dlongnecke-cray dlongnecke-cray self-assigned this Jul 8, 2019
Copy link
Member

@lydia-duncan lydia-duncan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, thanks!

@lydia-duncan
Copy link
Member

I'm assuming you've run test/interop/C/multilocale and test/interop/python/multilocale on OSx with this change?

@dlongnecke-cray
Copy link
Contributor Author

I haven't. There's a bit of a chicken and the egg problem here. I updated the error messages in the compiler (this PR) so I could figure out why the tests were breaking (#13394).

If you'd like, I can merge that fix first and then pull it into this branch.

@lydia-duncan
Copy link
Member

You could always check out a version of master from before the change and see what this change does on that branch, just as a sanity check.

@dlongnecke-cray
Copy link
Contributor Author

That sounds like a good idea, thanks!

@lydia-duncan
Copy link
Member

I'd otherwise be in favor of merging this so it doesn't stay open, but recognizing that if there are failures because of it, they'll be spread across this branch and the fix branch.

@dlongnecke-cray
Copy link
Contributor Author

Alternatively, why don't I just close this PR and integrate these changes into the fix branch?

@lydia-duncan
Copy link
Member

Either way works

@dlongnecke-cray
Copy link
Contributor Author

Closed in favor of #13403.

dlongnecke-cray added a commit that referenced this pull request Jul 10, 2019
…pe-errors

Skip standard modules when generating MLL wrappers

This PR will resolve #13394.

Standard modules export functions with types that multi-locale
libraries are not ready to support yet. This PR causes the code
generation for exported functions in multi-locale libraries to skip
over standard modules as well as internal.

In addition, this PR also absorbs changes from closed PR #13393,
since that PR's testing was dependent on this.

Testing:

- [x] interop/C/multilocale on darwin when CHPL_COMM=gasnet
- [x] interop/python/multilocale on darwin when CHPL_COMM=gasnet
- [x] ALL on linux64 when CHPL_COMM=gasnet
- [x] ALL on linux64 when CHPL_COMM=none

Thanks @lydia-duncan for review.
@dlongnecke-cray dlongnecke-cray deleted the mli-fix-emsg-fmt branch July 12, 2019 21:41
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

Successfully merging this pull request may close these issues.

2 participants