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
"Error: declaration expected, not 'foreach'" when building with LDC on Fedora #370
Comments
Thanks! From the The exact failure is: In a dependency of Lix, your LDC trips over But Fedora 27 offers no newer LDC than what you have. Ideas:
We could also try to build older versions of Lix that use older dependencies and thus don't rely on new D features. E.g., especially the dependency Optional >= 0.6 requires nearly cutting-edge D. But it would be a guessing game and reintroduce old bugs (which might break the build in other ways). I'd recommend the bullet points above first. |
That Fedora is really old, there is no need to support it. I will try to build it on Fedora 29 with ldc-1.11.0. |
Yes, that's worth a try. LDC 1.11 is based on DMD 2.081.2 and should work; I know that LDC based on DMD 2.082 works. There's a small chance that LDC based on DMD 2.081.2 is still too old because Optional relies on cutting-edge D. In that case, you could try to build Lix commit d667af7 instead of master; then, Lix depends on Optional 0.4 instead of 0.6. |
I was able to build it from master on Fedora 29 with:
One more note for the Fedora users. It was required to install (in addition to Thanks for you help. |
Thanks for the good report! Seems like Fedora packages the addons separately. I'll add your findings to the build notes. |
I have: LDC - the LLVM D compiler (1.12.0): |
That compiler is even newer than szpak's, thus it's strange that you still get an error for static foreach. Can you post the full build log? Idea: dub prefers DMD over LDC or LDC2. Do you get a line à la |
I have tried to build LixD on Fedora 27 with LDC and the compilation itself fails with:
My LDC is not in the newest version (however, I haven't found a minimal required version):
Other libs should be installed with matching versions. I have no experience with D. Somehow related to #333.
The text was updated successfully, but these errors were encountered: