Bug 2581961

Summary: coan fails to build with gcc 17 snapshot: 'filebuf' in namespace 'std' does not name a type
Product: [Fedora] Fedora Reporter: Siddhesh Poyarekar <sipoyare>
Component: coanAssignee: Filipe Rosset <rosset.filipe>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: ajax, i, rosset.filipe
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: coan-6.0.1-57.fc46 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-23 17:35:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.