swiftlang/swift

[SR-6082] Produce a better error message if Swift is run on a system without clang++

Open

#48 637 ouverte le 6 oct. 2017

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Swift (10 719 forks)batch import
Linuxcompilergood first issueimprovementlegacy driver

Métriques du dépôt

Stars
 (69 989 stars)
Métriques de merge PR
 (Merge moyen 8j 17h) (510 PRs mergées en 30 j)

Description

Previous ID SR-6082
Radar rdar://problem/23197056
Original Reporter @belkadan
Type Improvement
Votes 0
Component/s Compiler
Labels Improvement, Driver, Linux, StarterBug
Assignee None
Priority Medium

md5: 0ed0a272c70aa068a13e89f859372a45

relates to:

  • SR-834 Very unhelpful error message when clang++ cannot be invoked

Issue Description:

Swift on Linux (and other non-Apple platforms) calls clang++ to perform linking; if it's not found, we used to get this lousy error message:

<unknown>:0: error: link command failed with exit code 127 (use -v to see invocation)

We should do better. (It's possible we already do do better; I just don't have access to a Linux system without clang++ installed at the moment. If you have such a system, you can help out with this bug by downloading Swift from https://swift.org/download/ and seeing what echo 'print("hello")' | swiftc - produces.)

Guide contributeur