Hey all-
I’m trying to fix build failures for swift-lang on F42 and while
I’ve fixed a number of places where <cstdint> wasn’t explicitly
defined, I’m now getting a strange compile error regarding math.h and
cmath that I can’t reproduce outside of a full build:
```
54 | #if __has_include(<math.h>)
55 | #include <math.h>
| `- note: in file included from
/builddir/build/BUILD/swift-lang-6.0.3-build/usr/lib/swift/_FoundationCShims/_CStdlib.h:55:
56 | #endif
57 |
/usr/lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/math.h:36:11:
note: in file included from
/usr/lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/math.h:36:
34 | #define _GLIBCXX_MATH_H 1
35 |
36 | # include <cmath>
| `- note: in file included from
/usr/lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/math.h:36:
37 |
38 | using std::abs;
/usr/lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/cmath:100:3:
error: redefinition of 'acos'
98 | #ifndef __CORRECT_ISO_CPP_MATH_H_PROTO
99 | inline _GLIBCXX_CONSTEXPR float
100 | acos(float __x)
| |- error: redefinition of 'acos'
| `- note: previous definition is here
101 | { return __builtin_acosf(__x); }
```
https://koji.fedoraproject.org/koji/taskinfo?taskID=128439616
What I don’t get is that it built fine before on F42/Rawhide (and uses
the previously built swift rpm as part of its build process), so I guess
I don’t know what changed.
Thanks for any help!
Ron
--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue