ish icon indicating copy to clipboard operation
ish copied to clipboard

invalid linker name in argument '-fuse-ld=lld'

Open alizahedi94 opened this issue 4 years ago • 9 comments

Hi

I have installed LLVM with "brew install llvm" and when I try to build for iOS in Xcode I still get the error "invalid linker name in argument '-fuse-ld=lld'"

How can I get this project to run?

Thanks

alizahedi94 avatar Feb 06 '21 20:02 alizahedi94

You might try my custom version of iSH, specifically...

https://github.com/emkey1/ish-AOK/tree/golden6

I'm fairly sure I got that to build on my M1 MacBook Air.

Ignore the golden7 version, it has some issues.

If you try it and it doesn't work, please leave me an issue on my fork and I'll see if I can get you going.

emkey1 avatar Feb 06 '21 21:02 emkey1

@alizahedi94 Are you building on Apple silicon?

@emkey1 we should probably just fix this upstream first, to be honest.

saagarjha avatar Feb 06 '21 21:02 saagarjha

@emkey1 Since your project is a fork how do I download the submodules?

@saagarjha Yes

alizahedi94 avatar Feb 06 '21 21:02 alizahedi94

@emkey1 Since your project is a fork how do I download the submodules?

@saagarjha Yes

Clone the whole thing and do

git switch golden6

To be sure you're in the right branch.

emkey1 avatar Feb 06 '21 21:02 emkey1

@alizahedi94 Are you building on Apple silicon?

@emkey1 we should probably just fix this upstream first, to be honest.

Agreed, but I'm honestly not sure what fixed it. There were two things I recall. One was adding the brew bin directory to the path and the other was using the full path to the non Apple clang for one of the modules.

Comparing the new might shed some light but there have been a lot of changes in my fork and I'm not all that great at keeping things clean git wise.

emkey1 avatar Feb 06 '21 21:02 emkey1

@emkey1

Tried your project and still getting /opt/homebrew/bin/clang:1:1: invalid linker name in argument '-fuse-ld=lld'

alizahedi94 avatar Feb 06 '21 22:02 alizahedi94

apk add lld

vareille avatar Dec 29 '23 04:12 vareille

this is almost 3 years old

auser1337 avatar Dec 29 '23 04:12 auser1337