From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yang Xu Date: Thu, 22 Oct 2020 10:44:36 +0800 Subject: [LTP] Broken Fedora build In-Reply-To: References: <20201021193547.GA49488@x230> Message-ID: <5F90F214.20102@cn.fujitsu.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Li,Petr > Petr Vorel wrote: > >> Fedora build is broken due missing [1]. >> Quick fix would probably be to use Fedora 33 instead of Rawhide. [2] >> But we should port hugetlb.c and trace_sched.c (if used) to gettimeofday or >> clock_gettime. [3] > > +1 > I prefer to go replace ftime() by gettimeofday() or clock_gettime() > way to solve this from root. +1 I have seen the hugetlb.c and trace_sched.c code, they all use the time to generate a random value for ftok or sched_priority. So using gettimeofday() also looks ok. I will send a patch to use gettimeofday. Best Regards Yang Xu >