Skip to content

*-ld.lld linker not recognized as "lld" #117834

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

Closed
androm3da opened this issue Nov 27, 2024 · 5 comments
Closed

*-ld.lld linker not recognized as "lld" #117834

androm3da opened this issue Nov 27, 2024 · 5 comments
Assignees
Labels
backend:Hexagon clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' release:backport

Comments

@androm3da
Copy link
Member

clang provides hexagon-link specific link arguments such as -mcpu=hexagonv65 and -march=hexagon when hexagon-unknown-linux-musl-ld.lld is found. lld rejects this with the following error:

hexagon-unknown-linux-musl-ld.lld: error: unknown emulation: cpu=hexagonv65

clang should instead handle this as it does for the case when ld.lld is found in the PATH when hexagon-unknown-linux-musl-clang -fuse-ld=lld ... is invoked.

@androm3da androm3da added backend:Hexagon clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' labels Nov 27, 2024
@androm3da androm3da self-assigned this Nov 27, 2024
@llvmbot
Copy link
Member

llvmbot commented Nov 27, 2024

@llvm/issue-subscribers-backend-hexagon

Author: Brian Cain (androm3da)

clang provides `hexagon-link` specific link arguments such as `-mcpu=hexagonv65` and `-march=hexagon` when `hexagon-unknown-linux-musl-ld.lld` is found. lld rejects this with the following error:
hexagon-unknown-linux-musl-ld.lld: error: unknown emulation: cpu=hexagonv65

clang should instead handle this as it does for the case when ld.lld is found in the PATH when hexagon-unknown-linux-musl-clang -fuse-ld=lld ... is invoked.

@llvmbot
Copy link
Member

llvmbot commented Nov 27, 2024

@llvm/issue-subscribers-clang-driver

Author: Brian Cain (androm3da)

clang provides `hexagon-link` specific link arguments such as `-mcpu=hexagonv65` and `-march=hexagon` when `hexagon-unknown-linux-musl-ld.lld` is found. lld rejects this with the following error:
hexagon-unknown-linux-musl-ld.lld: error: unknown emulation: cpu=hexagonv65

clang should instead handle this as it does for the case when ld.lld is found in the PATH when hexagon-unknown-linux-musl-clang -fuse-ld=lld ... is invoked.

androm3da added a commit to quic/toolchain_for_hexagon that referenced this issue Nov 27, 2024
Note that adding this symlink uncovered a clang bug, llvm/llvm-project#117834
so this change should not be applied to this repo until after that
fix is selected.

Signed-off-by: Brian Cain <[email protected]>
@androm3da
Copy link
Member Author

This should be fixed by #117338

@androm3da
Copy link
Member Author

/cherry-pick 2dc0de7

@llvmbot
Copy link
Member

llvmbot commented Nov 30, 2024

/pull-request #118181

androm3da added a commit to quic/toolchain_for_hexagon that referenced this issue Dec 3, 2024
Note that adding this symlink uncovered a clang bug, llvm/llvm-project#117834

This change is deliberately applied after that fix landed in llvmorg-19.1.5.

Signed-off-by: Brian Cain <[email protected]>
androm3da added a commit to quic/toolchain_for_hexagon that referenced this issue Dec 3, 2024
Note that adding this symlink uncovered a clang bug, llvm/llvm-project#117834

This change is deliberately applied after that fix landed in llvmorg-19.1.5.

Signed-off-by: Brian Cain <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:Hexagon clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' release:backport
Projects
Development

No branches or pull requests

3 participants