libc++ files version mismatch

Bug #1811296 reported by Marco Manino
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcc-arm-none-eabi (Ubuntu)
Invalid
Undecided
Unassigned
libstdc++-arm-none-eabi (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I just installed gcc-arm-none-eabi toolchain and I can't compile even the simplest c++ source as g++ complaints about missing headers.

If I open the header folder (/usr/include/newlib/c++/) I can see a folder name 7.3.1 which contains everything I need (apparently). However the result of the command:

  arm-none-eabi-g++ -v

tells me that g++ version is 6.3.1(2017-06-20) and not 7.3.1.

In fact creating a symlink /usr/include/newlib/c++/6.3.1 -> /usr/include/newlib/c++/7.3.1 helps the compiler find the headers, but the compilation quickly fails because of some builtins missing (in my case, __builtin_addressof).

I think there is something messed up with the dependencies, as __builtin_addressof has been implemented later than Jun 2017 (but I am not sure).

Revision history for this message
Mike Purvis (mikepurvis) wrote :

This was working correctly on Ubuntu Focal with gcc-arm-none-eabi (15:7-2018-q2-6) and libstdc++-arm-none-eabi-newlib (15:7-2018-q2-5+12).

However, now that gcc-arm-none-eabi is at 15:8-2019-q3-1, it's broken again. Hopefully the newlib package will get a rebuild prior to release which should correct the issues.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gcc-arm-none-eabi (Ubuntu):
status: New → Confirmed
Changed in libstdc++-arm-none-eabi (Ubuntu):
status: New → Confirmed
Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

Fixed in libstdc++-arm-none-eabi-newlib 15:8-2019-q3-1+12build1

Is this still a problem for older releases? Is there anything that could be done to prevent this happening in the future?

Changed in gcc-arm-none-eabi (Ubuntu):
status: Confirmed → Invalid
Changed in libstdc++-arm-none-eabi (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Mike Purvis (mikepurvis) wrote :

Not sure about older released, but it's actually broken again already— currently in Sid, the versions of gcc-arm-none-eabi and libstdc++-arm-none-eabi are both 15:8-2019-q3-1:

https://packages.debian.org/sid/devel/gcc-arm-none-eabi
https://packages.debian.org/sid/devel/libstdc++-arm-none-eabi-newlib

However in Focal, we now have gcc-arm-none-eabi bumped ahead to 15:9-2019-q4-0ubuntu1, per:

http://changelogs.ubuntu.com/changelogs/pool/universe/g/gcc-arm-none-eabi/gcc-arm-none-eabi_9-2019-q4-0ubuntu1/changelog

But libstdc++-arm-none-eabi-newlib is still lagging at 15:8-2019-q3-1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.