Bug 1302825

Summary: Last glibc update broke libstdc++ cmath header in rawhide
Product: [Fedora] Fedora Reporter: Milan Bouchet-Valat <nalimilan>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anto.trande, arjun.is, codonell, dj, fweimer, jakub, jwakely, law, mfabian, pfrankli, rdieter, siddhesh, tom
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.22.90-32.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-05 11:56:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Bouchet-Valat 2016-01-28 17:33:05 UTC
This morning, I was able to successfully build the Julia package in rawhide:
https://kojipkgs.fedoraproject.org//packages/julia/0.4.3/1.fc24/data/logs/x86_64/

But now, I get compilation errors (with the very same code):
> /usr/include/c++/6.0.0/cmath:615:11: error: '::isinf' has not been declared
>    using ::isinf;
>            ^~~~~
> /usr/include/c++/6.0.0/cmath:640:11: error: '::isnan' has not been declared
>    using ::isnan;
           ^~~~~
http://koji.fedoraproject.org/koji/taskinfo?taskID=12712802

The only packages which have been updated in the meantime are glibc, openssl-libs and gosrpm-macros. I strongly suspect glibc for obvious reasons, but in particular because isinf and isnan in cmath from libstdc++-devel interact with cmath.h from glibc. It looks like we need a more recent version of gcc, or a patch from upstream, to make them work together:
https://gcc.gnu.org/ml/libstdc++/2016-01/msg00023.html
https://sourceware.org/bugzilla/show_bug.cgi?id=19439

Comment 1 Jonathan Wakely 2016-01-28 17:43:22 UTC
If glibc has been updated then it looks like gcc needs to be rebuilt in rawhide, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69413#c2

Comment 2 Florian Weimer 2016-01-28 18:29:08 UTC
I untagged the glibc build for now.

Comment 3 Milan Bouchet-Valat 2016-01-28 20:41:46 UTC
Thanks, that indeed fixed the problem.

Comment 4 Florian Weimer 2016-01-28 21:03:50 UTC
I've re-tagged it, in preparation for a gcc build which needs the new glibc.

Comment 5 Florian Weimer 2016-01-28 22:02:34 UTC
Untagged again, GCC build is still running: http://koji.fedoraproject.org/koji/taskinfo?taskID=12715698

Comment 6 Florian Weimer 2016-02-05 11:56:46 UTC
Fixed in rawhide.

Comment 7 Milan Bouchet-Valat 2016-02-05 13:04:22 UTC
I can confirm the Julia build went fine in rawhide with glibc 2.22.90-32.fc24.