Bug 2581961 - coan fails to build with gcc 17 snapshot: 'filebuf' in namespace 'std' does not name a type
Summary: coan fails to build with gcc 17 snapshot: 'filebuf' in namespace 'std' does n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: coan
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Filipe Rosset
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-23 16:05 UTC by Siddhesh Poyarekar
Modified: 2026-11-23 17:35 UTC (History)
3 users (show)

Fixed In Version: coan-6.0.1-57.fc46
Clone Of:
Environment:
Last Closed: 2026-11-23 17:35:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Siddhesh Poyarekar 2026-11-23 16:05:41 UTC
coan fails to compile with the gcc 17 trunk snapshot on all built architectures:
io.h:225:21: error: 'filebuf' in namespace 'std' does not name a type
io.h:233:21: error: 'filebuf' in namespace 'std' does not name a type
make[2]: *** [Makefile:535: contradiction.o] Error 1

io.h uses std::filebuf without including <fstream>; GCC 17 no longer provides it transitively.

Version-Release number of selected component (if applicable):
coan-6.0.1 (rawhide, coan-6.0.1-54.fc46 builds fine with gcc-16); gcc-17.0.0-999.20261120s.3.fc46

This is in preparation of the imminent gcc update for Fedora 46.

Reproducible: Always

Steps to Reproduce:
    Build coan against the gcc-17 snapshot (Copr project @gcc-team/gcc-snapshot-20261120s): https://copr.fedorainfracloud.org/coprs/g/gcc-team/gcc-snapshot-20261120s/

    Compilation of contradiction.o/dataset.o fails in io.h

Actual Results:
compile error — std::filebuf undeclared

Expected Results:
no compile error

Additional Information:
    Fix: add #include <fstream> to io.h

    Builder logs: Copr build 11372516 (coan): https://copr.fedorainfracloud.org/coprs/build/11372516

Comment 1 Fedora Update System 2026-11-23 17:32:34 UTC
FEDORA-2026-8ceaafee26 (coan-6.0.1-57.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-8ceaafee26

Comment 2 Fedora Update System 2026-11-23 17:35:54 UTC
FEDORA-2026-8ceaafee26 (coan-6.0.1-57.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.