Skip to content

Fix singlefilehost build with clang 15 - #72305

Merged
janvorli merged 1 commit into
dotnet:mainfrom
am11:feature/build/native2
Jul 16, 2022
Merged

janvorli merged 1 commit into
dotnet:mainfrom
am11:feature/build/native2

Conversation

@am11

@am11 am11 commented Jul 16, 2022

Copy link
Copy Markdown
Member

With clang 15 beta (which is in PATH by default on one of the https://gitpod.io template I'm using) throws the following error:

  [ 98%] Building CXX object Corehost.Static/CMakeFiles/singlefilehost.dir/runtime/src/native/corehost/fxr/sdk_resolver.cpp.o
  /runtime/src/native/corehost/fxr/sdk_resolver.cpp:37:23: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
      requested_version(move(version)),
                        ^
                        std::
  /runtime/src/native/corehost/fxr/sdk_resolver.cpp:356:19: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
      global_file = move(global_file_path);
                    ^
                    std::
  /runtime/src/native/corehost/fxr/sdk_resolver.cpp:470:24: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
              sdk_path = move(probe_path);
                         ^
                         std::
  /runtime/src/native/corehost/fxr/sdk_resolver.cpp:522:32: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
          resolved_version_str = move(version);
                                 ^
                                 std::
  4 errors generated.
  make[2]: *** [Corehost.Static/CMakeFiles/singlefilehost.dir/build.make:272: Corehost.Static/CMakeFiles/singlefilehost.dir/runtime/src/native/corehost/fxr/sdk_resolver.cpp.o] Error 1
  make[1]: *** [CMakeFiles/Makefile2:1936: Corehost.Static/CMakeFiles/singlefilehost.dir/all] Error 2
  make: *** [Makefile:136: all] Error 2
  /runtime/src/coreclr
  Failed to build "CoreCLR component".

According to the schedule at https://llvm.org, clang 15 rc1 will be released in last week of July and final in first week of September. So it is better to fix this minor issue now before 7.0 RC1 snap.

@ghost ghost added community-contribution Indicates that the PR has been added by a community member area-Host labels Jul 16, 2022
@ghost

ghost commented Jul 16, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

With clang 15 beta (which is in PATH by default on one of the https://gitpod.io template I'm using) throws the following error:

  [ 98%] Building CXX object Corehost.Static/CMakeFiles/singlefilehost.dir/runtime/src/native/corehost/fxr/sdk_resolver.cpp.o
  /runtime/src/native/corehost/fxr/sdk_resolver.cpp:37:23: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
      requested_version(move(version)),
                        ^
                        std::
  /runtime/src/native/corehost/fxr/sdk_resolver.cpp:356:19: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
      global_file = move(global_file_path);
                    ^
                    std::
  /runtime/src/native/corehost/fxr/sdk_resolver.cpp:470:24: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
              sdk_path = move(probe_path);
                         ^
                         std::
  /runtime/src/native/corehost/fxr/sdk_resolver.cpp:522:32: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
          resolved_version_str = move(version);
                                 ^
                                 std::
  4 errors generated.
  make[2]: *** [Corehost.Static/CMakeFiles/singlefilehost.dir/build.make:272: Corehost.Static/CMakeFiles/singlefilehost.dir/runtime/src/native/corehost/fxr/sdk_resolver.cpp.o] Error 1
  make[1]: *** [CMakeFiles/Makefile2:1936: Corehost.Static/CMakeFiles/singlefilehost.dir/all] Error 2
  make: *** [Makefile:136: all] Error 2
  /runtime/src/coreclr
  Failed to build "CoreCLR component".

According to the schedule at https://llvm.org, clang 15 rc1 will be released in last week of July and final in first week of September. So it is better to fix this minor issue now before 7.0 RC1 snap.

Author: am11
Assignees: -
Labels:

area-Host, community-contribution

Milestone: -

@am11
am11 requested review from VSadov, elinor-fung and janvorli July 16, 2022 00:52

@VSadov VSadov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks!!

@janvorli janvorli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you!

@janvorli
janvorli merged commit 6251d49 into dotnet:main Jul 16, 2022
@am11
am11 deleted the feature/build/native2 branch July 24, 2022 07:29
@ghost ghost locked as resolved and limited conversation to collaborators Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Host community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants