Error: unable to disambiguate: -nostartfiles

Alexander Vasiliev alexvasiljev@gmail.com
Wed Jun 2 09:36:58 GMT 2021


Hello!

I work with apache incubator-nuttx project (
https://github.com/apache/incubator-nuttx). It was compiled well for a long
time.
But now I have updated my distro to Ubuntu 21.04. it seems that It comes
with new arm-none-eabi utils.
Now the compilation run into following error

LD: nuttx
arm-none-eabi-ld: Error: unable to disambiguate: -nostartfiles (did
you mean --nostartfiles ?)
make[1]: *** [Makefile:156: nuttx] Error 1

As I understand -nostartfiles should be a valid flag. Why is it not
recognized?

GCC version

arm-none-eabi-gcc --version
arm-none-eabi-gcc (15:9-2019-q4-0ubuntu2) 9.2.1 20191025 (release)
[ARM/arm-9-branch revision 277599]

Ld version

arm-none-eabi-ld --version
GNU ld (2.36.1-0ubuntu1+14build1) 2.36.1



Best regards,
Alexander Vasiljev


More information about the Binutils mailing list