[Bug 1799955] Re: Cannot install multiarch libstdc++-7-dev:armhf and libstdc++-7-dev:amd64 on Ubuntu 18.04
Launchpad Bug Tracker
1799955 at bugs.launchpad.net
Thu Nov 1 10:05:26 UTC 2018
This bug was fixed in the package gcc-7 - 7.3.0-30ubuntu1
---------------
gcc-7 (7.3.0-30ubuntu1) disco; urgency=medium
* Backport the libstdc++ mersenne twister optimization for AArch64, so that
the random header is the same on all architectures (Ubuntu only).
LP: #1799955.
gcc-7 (7.3.0-30) unstable; urgency=medium
* Update to SVN 20181030 (r265622) from the gcc-7-branch.
- Fix PR middle-end/86542, PR middle-end/86539, PR middle-end/86660,
PR libstdc++/87749, PR libstdc++/87704, PR libstdc++/79433,
PR libstdc++/87641, PR libstdc++/86751, PR libstdc++/78595,
PR libstdc++/87061, PR libstdc++/70966, PR libstdc++/77854,
PR libstdc++/87538, PR tree-optimization/87473, PR middle-end/87623,
PR target/87511 (AArch64), PR target/87550 (x86), PR middle-end/87248,
PR rtl-optimization/87065, PR middle-end/86627, PR middle-end/86542,
PR middle-end/86539, PR middle-end/86660, PR middle-end/87024,
PR middle-end/86505, PR target/87370 (x86), PR target/87517 (x86),
PR target/87522 (x86), PR other/87353, PR target/87467 (x86),
PR target/87033 (PPC), PR debug/86687, PR c++/3698, PR c++/86208,
PR fortran/86421.
* Don't configure native builds with --with-sysroot. Apparently this cannot
be completely overridden with the command line option --sysroot.
* Update VCS attributes in the control file.
gcc-7 (7.3.0-29) unstable; urgency=medium
* Update to SVN 20180904 (r264075) from the gcc-7-branch.
- Fix PR sanitizer/86022, PR tree-optimization/85859, PR target/86662,
PR target/87014 (x86), PR c++/86763.
-- Matthias Klose <doko at ubuntu.com> Tue, 04 Sep 2018 17:28:42 +0200
** Changed in: gcc-7 (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1799955
Title:
Cannot install multiarch libstdc++-7-dev:armhf and
libstdc++-7-dev:amd64 on Ubuntu 18.04
Status in gcc-7 package in Ubuntu:
Fix Released
Status in gcc-7 source package in Bionic:
New
Status in gcc-7 source package in Cosmic:
New
Bug description:
The Ubuntu packages of libstdc++-7-dev:amd64 and libstdc++-7-dev:armhf
do not correctly co-install due to a differing shared file in
/usr/include/c++/7/ext/random. This issue is not present in Debian
stable or unstable as far as I can tell, nor is it in Ubuntu 16.04.
The error is:
dpkg: error processing archive /tmp/apt-dpkg-install-8t5R5l/13-libstdc++-7-dev_7.3.0-27ubuntu1~18.04_armhf.deb (--unpack):
trying to overwrite shared '/usr/include/c++/7/ext/random', which is different from other instances of package libstdc++-7-dev:armhf
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/tmp/apt-dpkg-install-8t5R5l/13-libstdc++-7-dev_7.3.0-27ubuntu1~18.04_armhf.deb
To reproduce:
docker run -it ubuntu:bionic /bin/bash
apt update && apt install clang libstdc++-7-dev-armhf-cross
echo -e "#include <string>\nint main() { std::string a; }" > test.cpp
dpkg --add-architecture armhf
sed -i 's/deb /deb [arch=amd64] /' /etc/apt/sources.list && egrep "^deb " /etc/apt/sources.list | sed 's/amd64/armhf/' | sed 's|http://.*.ubuntu.com/ubuntu/|http://ports.ubuntu.com/|' >> /etc/apt/sources.list
apt update && apt install libstdc++-7-dev:armhf
# here is the bug
dpkg: error processing archive /tmp/apt-dpkg-install-8t5R5l/13-libstdc++-7-dev_7.3.0-27ubuntu1~18.04_armhf.deb (--unpack):
trying to overwrite shared '/usr/include/c++/7/ext/random', which is different from other instances of package libstdc++-7-dev:armhf
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/tmp/apt-dpkg-install-8t5R5l/13-libstdc++-7-dev_7.3.0-27ubuntu1~18.04_armhf.deb
# manually removing "random" allows package to install
rm /usr/include/c++/7/ext/random
apt -f install
clang++ -target arm-linux-gnueabihf test.cpp
# WORKS
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-7/+bug/1799955/+subscriptions
More information about the foundations-bugs
mailing list