Skip to content
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

Fix packs.product subset build with gcc #68998

Merged
merged 1 commit into from
May 9, 2022

Conversation

am11
Copy link
Member

@am11 am11 commented May 7, 2022

After 7ff3ac6 was merged, the gcc build was failing. I have narrowed it down to packs.product subset:

$ ./build.sh packs.product -gcc
....
  crossgen2 -> /runtime/artifacts/bin/coreclr/Linux.x64.Debug/crossgen2/linux-x64/crossgen2.dll
/runtime/artifacts/bin/coreclr/Linux.x64.Debug/build/Microsoft.NETCore.Native.Unix.props(110,5): error : Platform linker ('clang') not found. Try installing clang or the appropriate package for your platform to resolve the problem. [/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
...

This fix sets CppCompilerAndLinker property in eng/build.sh (where we set another property Compiler for similar purpose).

The leading hyphen, if present, is proactively trimmed off from the value for both properties (currently it eventually gets dropped here and line 39).

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label May 7, 2022
@ghost
Copy link

ghost commented May 7, 2022

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

After 7ff3ac6 was merged, the gcc build was failing. I have narrowed it down to packs.product subset:

$ ./build.sh packs.product -gcc
....
  crossgen2 -> /runtime/artifacts/bin/coreclr/Linux.x64.Debug/crossgen2/linux-x64/crossgen2.dll
/runtime/artifacts/bin/coreclr/Linux.x64.Debug/build/Microsoft.NETCore.Native.Unix.props(110,5): error : Platform linker ('clang') not found. Try installing clang or the appropriate package for your platform to resolve the problem. [/runtime/src/coreclr/tools/aot/crossgen2/crossgen2.csproj]
...

This fix sets CppCompilerAndLinker property in eng/build.sh (where we set another property Compiler for similar purpose).

The leading hyphen, if present, is proactively trimmed off from the value for both properties (currently it eventually gets dropped here and line 39).

Author: am11
Assignees: -
Labels:

area-Infrastructure-libraries, community-contribution

Milestone: -

@ViktorHofer ViktorHofer merged commit 1e41844 into dotnet:main May 9, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jun 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-crossgen2-coreclr 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.

3 participants