Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571190 - sys-apps/paludis-2.4.0 patched and paludis-9999 with gcc-5.3: cave fix-linkage: terminate called after throwing an instance of 'std::ios_base::failure'
Summary: sys-apps/paludis-2.4.0 patched and paludis-9999 with gcc-5.3: cave fix-linkag...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-07 19:01 UTC by Harris Landgarten
Modified: 2018-09-19 11:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (ios-base-failure-gcc-bug.patch,1011 bytes, patch)
2017-08-15 13:13 UTC, Harris Landgarten
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2016-01-07 19:01:55 UTC
After rebuilding paludis-2.4.0 patched or paludis-9999 from git with gcc-5.3 when running cave fix-linkage the follow error appears:

$ sudo cave fix-linkage
Searching: 11 directories, 220545 filesterminate called after throwing an instance of 'std::ios_base::failure'
  what():  basic_ios::clear
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-01-17 22:17:03 UTC
Should be fixed in current snapshot.
Comment 2 Harris Landgarten 2016-02-14 00:42:01 UTC
This bug is not fixed. It appears to be a gcc bug. 


see:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53984

I worked around it by building paludis with clang.
Comment 3 kapsh 2017-02-17 21:33:35 UTC
It is not marked as resolved in paludis bugtracker - http://paludis.exherbo.org/trac/ticket/1345
Comment 4 Cddr 2017-07-18 09:58:31 UTC
The problem was gone after GCC patching as discribed at 
http://paludis.exherbo.org/trac/ticket/1335
Comment 5 Bodo Graumann 2017-08-15 07:04:50 UTC
First of all, this is the following gcc bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145

It is only fixed in gcc 7.

@Cddr: Can you please upload the patch for gcc you are using?

Is it possible, that your patch may break other things?
Comment 6 Harris Landgarten 2017-08-15 13:13:16 UTC
Created attachment 489114 [details, diff]
patch

This is the patch that fixes the cave fix-linkage command on gcc5.3 and gcc6
Comment 7 Bodo Graumann 2017-10-08 07:01:11 UTC
The suggested patch works for me. Thank you Harris.
Comment 8 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-09-19 11:42:50 UTC
Paludis has been removed from the tee.