* Ron Olson:

> Hey all-
>
> I got this issue in my GH account I use for building Swift for Fedora:
> https://github.com/tachoknight/swift-lang-packaging-fedora/issues/2. The
> TL;DR is that the person was trying to build Swift on Rawhide which he
> moved to from an older version of Fedora. This tracks with something I
> discovered as well: I have a current Fedora VM (not Rawhide) that I’ve
> been upgrading from version to version for several years now, and
> suddenly it cannot build Swift due to a series of bizarre error
> messages like:
>
> …
> /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/set:60:10: 
> note: in file included from
> /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/set:60:
> #include <bits/stl_tree.h>
> ^
> /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_tree.h:2008:5:
>  error: missing
> '#include 
> "gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_pair.h"'; 
> 'pair' must be
> declared before it is used
> pair<typename _Rb_tree<_Key, _Val, _KeyOfValue,
> ^
> /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_pair.h:185:12:
>  note: declaration
> here is not visible
> struct pair
> …

Rawhide has GCC 13, so the paths look wrong.  Try checking package
versions, and run “rpm -Va” to check for corruption.

For the error with the /13/ in the path, is it possible that the Clang
bundled with Swift cannot handle current libstdc++ headers yet?

Thanks,
Florian
_______________________________________________
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

Reply via email to