From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZyxlI-0005Xe-4a for user-mode-linux-devel@lists.sourceforge.net; Wed, 18 Nov 2015 08:06:40 +0000 Received: from a.ns.miles-group.at ([95.130.255.143] helo=radon.swed.at) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1ZyxlG-0001Cl-Fm for user-mode-linux-devel@lists.sourceforge.net; Wed, 18 Nov 2015 08:06:40 +0000 References: <1446480997-155855-1-git-send-email-aivanov@brocade.com> <563D2217.1070002@nod.at> <564C21FA.1010808@kot-begemot.co.uk> From: Richard Weinberger Message-ID: <564C3186.60803@nod.at> Date: Wed, 18 Nov 2015 09:06:30 +0100 MIME-Version: 1.0 In-Reply-To: List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net Subject: Re: [uml-devel] [PATCH v4] um: Switch clocksource to hrtimers To: Lorenzo Colitti , Anton Ivanov Cc: Thomas Meyer , "user-mode-linux-devel@lists.sourceforge.net" Am 18.11.2015 um 08:10 schrieb Lorenzo Colitti: > On Wed, Nov 18, 2015 at 4:00 PM, Anton Ivanov > wrote: >> It is. >> >> You need -lrt to link in HR timers. However, the original patch should add >> that to the library list. I need to understand why it does not in the dm >> tree. > > I noticed that command already does contain "-lrt", just in a > different place. It starts off with: > > gcc -Wl,-rpath,/lib64 -m64 -Wl,-rpath,/lib -Wl,--wrap,malloc > -Wl,--wrap,free -Wl,--wrap,calloc -Wl,-m -Wl,elf_x86_64 -lrt <...> > > That command line doesn't work, but if you remove the -lrt and put it > at the end of the line, it starts working. Is the order significant? > Or is it a bug in GCC's command line parsing? The order matters. -lrt has to be placed after all object files which need the rt library. Can you double check whether this is the case? Thanks, //richard ------------------------------------------------------------------------------ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel