Article 4ZXZN Error When Cross-Compiling for Arm Using Newlib Nano Libs

Error When Cross-Compiling for Arm Using Newlib Nano Libs

by
Sylvester Ink
from LinuxQuestions.org on (#4ZXZN)
I'm trying to build an Arm project using the arm-gcc cross compiler along with the libraries in the newlib package. It builds just fine, but when it comes to linking, I get the following error:
Code:/usr/bin/arm-none-eabi-ld: cannot find -lg_nano
/usr/bin/arm-none-eabi-ld: cannot find -lstdc++_nano
/usr/bin/arm-none-eabi-ld: cannot find -lc_nano
/usr/bin/arm-none-eabi-ld: cannot find -lc_nanoI am using the following linker flag:
Code:-specs=nano.specsThis is to use the libraries optimized to be smaller and lighter for embedded devices. If I remove that particular flag, it builds just fine.

Both arm-gcc and newlib are from Slackbuilds.org, and the arm-gcc Slackbuild script has been altered to add support for the c++ language.

Is newlib compiled without nano support? If that's the case, why is the nano.specs file available in the package? Also, what would I need to change in the Slackbuild in order for newlib to be built with support?latest?d=yIl2AUoC8zA latest?i=D0GgB3-V6AM:7iqsYpCXo_Q:F7zBnMy latest?i=D0GgB3-V6AM:7iqsYpCXo_Q:V_sGLiP latest?d=qj6IDK7rITs latest?i=D0GgB3-V6AM:7iqsYpCXo_Q:gIN9vFwD0GgB3-V6AM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments