[Bug 1824721] Re: g++-8 in disco is broken with libstdc++6 from gcc9 and libstdc++fs
Launchpad Bug Tracker
1824721 at bugs.launchpad.net
Tue Mar 10 10:45:33 UTC 2020
This bug was fixed in the package gcc-8 - 8.3.0-26ubuntu1~18.04
---------------
gcc-8 (8.3.0-26ubuntu1~18.04) bionic-proposed; urgency=medium
* SRU: LP: #1848319.
* Backport GCC 8.3 8.3.0-26ubuntu1 to bionic.
gcc-8 (8.3.0-26ubuntu1) focal; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
gcc-8 (8.3.0-26) unstable; urgency=medium
* Update to SVN 20191201 (r278885) from the gcc-8-branch.
- Fix PR fortran/92100, PR fortran/92629, PR driver/89014.
* Fix applying the gcc-linaro patch.
* Stop building -dbg packages, keep building the libstc++6-8-dbg package
containing just the libstdc++ debug build.
gcc-8 (8.3.0-25ubuntu4) focal; urgency=medium
* Update to SVN 20191127 (r278756) from the gcc-8-branch.
- Fix PR fortran/92100.
* Stop building -dbg packages, keep building the libstc++6-8-dbg package
containing just the libstdc++ debug build.
gcc-8 (8.3.0-25ubuntu2) focal; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
* Fix applying the Linaro branch.
gcc-8 (8.3.0-25) unstable; urgency=medium
* Update to SVN 20191126 (r278718) from the gcc-8-branch.
- Fix PR c/91401, PR tree-optimization/91355, PR middle-end/90840,
PR target/90867 (x86), PR c/90898, PR middle-end/91450,
PR c++/92384, PR tree-optimization/92056, PR tree-optimization/91665,
PR middle-end/91001, PR middle-end/91105, PR middle-end/91106,
PR middle-end/91623, PR other/92090, PR target/92389 (x86),
PR target/87833 (x86), PR target/92095 (SPARC), PR fortran/92113,
PR tree-optimization/85887, PR c++/92201, PR c++/91974,
PR preprocessor/92296, PR fortran/92569, PR ada/92575.
gcc-8 (8.3.0-24ubuntu1) focal; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
gcc-8 (8.3.0-24) unstable; urgency=medium
* Update to SVN 20191107 (r277923) from the gcc-8-branch.
- Fix PR target/91275 (PPC), PR fortran/84487, PR libstdc++/92143,
PR libstdc++/92059, PR target/86487, PR target/65342 (PPC),
PR target/70010 (PPC), PR target/88167 (ARM), PR debug/91887,
PR tree-optimization/91812, PR debug/91772, PR tree-optimization/92131,
PR target/86040 (AVR), PR rtl-optimization/89721, PR target/89400 (ARM),
PR target/92022 (ALPHA), PR target/88630 (SH), PR c++/88075,
PR c++/92106, PR ada/91995, PR fortran/86248, PR fortran/69455,
PR rtl-optimization/85458, PR target/91289 (PPC).
gcc-8 (8.3.0-23ubuntu2) eoan; urgency=medium
* Update to SVN 20191008 (r276700) from the gcc-8-branch.
- Fix PR target/91275 (PPC), PR fortran/84487.
gcc-8 (8.3.0-23ubuntu1) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
gcc-8 (8.3.0-23) unstable; urgency=medium
* Update to SVN 20191002 (r276439) from the gcc-8-branch.
- Fix PR target/86712 (SH), PR target/88562 (SH), PR target/91854 (SPARC),
PR target/80672 (SH), PR target/85993 (SH), PR rtl-optimization/88751,
PR rtl-optimization/89795, PR fortran/91588, PR fortran/91550,
PR fortran/91557.
* Bump standards version.
gcc-8 (8.3.0-22ubuntu2) eoan; urgency=medium
* Disable lto builds on armhf and arm64, too slow, or ftbfs on the
buildds.
gcc-8 (8.3.0-22ubuntu1) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
gcc-8 (8.3.0-22) unstable; urgency=medium
* Update to SVN 20190909 (r275519) from the gcc-8-branch.
- Fix PR libgomp/90585, PR libstdc++/91308, PR libstdc++/51333,
PR libstdc++/78179, PR libstdc++/90770, PR libstdc++/85965, PR pch/61250,
PR c/90474, PR sanitizer/90954, PR debug/90197, PR pch/90326,
PR target/81800 (AArch64), PR target/91472 (SPARC),
PR tree-optimization/90930, PR tree-optimization/90637,
PR tree-optimization/91108, PR target/91481 (PPC), PR middle-end/88567,
PR tree-optimization/88315, PR debug/90900, PR tree-optimization/90278,
PR middle-end/90194, PR lto/91375, PR tree-optimization/91293,
PR tree-optimization/91280, PR tree-optimization/91200,
PR middle-end/91162, PR middle-end/91131, PR tree-optimization/91126,
PR tree-optimization/90328, PR middle-end/89578, PR middle-end/87609,
PR tree-optimization/87609, PR tree-optimization/87609,
PR tree-optimization/91137, PR tree-optimization/90006,
PR tree-optimization/89725, PR tree-optimization/81740,
PR middle-end/90213, PR tree-optimization/90020, PR bootstrap/87030,
PR target/91150 (x86), PR middle-end/78884, PR rtl-optimization/90756,
PR c/90760, PR debug/90733, PR middle-end/90139, PR target/91533 (x86),
PR rtl-optimization/91347, PR pch/90326, PR middle-end/89392,
PR c++/90950, PR debug/90197, PR fortran/91660, PR target/83531,
PR target/87853 (x86), PR target/91704 (x86).
* Configure --without-target-system-zlib for gdc cross builds.
* any_archs: Remove mips and powerpcspe, add riscv64.
* libstdc++: Fix GCC_LINUX_FUTEX to work with C99 compilers, taken from
the trunk.
gcc-8 (8.3.0-21ubuntu1) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
gcc-8 (8.3.0-21) unstable; urgency=medium
* Update to SVN 20190817 (r274599) from the gcc-8-branch.
- Fix PR lto/90924, PR c/53633, PR rtl-optimization/91173, PR debug/91231,
PR driver/91172, PR c++/82081, PR target/89222 (ARM),
PR target/89190 (ARM), PR target/85711 (ARM), PR rtl-optimization/91136,
PR c++/91436, PR c++/86098, PR fortran/90563, PR fortran/90786,
PR fortran/90813, PR fortran/91414.
* Bump standards version.
gcc-8 (8.3.0-19ubuntu1) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
gcc-8 (8.3.0-19) unstable; urgency=medium
* Update to SVN 20190709 (r273305) from the gcc-8-branch.
- Fix PR fortran/91077.
* Make the lto-verbose-linker patch more robust for hppa (Dave Anglin).
* Avoid building stuff which is not needed for architecture independent
packages. Closes: #900554.
* Disable the LTO builds for armel/armhf, too slow on the buildds.
gcc-8 (8.3.0-18) unstable; urgency=medium
* Update to SVN 20190704 (r273090) from the gcc-8-branch.
- Fix PR middle-end/90899.
* Increase the timeouts for the LTO link builds.
* Dump config files on failed jit and nvptx builds.
* Disable the LTO builds on architectures where the buildds can't keep up.
gcc-8 (8.3.0-17) experimental; urgency=medium
* Try to enable the LTO builds everywhere.
* Make the LTO link step a bit more verbose to avoid timeouts on
the buildds.
gcc-8 (8.3.0-16ubuntu3) eoan; urgency=low
* Disable the LTO build on arm64, timing out on the buildds.
gcc-8 (8.3.0-16ubuntu2) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
gcc-8 (8.3.0-16) experimental; urgency=medium
* Update to SVN 20190702 (r272936) from the gcc-8-branch.
- Fix PR tree-optimization/90949, PR ipa/90939.
* Don't use --push-state/--pop-state options for old linkers.
* Fix explicit autoconf version for backport packages.
* Allow to build with the locales package instead of locales-all.
* Disable LTO and profiled builds for older binutils versions.
* Don't try to use dwz on LTO optimized binaries prior to dwz 2019.
See #931319.
gcc-8 (8.3.0-15) experimental; urgency=medium
* Update to SVN 20190625 (r272643) from the gcc-8-branch.
- Fix PR middle-end/64242 (PARISC), PR fortran/90937, PR fortran/90744.
* Apply proposed fix for PR libgcc/90714 (ia64 only). Closes: #930119.
gcc-8 (8.3.0-14ubuntu1) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
gcc-8 (8.3.0-14) experimental; urgency=medium
* Update to SVN 20190612 (r272183) from the gcc-8-branch.
- Fix PR c++/90532, PR libstdc++/90299, PR libstdc++/90454, PR c++/90532,
PR target/89765 (PPC), PR target/61976 (PPC), PR libstdc++/89466,
PR libstdc++/90220, PR libstdc++/90220, PR c++/85400, PR target/90530,
PR sanitizer/90570, PR target/90547 (x86), PR target/90811 (nvptx),
PR libstdc++/90634, PR libstdc++/90634, PR target/90751 (PARISC),
PR target/82920 (x86), PR fortran/90329, PR fortran/90329, PR c++/90810,
PR fortran/90498, PR fortran/57284, PR fortran/90329, PR bootstrap/89864.
* Turn on -fstack-clash-protection and -fcf-protection in Ubuntu 19.10 on
supported architectures.
* Turn on profiled bootstrap.
gcc-8 (8.3.0-13ubuntu2) eoan; urgency=medium
* Update to SVN 20190521 (r271463) from the gcc-8-branch.
- Fix PR c++/90532, PR libstdc++/90299, PR libstdc++/90454, PR c++/90532,
PR target/89765 (PPC), PR target/61976 (PPC).
* Turn on -fstack-clash-protection and -fcf-protection in Ubuntu 19.10 on
supported architectures.
gcc-8 (8.3.0-13ubuntu1) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
gcc-8 (8.3.0-13) experimental; urgency=medium
* Update to SVN 20190514 (r271166) from the gcc-8-branch.
- Fix PR gcov-profile/90380, PR libstdc++/81266, PR libstdc++/89102
(partial), PR libstdc++/88740, PR libstdc++/90165, PR libstdc++/90105,
PR libstdc++/85965, PR libstdc++/89629, PR target/89424 (PPC),
PR c++/88857, PR c++/89214, PR c++/89511, PR c++/89705, PR c++/89876.
* Ignore any distro default flags for the hppa64 cross build.
gcc-8 (8.3.0-12ubuntu1) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
- Don't built common libraries now build from GCC 9.
gcc-8 (8.3.0-12) experimental; urgency=medium
* Update to SVN 20190506 (r270919) from the gcc-8-branch.
- Fix the profiled bootstrap on arm64. PR bootstrap/90359.
gcc-8 (8.3.0-11) experimental; urgency=medium
* Stop building packages built by gcc-9.
* Update from the gcc-8 ARM/Linaro branch.
gcc-8 (8.3.0-10ubuntu3) eoan; urgency=medium
* Update from the gcc-8 ARM/Linaro branch.
gcc-8 (8.3.0-10ubuntu1) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
- Don't built common libraries now build from GCC 9.
gcc-8 (8.3.0-10) experimental; urgency=medium
* Update to SVN 20190505 (r270881) from the gcc-8-branch.
- Fix PR c/89946, PR c++/90108, PR c/89933, PR c/89734,
PR target/90193, PR target/90187 (x86), PR tree-optimization/90208,
PR rtl-optimization/90082, PR tree-optimization/90090,
PR rtl-optimization/89965, PR c/89946, PR rtl-optimization/90026,
PR rtl-optimization/89965, PR c++/90010, PR tree-optimization/89998,
PR c/89872, PR middle-end/89621, PR target/89752, PR target/89752,
PR rtl-optimization/89768, PR target/89726 (x86), PR debug/89704,
PR ipa/89684, PR rtl-optimization/89679, PR tree-optimization/89703,
PR debug/89498, PR middle-end/88588, PR middle-end/89663, PR c/88568,
PR target/89587 (PPC), PR middle-end/89590, PR middle-end/89412,
PR c/89520, PR middle-end/89091, PR middle-end/88074, PR middle-end/89415,
PR middle-end/88074, PR target/86538 (AArch64), PR target/37369 (AArch64),
PR middle-end/89037, PR target/85910 (AArch64), PR debug/89631,
PR c++/90108, PR c/89933, PR sanitizer/89869, PR c++/89796,
PR c++/60702, PR c++/89767, PR c++/89512, PR c++/87148, PR c++/89403,
PR c++/89405, PR fortran/89651, PR middle-end/89698,
PR tree-optimization/89595, PR tree-optimization/89710,
PR tree-optimization/90071, PR target/86984 (alpha),
PR target/89711 (x86).
* Merge some hardening defaults patches into one patch set.
* Turn on -fasynchronous-unwind-tables by default on supported architectures
for bullseye.
gcc-8 (8.3.0-7ubuntu1) eoan; urgency=medium
* Merge with Debian; remaining changes:
- Build from upstream sources.
- Don't built common libraries now build from GCC 9.
gcc-8 (8.3.0-7) unstable; urgency=medium
* Update to SVN 20190428 (r270630) from the gcc-8-branch.
- Fix PR target/89877 (ARC), PR target/84369 (PPC),
PR tree-optimization/85762, PR tree-optimization/87008,
PR tree-optimization/85459, PR target/87532 (PPC),
PR target/87532 (PPC), PR ipa/89693, PR middle-end/88587,
PR tree-optimization/90018, PR target/90024 (ARM),
PR target/89945 (ARM), PR fortran/87352, PR fortran/89981,
PR fortran/89904, PR libgfortran/79540, PR fortran/87127,
PR rtl-optimization/87979, PR rtl-optimization/84032.
* Fix PR c++/90050, always link with libstdc++fs.a. LP: #1824721.
* Fix PR bootstrap/87338 on ia64 (James Clarke). Closes: #927976.
-- Matthias Klose <doko at ubuntu.com> Wed, 04 Dec 2019 15:45:52 +0100
** Changed in: gcc-8 (Ubuntu Bionic)
Status: Fix Committed => Fix Released
** Changed in: gcc-8 (Ubuntu Bionic)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-8 in Ubuntu.
https://bugs.launchpad.net/bugs/1824721
Title:
g++-8 in disco is broken with libstdc++6 from gcc9 and libstdc++fs
Status in gcc:
Invalid
Status in gcc-8 package in Ubuntu:
Fix Released
Status in gcc-8 source package in Bionic:
Fix Released
Bug description:
There is a significant incompatibility here which leaves the default
C++ compiler broken with C++17 std::filesystem usage. Unfortunately,
there isn't an obvious workaround since there's only one libstdc++6
package, and it's using the non-default and unreleased GCC9 version of
libstdc++, making it impossible to use the compatible GCC8 version of
the library.
% cat testpath.cpp
#include <filesystem>
int main()
{
std::filesystem::path p("test");
}
g++-9 -std=c++17 -lstdc++fs -g3 -o testpath testpath.cpp
% ./testpath
% g++-8 -std=c++17 -lstdc++fs -g3 -o testpath testpath.cpp
% ./testpath
zsh: segmentation fault (core dumped) ./testpath
% gdb testpath
GNU gdb (Ubuntu 8.2.91.20190405-0ubuntu3) 8.2.91.20190405-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from testpath...
(gdb) run
Starting program: /tmp/testpath
Program received signal SIGSEGV, Segmentation fault.
0x000055555555649b in std::vector<std::filesystem::__cxx11::path::_Cmpt, std::allocator<std::filesystem::__cxx11::path::_Cmpt> >::~vector (this=0x23, __in_chrg=<optimised out>) at /usr/include/c++/8/bits/stl_vector.h:567
567 std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
(gdb) bt
#0 0x000055555555649b in std::vector<std::filesystem::__cxx11::path::_Cmpt, std::allocator<std::filesystem::__cxx11::path::_Cmpt> >::~vector (this=0x23, __in_chrg=<optimised out>) at /usr/include/c++/8/bits/stl_vector.h:567
#1 0x0000555555556314 in std::filesystem::__cxx11::path::~path (this=0x3, __in_chrg=<optimised out>)
at /usr/include/c++/8/bits/fs_path.h:208
#2 0x0000555555556f5c in std::filesystem::__cxx11::path::_Cmpt::~_Cmpt (this=0x3, __in_chrg=<optimised out>)
at /usr/include/c++/8/bits/fs_path.h:643
#3 0x0000555555556f77 in std::_Destroy<std::filesystem::__cxx11::path::_Cmpt> (__pointer=0x3)
at /usr/include/c++/8/bits/stl_construct.h:98
#4 0x0000555555556e27 in std::_Destroy_aux<false>::__destroy<std::filesystem::__cxx11::path::_Cmpt*> (
__first=0x3, __last=0x0) at /usr/include/c++/8/bits/stl_construct.h:108
#5 0x0000555555556a98 in std::_Destroy<std::filesystem::__cxx11::path::_Cmpt*> (__first=0x3, __last=0x0)
at /usr/include/c++/8/bits/stl_construct.h:137
#6 0x00005555555567a9 in std::_Destroy<std::filesystem::__cxx11::path::_Cmpt*, std::filesystem::__cxx11::path::_Cmpt> (__first=0x3, __last=0x0) at /usr/include/c++/8/bits/stl_construct.h:206
#7 0x00005555555564b1 in std::vector<std::filesystem::__cxx11::path::_Cmpt, std::allocator<std::filesystem::__cxx11::path::_Cmpt> >::~vector (this=0x7fffffffe310, __in_chrg=<optimised out>)
at /usr/include/c++/8/bits/stl_vector.h:567
#8 0x0000555555556314 in std::filesystem::__cxx11::path::~path (this=0x7fffffffe2f0, __in_chrg=<optimised out>)
at /usr/include/c++/8/bits/fs_path.h:208
#9 0x0000555555556230 in main () at testpath.cpp:5
(gdb) quit
A debugging session is active.
Inferior 1 [process 2414] will be killed.
Quit anyway? (y or n) y
To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1824721/+subscriptions
More information about the foundations-bugs
mailing list