LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 37418 - compiler-rt uses deprecated definitions of ustat
Summary: compiler-rt uses deprecated definitions of ustat
Status: RESOLVED FIXED
Alias: None
Product: compiler-rt
Classification: Unclassified
Component: compiler-rt (show other bugs)
Version: unspecified
Hardware: PC Linux
: P enhancement
Assignee: Kostya Serebryany
URL:
Keywords:
: 37775 (view as bug list)
Depends on:
Blocks: release-6.0.1
  Show dependency tree
 
Reported: 2018-05-11 10:59 PDT by Roman Rusyaev
Modified: 2018-06-14 15:33 PDT (History)
5 users (show)

See Also:
Fixed By Commit(s): r333213 r334776


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Rusyaev 2018-05-11 10:59:59 PDT
Hi!

Deprecated function ustat has been removed from upstream glibc.

From NEWS file of glibc version 2.28:
* The obsolete function ustat is no longer available to newly linked
  binaries; the headers <ustat.h> and <sys/ustat.h> have been removed.  This
  function has been deprecated in favor of fstatfs and statfs.

Please, remove all uses of ustat from compiler-rt.

Thanks,
Roman.
Comment 1 H.J. Lu 2018-05-24 12:49:48 PDT
Fixed by compiler-rt revision 333213.
Comment 2 Sunil Pandey 2018-05-31 10:28:35 PDT
Seems like only LLBM mainline got fixed.

Can this issue also get fixed in LLVM release_60 branch too.

LLVM release_60 can not build on Fedora 29(rawhide) because of this issue.
Comment 3 Vitaly Buka 2018-06-11 18:20:10 PDT
Is it OK to merge the following revision(s) to the 6.0 branch?
https://reviews.llvm.org/rL333213
Comment 4 Vitaly Buka 2018-06-11 18:20:18 PDT
*** Bug 37775 has been marked as a duplicate of this bug. ***
Comment 5 Tom Stellard 2018-06-12 15:42:06 PDT
Hi Kostya,

What do you think about merging https://reviews.llvm.org/rL333213 to the release_60 branch?
Comment 6 Tom Stellard 2018-06-14 15:33:41 PDT
Merged: r334776