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

Clang 6.0 Support for Linux #5654

Closed
mrkmg opened this issue Apr 5, 2018 · 5 comments · Fixed by #7948
Closed

Clang 6.0 Support for Linux #5654

mrkmg opened this issue Apr 5, 2018 · 5 comments · Fixed by #7948

Comments

@mrkmg
Copy link

@mrkmg mrkmg commented Apr 5, 2018

I am trying to test CoreRT on Arch Linux.

When I run dotnet publish -c Release -r linux-x64 I get:

.../microsoft.dotnet.ilcompiler/1.0.0-alpha-26405-01/build/Microsoft.NETCore.Native.Unix.props(100,5): error : Platform linker ('clang-3.9') not found. Try installing clang-3.9 or the appropriate package for your platform to resolve the problem...

I currently have clang 6.0 installed on my machine.

@jkotas

This comment has been minimized.

Copy link
Member

@jkotas jkotas commented Apr 6, 2018

I agree that we need to have some kind of auto-detection for this.

In the meantime, you should be able to work around this by doing export CppCompilerAndLinker=clang-6.0. This will override the hard coded clang-3.9 default.

@mrkmg

This comment has been minimized.

Copy link
Author

@mrkmg mrkmg commented Apr 6, 2018

Now I am running into #5224.

Trying to follow the directions there to build my own version of llvm. I will report back what I find out.

@chyyran

This comment has been minimized.

Copy link

@chyyran chyyran commented May 18, 2018

+1 to this issue. Clang 3.9 simply isn't available on reasonably recent Fedora distributions (fc27, fc28). The earliest version available is Clang 4.0 through copr, which still isn't compatible with corert even with export CppCompilerAndLinker=clang-6.0

@Spongman

This comment has been minimized.

Copy link

@Spongman Spongman commented Aug 6, 2018

export CppCompilerAndLinker=clang

seems to work fine. why is the tool version-dependent by default?

@feliwir

This comment has been minimized.

Copy link

@feliwir feliwir commented Nov 5, 2018

Hitting this issue aswell. Using a recent clang version shouldn't be that difficult.

jkotas added a commit to jkotas/corert that referenced this issue Jan 10, 2020
clang-3.9 is not available on recent Linux distros and there is typically clang alias setup for a good version of clang

Fixes dotnet#5654
jkotas added a commit to jkotas/corert that referenced this issue Jan 10, 2020
clang-3.9 is not available on recent Linux distros. Typically, there is clang alias setup for a good version of clang so just use that by default.

Fixes dotnet#5654
jkotas added a commit to jkotas/corert that referenced this issue Jan 10, 2020
clang-3.9 is not available on recent Linux distros. Typically, there is clang alias setup for a good version of clang so just use that by default.

Fixes dotnet#5654
MichalStrehovsky added a commit that referenced this issue Jan 11, 2020
clang-3.9 is not available on recent Linux distros. Typically, there is clang alias setup for a good version of clang so just use that by default.

Fixes #5654
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.