-
Notifications
You must be signed in to change notification settings - Fork 9
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
Build failure, dmd 2.088: cast from int to void* not allowed in safe code #27
Comments
I'll take a look tomorrow. Running into the same issue. |
@jondegenhardt I think this is fixed in master. When I dub add-local io to my repo with my latest changes, it works. Probably just needs a release. I'll tag, let me know if it helps. |
Thanks for looking at this Steve. I was wondering if your recent changes would fix it. I'll try it after you tag it. I'm pulling the Separate thing, but the reason it'll work is because the cast was moved outside of the Update: Ah, you've already tagged it. Will test. Need to wait for the version change to propagate to code.dlang.org first. |
heh, I just checked and it didn't get updated to code.dlang.org. But I realized I forgot the v. So that should be fixed. Hopefully updates soon. |
A mixed bag. DMD 2.088.1 now works with Very oddly, the LDC 1.18.0 build segment faults when running command line tests. (Run against the built executable.) This is very odd in that LDC 1.18.0 is based on DMD 2.088.1, which now passes. So, there may be two separate issues. I'll take a closer look and let you know what I find. Not sure I'll get to it tomorrow, but will update here when I do. The build logs are available here: travis-ci: dcat-perf It is possible of course that the LDC seg fault is due to something I wrote rather than something in |
Hm... reading that thread, especially since we do almost exactly the same thing here: https://github.com/MartinNowak/io/blob/2147802a9bca0dcf82293303f407dd3e253691e9/src/std/io/driver/package.d#L243 I think we probably need to wait for that bug to be fixed and address the "correct" way to do things when 2.089.1 is out. Keep me informed, I'm pretty disconnected from the forums these days. I don't know about the segfault for LDC that doesn't fail when you use DMD, we may need to report that to LDC. I don't generally use LDC for my projects. |
Sounds good. I'll see if I can narrow down the LDC case a bit and report it. @kinke FYI on possible LDC issue. See my note two comments back. Might be a day or two, but I'll be trying to narrow this further. |
Guys, consider adding this project to the project tester after you get it green with dmd nightly. It looks like we're missing some test coverage and adding |
@PetarKirov yes, will do. |
@bioinfornatics Looks like you hit this same issue with LDC. @jondegenhardt see issue he filed: ldc-developers/ldc#3219 |
Wrt. the 'LDC issue', somebody please test #30, as I haven't, but am pretty sure this is the culprit, and only worked accidentally for |
@schveiguy Looks like the LDC issue is fixed, right? If so, if you tag another version of |
OK tagged, @jondegenhardt, now have to just wait for dub to notice. |
jondegenhardt/dcat-perf Travis-CI done. Results as expected. ldc-1.18.0 now passes. dmd-2.089.0 / ldc-1.19.0-beta1 fail on the shared/atomics issue. |
OK, so I'll close this, and open an issue for 2.089.0, as this one as originally reported is fixed. |
Hi @schveiguy - I've lost track - What's the status of this? Are we still waiting for something to be fixed in shared atomics on Phobos? I ask because jondegenhardt/dcat-perf CI builds continue to fail (weekly) for latest dmd and ldc compilers. Same failure on each. E.g.:
This repo is not especially important, so it doesn't matter so much if it fails. But, this strikes me as an important issue, I'm surprised it hasn't been fixed. Or, maybe it has, but I'm just not pulling the correct versions of |
I will try to get the workaround in.
…Sent from my iPhone
On Feb 23, 2020, at 6:44 PM, Jon Degenhardt ***@***.***> wrote:
Hi @schveiguy - I've lost track - What's the status of this? Are we still waiting for something to be fixed in shared atomics on Phobos?
I ask because jondegenhardt/dcat-perf CI builds continue to fail (weekly) for latest dmd and ldc compilers. Same failure on each. E.g.:
DMD64 D Compiler v2.090.1
...
Fetching iopipe 0.1.7 (getting selected version)...
Fetching io 0.2.4 (getting selected version)...
...
../../../.dub/packages/io-0.2.4/io/src/std/io/driver/package.d(243,12): Error: template core.atomic.cas cannot deduce function from argument types !()(shared(Driver)*, typeof(null), shared(Driver)), candidates are:
This repo is not especially important, so it doesn't matter so much if it fails. But, this strikes me as an important issue, I'm surprised it hasn't been fixed. Or, maybe it has, but I'm just not pulling the correct versions of iopipe and io.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have started seeing
io
package (v0.2.2) build failures when building jondegenhardt/dcat-perf. Builds are failing with an error indriver/package.d
. The error occurs starting with DMD 2.088 / LDC 1.18.0. I suspect the build failure is a result of DMD PR #10056. The build error is:There are additional errors, but I suspect that they are a consequence of the initial errors. Compilation with DMD 2.087 / LDC 1.17.0 is fine.
The full build error log can be seen here: https://travis-ci.com/jondegenhardt/dcat-perf/builds/134325392. Look at the log of any of the failed builds.
The text was updated successfully, but these errors were encountered: