Skip to content

Conversation

giordano
Copy link
Member

@giordano giordano commented Jun 19, 2021

Companion pull request in Yggdrasil: JuliaPackaging/Yggdrasil#3174

@giordano giordano marked this pull request as draft June 19, 2021 00:22
# Ugly hack alert! Because GCC 11 has somehow broken C++, we pair GCC 10 with GCC 11 on MacOS
if name == "GCCBootstrap" && version.major == 11 && target !== nothing && Sys.islinux(target)
version = v"10.2.0"
version = v"11.1.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really sure about this, I've never got the point of this if --- I think it was related to the aarch64-apple-darwin GCC?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe what happened here was that I tried building a GCC 11 build targeting x86_64-linux-musl, and then when I targeted aarch64-apple-darwin, I would get GCC 11 for both target and host. Then, when I tried to build stuff targeting the host (e.g. using HOST_CXX) everything was broken with GCC 11. So I made this if statement to force it to give us GCC 11 for aarch64, but GCC 10 for x86_64.

Since you say you were able to run the test suite, it sounds like it's fixed now, so I think we can remove the if statement completely. Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, it looks like this is needed to make the aarch64-apple-darwin shell work, otherwise this function wouldn't find a GCCBootstrap with the same version number for the host system. I suspect the comment is just completely misleading?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm, I think it was actually needed for the reason the comment stated, but the new form looks good to me. Go ahead and update the comment to reflect the new nature of the conditional, and I think we're good to go.

@giordano giordano requested a review from staticfloat June 19, 2021 01:01
@giordano giordano marked this pull request as ready for review June 19, 2021 01:01
@giordano
Copy link
Member Author

I ran make -j${nproc} -sC /usr/share/testsuite install for a bunch of platforms (in particular all x86_64 systems), it seems to be all good. This should be ready to go.

@giordano giordano merged commit fe79875 into JuliaPackaging:master Jun 20, 2021
@giordano giordano deleted the mg/gcc-11 branch June 20, 2021 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants