-
Notifications
You must be signed in to change notification settings - Fork 25
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
Xbuild ignoring the linker config flag #26
Comments
Which version of cargo-xbuild are you using? There was an issue that might cause this in version 0.5.1, which should be fixed in version 0.5.2. |
According to cargo xbuild --version im running on 0.5.3 with rustc at rustc 1.33.0-nightly from the 4th january 2018 |
Ok, then it's something different. When does it fail? When linking the sysroot (i.e. |
It fails after compiling everything with the note about ld being
And if i just set the -C option as shown in my issue everything just works perfect which I assume is the case because now its trying to link an arm-none-eabi compiled file with my system ld which does of course not work as that one is made for x86 linux. |
Could you do a Cargo-xbuild should only execute a normal |
Here you go |
Thanks! According to the cargo documentation, the linker argument should be passed as Can you try to add |
Okay if i run
|
Ok, then this is an issue with cargo itself. It seems like the |
Posted the issue over here |
I wrote the following .cargo/config file for an arm-none-eabi target
When i run cargo xbuild --target=arm-none-eabi.json it fails because it tries to link everything together with the cc linker. However when i insert "-C", "linker=arm-none-eabi-gcc" as follows
It does use the arm-none-eabi-gcc linker correctly. Is xbuild actually just ignoring the linker flag (on purpose or without?) or am I supposed to do define the linker in a different way. If this actually turns out to be a bug with xbuild I'd happily try to add a fix so it picks up the linker flag.
The text was updated successfully, but these errors were encountered: