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

Failed Build: /usr/bin/ld: unrecognised emulation mode: llvm #349

Closed
jimafisk opened this issue Oct 30, 2024 · 2 comments
Closed

Failed Build: /usr/bin/ld: unrecognised emulation mode: llvm #349

jimafisk opened this issue Oct 30, 2024 · 2 comments

Comments

@jimafisk
Copy link
Member

Build: https://github.com/plentico/plenti/actions/runs/11598535151/job/32294588004

Error:

/usr/bin/ld: unrecognised emulation mode: llvm
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386pep i386pe
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Error: The process '/opt/hostedtoolcache/goreleaser-action/2.3.2/x64/goreleaser' failed with exit code 1

This is the same error documented here: plentico/osxcross-target#6

The problem is it's trying to use the system's ld but should be using the osxcross-target ld. Simply adding it to the path should fix this:

export PATH=/home/runner/work/osxcross/target/bin:$PATH
@jimafisk
Copy link
Member Author

Still failing: https://github.com/plentico/plenti/actions/runs/11598677370/job/32295055197

So tried 0255b99 but that wasn't right either: https://github.com/plentico/plenti/actions/runs/11598825245/job/32295558415

error=hook failed: shell: 'export PATH=/home/runner/work/osxcross/target/bin:$PATH': exec: "export": executable file not found in $PATH: [no output]
Error: The process '/opt/hostedtoolcache/goreleaser-action/2.3.2/x64/goreleaser' failed with exit code 1

@jimafisk
Copy link
Member Author

Should be fixed in v0.7.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant