Skip to content

rbe-toolchain image can't build latest swiftshader #7419

Closed

Description

@GMNGeoffrey

#7117 and #6859 didn't actually update the rbe-toolchain image to use later swiftshader commits. I tried rebuilding recently and had to downgrade the swiftshader commit because swiftshader doesn't build at the newer commit. I think the issue is that the rbe-toolchain is Ubuntu 16.04 with clang 3.8. It's not finding C++17 std::shared_mutex:

/install-swiftshader/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/RWMutex.h:100:8: error: no type named 'shared_mutex' in namespace 'std'; did you mean 'timed_mutex'?

Given that Ubuntu 16.04 is EOL, we're probably going to need to come up with a longer term solution. I've been postponing upgrading to Ubuntu 18.04 because RBE doesn't provide base docker images for that. But also RBE after Bazel 4 wants you to specify an egregious amount of config. It can be autogenerated and stored in GCS or something (although they recommend in source control 🤮), but I'm pondering just dropping remote execution entirely and only doing remote caching.

But anyway, for now swiftshader in the RBE containers is still at google/swiftshader@84f5eeb and in #7406 I'm making the Dockerfile actually reflect that again.

Activity

  1. added
    infrastructure
    on Oct 21, 2021
  2. self-assigned this
    on Oct 21, 2021
  3. added a commit that references this issue on Oct 21, 2021
  4. antiagainst commented on Oct 21, 2021

    @antiagainst
    Member

    +1. rbe-toolchain using Ubuntu 16.04 is also the reason that we cannot install the Vulkan SDK like normal via apt.

  5. ScottTodd commented on Jan 5, 2022

    @ScottTodd
    Member

    This is one of the blockers for #8018 - we need the timeline semaphore support from google/swiftshader@6846389 to drop our timeline semaphore emulation. The relevant tests pass on our CI that uses CMake but fail on the CI that uses Bazel due to the different SwiftShader versions.

  6. GMNGeoffrey commented on Jan 7, 2022

    @GMNGeoffrey
    MemberAuthor

    Please wait a bit for everything to settle before submitting things that depend on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infrastructure

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions