libnewlib-arm-none-eabi: Multilib directory structure incompatible with gcc

Bug #1804922 reported by Björn Haase
This bug report is a duplicate of:  Bug #1767223: multilib selects wrong start files. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcc-arm-none-eabi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

stumbled over the very same issue "libnewlib-arm-none-eabi: Multilib directory structure incompatible with gcc"

which has been verified to be valid also by debian guys for ubutu 18.04

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899264

Basically the version of the newlib library does not seem to match with the version of gcc. When linking, gcc-6.3.1 seems to expect other multilib directory structures than provided by newlib.

As a result, linking fails, e.g. for Cortex-M4 code using hard-float support.

The bug has been reproduced for ubuntu 18.04 by others from the debian distribution team

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899264

https://bugs.launchpad.net/gcc-arm-embedded/+bug/1772332

According to Agustin Henze <email address hidden> , Ubuntu just needs to choose the right and most recent package from the debian distribution.

Yours,

Björn

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gcc-arm-none-eabi 15:6.3.1+svn253039-1build1
ProcVersionSignature: Ubuntu 4.13.0-38.43~16.04.1-generic 4.13.16
Uname: Linux 4.13.0-38-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sat Nov 24 09:34:34 2018
InstallationDate: Installed on 2018-04-16 (221 days ago)
InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64 (20180228)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: gcc-arm-none-eabi
UpgradeStatus: Upgraded to bionic on 2018-10-08 (46 days ago)

Revision history for this message
Björn Haase (sp0001) wrote :
Revision history for this message
Björn Haase (sp0001) wrote :

manually installing the libnewlib-arm-none-eabi_3.0.0.20180802-2_all.deb package did fix the problem for me.

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
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) wrote :

The problem is actually in newlib, a newer newlib should be taken from Debian or newlib should be rebuilt against Ubuntu's gcc-arm-none-eabi. The following bug already reports the issue and an affect for newlib in Ubuntu has been added: https://bugs.launchpad.net/ubuntu/+source/newlib/+bug/1772332

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

If this bug is not a duplicate of bug #1767223, please remove the linked duplicate bug.

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.