Closed abraunegg closed 1 year ago
Quite possible it is an import that is version guarded and that version guard changed in the new compiler. I'll take a look at it shortly, still have to do day job for a couple more hours.
actually does Alpine use Musl as the libc? that might be it, i have a version block
version(CRuntime_Musl) {} else {
import core.sys.posix.unistd;
(line 6685 in my copy but ive been editing a lot of docs so it might not line up anymore with the git version)
and that posixspawn probably should be versioned out but the unistd ought to work either way.
maybe the compiler got stricter about imports in the new version.
might suggest changing that to
version(Posix) {
import core.sys.posix.unistd; // do this in all posix versions
version(CRuntime_Musl) {} else {
// it used to be here
private extern(C) int posix_spawn(pid_t*, const char*, void*,
void*, const char**, const char**);
}
}
and it might fix it for you.
yeah that was it. added to my test script now too so i won't miss this kind of thing again:
https://github.com/adamdruppe/arsd/commit/5ac21ebb922fb7e65323fde9f7c952f9307e3f5c
sorry for the inconvenience, this was my mistake!
@adamdruppe
yeah that was it. added to my test script now too so i won't miss this kind of thing again
All good :) Currently testing your proposed fix above (https://github.com/abraunegg/onedrive/pull/2220) and the Alpine build was successful - so looks good - https://github.com/abraunegg/onedrive/actions/runs/3473965331/jobs/5806591180
Well, I see it passed the test so I'll go ahead and close this now. But let me know if something else comes up and we'll take care of it then. Thanks for the report.
Due to an issue identified with dmd-2.101.0 which was raised to me here https://github.com/abraunegg/onedrive/discussions/2218 I updated the
cgi.d
file to your latest version and this resolved the build error using DMD.However, when building using LDC using GitHub actions and LDC 1.28.1 on Alpine, the following is being thrown:
I tried to replicate using Fedora and unable to do so - the build using LDC 1.28.1 works without issue ...
Any suggestions?
GitHub Actions Build Log: https://github.com/abraunegg/onedrive/actions/runs/3473275587/jobs/5805111455