Bug ID | 1208585 |
---|---|
Summary | Missing libstdc++_nano.a in cross-arm-none-eabi |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | x86-64 |
OS | openSUSE Tumbleweed |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Development |
Assignee | screening-team-bugs@suse.de |
Reporter | Michael.Zapf@mizapf.de |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
I'm currently involved in a cross compiling project for an ARM platform, and for that purpose I installed the ARM toolchain from cross-arm-none-eabi. However, linking fails because the libstdc++_nano.a is not included in /usr/arm-none-eabi/lib, and I could not find a suitable package that would add the missing libs. This topic of the missing C++ libs in newlib appears multiple times on the web with various options to fix it, but I am not too familiar with the whole topic of cross-compiling chains to be able to find out which is the proper way to go. What I could see is that the nano.specs file contains a rule to replace -lstdc++ with -lstdc++_nano, although there is no such library. Interestingly, I was successful on Ubuntu 22.04 (in a VM), its /usr/lib/arm-none-eabi/lib (-> /usr/lib/arm_none_eabi/newlib) folder actually contains libs like libstdc++_nano, libsupc++_nano etc. Thus, for now, I am forced to compile the project in Ubuntu in the VM, instead of natively on openSUSE.