Skip to content

Conversation

@will-cromar
Copy link
Collaborator

This should fix the currently broken Docker build.

Ran docker build locally to checkout output of update-alternatives:

+ echo 'export CC=clang-8 CXX=clang++-8'
+ export CC=clang-8 CXX=clang++-8
+ CC=clang-8
+ CXX=clang++-8
++ which clang++-8
+ sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 70
update-alternatives: using /usr/bin/clang++-8 to provide /usr/bin/clang++ (clang++) in auto mode
+ install_and_setup_conda

Copy link
Collaborator

@JackCaoG JackCaoG left a comment

Choose a reason for hiding this comment

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

Thanks @will-cromar !

@will-cromar will-cromar merged commit 100666b into master Feb 10, 2022
@will-cromar will-cromar deleted the fixdocker branch February 10, 2022 23:26
sudo apt-get install -y clang-8 clang++-8
maybe_append 'export CC=clang-8 CXX=clang++-8' ~/.bashrc
export CC=clang-8 CXX=clang++-8
sudo update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-8) 70
Copy link
Contributor

Choose a reason for hiding this comment

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

Ugh, what happens if this image is used in the upstream, and PyTorch build uses a different clang version? If they try ln -s it will break.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ehh, right. I think we need to add a check whether clang++ existed or not. I will revert this change as it will likely break pytorch upstream.

Copy link
Contributor

Choose a reason for hiding this comment

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

@JackCaoG @will-cromar sorry about the confusion, this is infra image, not circleci image

JackCaoG added a commit that referenced this pull request Feb 10, 2022
JackCaoG added a commit that referenced this pull request Feb 10, 2022
will-cromar added a commit that referenced this pull request Feb 10, 2022
JackCaoG pushed a commit that referenced this pull request Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants