swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
66.85k stars 10.3k forks source link

[SR-5951] Swift stdlib does not build from source on Linux with glibc 2.26 #48510

Open swift-ci opened 6 years ago

swift-ci commented 6 years ago
Previous ID SR-5951
Radar rdar://problem/35199898
Original Reporter Vladislav (JIRA User)
Type Bug
Environment Linux from scratch: Linux lfs-sdb6 4.9.50 \#1 SMP Fri Sep 15 22:52:51 MSK 2017 x86_64 GNU/Linux
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Standard Library | |Labels | Bug, Linux, Runtime | |Assignee | None | |Priority | Medium | md5: 0d7711196f292553b504ad50861909c4

Issue Description:

The error is:

/mnt/swift/swift-source/swift

xlocale.h is has been removed according to the glibc News file:

The nonstandard header has been removed. Most programs should use instead. If you have a specific need for the definition of locale_t with no other declarations, please contact libc-alpha@sourceware.org and explain.

belkadan commented 6 years ago

@swift-ci create

belkadan commented 6 years ago

Linux From Scratch isn't a supported platform at this time, so fixing this isn't a high priority.

swift-ci commented 6 years ago

Comment by Greg Morenz (JIRA)

Same error on arch linux.

ahti commented 6 years ago

Ubuntu 17.10 also ships with glibc 2.26 and does not include xlocale.h. While Ubuntu 17.10 also isn't supported (yet?), I suspect more people will start to run into this.