-
Notifications
You must be signed in to change notification settings - Fork 71
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
failed to build on Ubuntu 18.04 with GDC #534
Comments
Looks like there's an error here: static if (__VERSION__ >= 2072)
{
public import std.typecons : Ternary;
}
else
{
public import std.experimental.allocator.common : Ternary;
} What does |
Ternary isn't part of the latest gdc in Ubuntu. It's supposedly uses the 2.076 frontend, but I think Ian just forgot to cherry-pick a few things. |
Sorry but we cant do anything here if there's been an omission in GDC version of libphobos. |
So it's rather a GDC bug, @ibuclaw ? |
It's not a compiler bug. |
see #534 (comment). Maybe you forgot some change in phobos. |
Keeping the version string at 2068 was deliberate, as the compiler does not implement 2.076 - its only a fork that covers most features and bug fixes in 2.076 backported to C++. Though eventually a concession was made (D-Programming-GDC/gdc#740) - lets hope no one uses |
You could use |
Okay so this is clear now, no issue here. It's probably not worth changing the version check since the problem will disappear with newer GDC releases. |
That means "nofix", in this case I should try to get the new GDC release compile DCD with it if I want to use GDC (I could compile successfully with DMD and LDC)? |
If you really want i can add the code to make the selection of the import more clever. |
👍 Yes, please do it if you can manage. |
Can you try this code ? void main(){}
static if (is(typeof({ import std.typecons : Ternary; })))
{
public import std.typecons : Ternary;
}
else static if (is(typeof({ import std.experimental.allocator.common : Ternary;})))
{
public import std.experimental.allocator.common : Ternary;
}
else static assert(0, "Oops, dont know how to find Ternary"); since it's in a deps it will be faster to make the final PR in DCD if it's verified to be ok. |
@biocyberman you can approve there : dlang-community/stdx-allocator#10, if the above code works |
I do not have access to the PC at the moment. Will test and get back to you later. Thanks. |
@bbasile The code works. Thanks. |
fix #534 - failed to build on Ubuntu 18.04 with GDC merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
Installed gdc:
Current commit:
And then make failed on
The text was updated successfully, but these errors were encountered: