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
Fix build on Ubuntu/GCC 4.8.4 and 4.9.0 #83
Conversation
The error was that clobj<CLType> was passed where CLType was expected. I'm not sure why this was ever supposed to work; I tried putting a type-cast operator on clobj, but that didn't work.
The general procedure is
Can you check the output of the compiler to figure out what exactly it is complaining? (it should tell you why it cannot match each template) |
Here's the compiler output for the first file: https://gist.github.com/larsmans/64e4ebc5e2ed36d548e7 There's megabytes more of this, but it's all the same kind of error. |
I still got the same error as above with 14.04 and gcc 4.9. |
@Starkstroem It builds without a problem for me on gcc 5.2. If you keep having issues, try 2015.1. It has the same interface on the Python side as the newer code, and has been around longer. Nonetheless, gcc 4.9 is not so old that we shouldn't at least try to get it to work. |
@yuyichao Any clues what's happening here? |
I couldn't reproduce this on GCC 4.8 or 4.9 so I'm not really sure what's happening. As I said, this automatic casting was only useful for debugging (to track pointers) and it is certainly ok to avoid it if it's giving people to much issues. |
e12f38a is a version of this that retains debug info if it's being built on gcc >= 5.2 and otherwise is as compatible as possible. It builds OK for me on Ubuntu 14.04. Please let me know if this resolves the issue. |
Also, thanks @larsmans for the initial patch, and sorry for the long delay in looking at this. |
thanks for fixing this - however, would someone please so kind to update the pip tarball, so that this fix actually propagates (currently, "pip install pyopencl" will fail on all ubuntu/gcc systems mentioned above) Referring to: https://pypi.python.org/pypi/pyopencl Thanks |
I've just uploaded 2015.2.2 with these fixes built in. |
thanks for being so responsive - unfortunately, it seems, there are still some issues: Distributor ID: Ubuntu For the pip log file, see: http://pastebin.com/mMzKrKS1 |
Ugh, sorry. That one slipped through. Should be fixed in 4be4cf5. Can you try current git? |
I can confirm that building from git, everything is building correctly - thanks again for being so responsive, WTG ! thanks |
2015.2.3 is on the package index. |
success, terrific maintenance job 👍 |
The error was that
clobj<CLType>
was passed whereCLType
was expected. I'm not sure why this was ever supposed to work; I tried putting a type-cast operator onclobj
, but that didn't work.Fixes #81.