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

Can mold be used with a crrosscompiler like arm-none-eabi-g++ #1114

Open
zrno opened this issue Sep 27, 2023 · 5 comments
Open

Can mold be used with a crrosscompiler like arm-none-eabi-g++ #1114

zrno opened this issue Sep 27, 2023 · 5 comments

Comments

@zrno
Copy link

zrno commented Sep 27, 2023

I am using mold to build my unit tests locally and everything is working fine.

The cross-compiler we use has recently been updated to the 12.2.1 version of GCC.

When I try to pass in "-fuse-ld=mold" as an option when calling arm-none-eabi-g++ I get the error collect2: fatal error: cannot find 'ld'

Is it possible to use mold with a crosscompiler?

@rui314
Copy link
Owner

rui314 commented Sep 27, 2023

It didn't work because of the typo? The correct spelling of the option is -fuse-ld=mold.

@zrno
Copy link
Author

zrno commented Sep 27, 2023

It didn't work because of the typo? The correct spelling of the option is -fuse-ld=mold.

Sorry that was a typo in the issue description only. No typo in my actual command

@rui314
Copy link
Owner

rui314 commented Sep 27, 2023

It seems like a GCC's bug, so I filed this as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605.

In the meantime, please create a arm-none-eabi-ld.mold as a symbolic link to mold in a directory in your $PATH.

@rui314
Copy link
Owner

rui314 commented Oct 17, 2023

@ishitatsuyuki sent a patch to gcc: https://gcc.gnu.org/pipermail/gcc-patches/2023-October/633093.html

@zrno
Copy link
Author

zrno commented Oct 17, 2023

Thanks for the update

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

2 participants