-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
arm-none-eabi-ld: Error: unable to disambiguate: -nostartfiles #3826
Comments
Oh this issue is now on Debian based distros as well? We've seen this (a general did you mean --option instead of -option) in arch based distros. We couldn't see any references in the GNU project where -option is replaced with --option, so we assumed an issue in the Arch package. Anyway, did you try to download the toolchain as described in #3209? |
See my question on binutils The answer https://sourceware.org/pipermail/binutils/2021-June/116826.html
|
The flag nostartfiles is not a flag of ld. So it shouldn't appear in LDFLAGS += -nostartfiles I assume that we should change It works for my board |
This is caused by Binutils being updated to the 2.36.x line. This is fixed by PR #3836 This is now documented at Release Notes for the (future) NuttX-10.2 release: https://cwiki.apache.org/confluence/display/NUTTX/NuttX+10.2#ld-now-called-through-gcc |
…of GCC It seems that those flags have always been gcc flags, and not ld flags. After decades of tolerating this, binutils 2.36.x no longer tolerates those flags but prints an error: arm-none-eabi-ld: Error: unable to disambiguate: -nostartfiles (did you mean --nostartfiles ?) See also apache/nuttx#3826 and the related apache/nuttx#3836 how this was solved in another project - I adopted that solution here 1:1 Change-Id: Id199e4d03d5aae07a347c98f47791f42c12008c6
I have faced the same issue as #3209.
I have just installed Ubuntu 21.04. The first build on new Ubuntu failed with this error.
LOG
GCC version
Ld version
The text was updated successfully, but these errors were encountered: