From: Richard Weinberger <richard@nod.at>
To: Lorenzo Colitti <lorenzo@google.com>,
Anton Ivanov <anton.ivanov@kot-begemot.co.uk>
Cc: Thomas Meyer <thomas@m3y3r.de>,
"user-mode-linux-devel@lists.sourceforge.net"
<user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] [PATCH v4] um: Switch clocksource to hrtimers
Date: Wed, 18 Nov 2015 09:06:30 +0100 [thread overview]
Message-ID: <564C3186.60803@nod.at> (raw)
In-Reply-To: <CAKD1Yr0uNgTk90J00URiaxaWgeDB6rxUA7+Osy1-macXz3dQ_Q@mail.gmail.com>
Am 18.11.2015 um 08:10 schrieb Lorenzo Colitti:
> On Wed, Nov 18, 2015 at 4:00 PM, Anton Ivanov
> <anton.ivanov@kot-begemot.co.uk> 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
next prev parent reply other threads:[~2015-11-18 8:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-02 16:16 [uml-devel] [PATCH v4] um: Switch clocksource to hrtimers Anton Ivanov
2015-11-02 21:50 ` Richard Weinberger
2015-11-02 22:13 ` Anton Ivanov
2015-11-03 7:11 ` Anton Ivanov
2015-11-03 7:58 ` Thomas Meyer
2015-11-06 21:56 ` Richard Weinberger
2015-11-07 10:29 ` Anton Ivanov
2015-11-07 10:32 ` Richard Weinberger
2015-11-18 1:20 ` Lorenzo Colitti
2015-11-18 7:00 ` Anton Ivanov
2015-11-18 7:10 ` Lorenzo Colitti
2015-11-18 8:06 ` Richard Weinberger [this message]
2015-11-18 13:32 ` Lorenzo Colitti
2015-11-18 13:40 ` Richard Weinberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=564C3186.60803@nod.at \
--to=richard@nod.at \
--cc=anton.ivanov@kot-begemot.co.uk \
--cc=lorenzo@google.com \
--cc=thomas@m3y3r.de \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).