* RFC: Bug 60749 - Do not need to link against -lm for fabs*()
@ 2013-09-13 16:46 walter harms
[not found] ` <5233415A.90506-fPG8STNUNVg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: walter harms @ 2013-09-13 16:46 UTC (permalink / raw)
To: linux-man-u79uwXL29TY76Z2rM5mHXA
hi list,
i was investigating this and the good news it that you still need a libm.
On the other side the reporter is right he does not need to specify that.
Obviously this depends on the linker script used.
The math man pages say: "Link with -lm".
Perhaps it is better to say 'You may need to Link with -lm".
any comments on that ?
re,
wh
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: Bug 60749 - Do not need to link against -lm for fabs*()
[not found] ` <5233415A.90506-fPG8STNUNVg@public.gmane.org>
@ 2013-09-13 18:20 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkiy54SbGEt6KQ2a87SQejoyuzcTvDbVK8aAQXd==yNNvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-09-13 18:20 UTC (permalink / raw)
To: Walter Harms; +Cc: linux-man
Walter,
On Fri, Sep 13, 2013 at 6:46 PM, walter harms <wharms-fPG8STNUNVg@public.gmane.org> wrote:
> hi list,
> i was investigating this and the good news it that you still need a libm.
> On the other side the reporter is right he does not need to specify that.
> Obviously this depends on the linker script used.
>
> The math man pages say: "Link with -lm".
> Perhaps it is better to say 'You may need to Link with -lm".
>
> any comments on that ?
Thanks for looking at this bug. Could you elaborate a little more on
what it/sin't in the linker script that makes the difference?
Thanks,
Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: Bug 60749 - Do not need to link against -lm for fabs*()
[not found] ` <CAKgNAkiy54SbGEt6KQ2a87SQejoyuzcTvDbVK8aAQXd==yNNvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-09-14 12:05 ` walter harms
[not found] ` <5234511C.7030500-fPG8STNUNVg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: walter harms @ 2013-09-14 12:05 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man
Am 13.09.2013 20:20, schrieb Michael Kerrisk (man-pages):
> Walter,
>
> On Fri, Sep 13, 2013 at 6:46 PM, walter harms <wharms-fPG8STNUNVg@public.gmane.org> wrote:
>> hi list,
>> i was investigating this and the good news it that you still need a libm.
>> On the other side the reporter is right he does not need to specify that.
>> Obviously this depends on the linker script used.
>>
>> The math man pages say: "Link with -lm".
>> Perhaps it is better to say 'You may need to Link with -lm".
>>
>> any comments on that ?
>
>
> Thanks for looking at this bug. Could you elaborate a little more on
> what it/sin't in the linker script that makes the difference?
>
I have no clue what linker magic is needed.
re,
wh
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: Bug 60749 - Do not need to link against -lm for fabs*()
[not found] ` <5234511C.7030500-fPG8STNUNVg@public.gmane.org>
@ 2013-09-16 14:57 ` walter harms
[not found] ` <52371C48.7040404-fPG8STNUNVg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: walter harms @ 2013-09-16 14:57 UTC (permalink / raw)
Cc: linux-man
Am 14.09.2013 14:05, schrieb walter harms:
>
>
> Am 13.09.2013 20:20, schrieb Michael Kerrisk (man-pages):
>> Walter,
>>
>> On Fri, Sep 13, 2013 at 6:46 PM, walter harms <wharms-fPG8STNUNVg@public.gmane.org> wrote:
>>> hi list,
>>> i was investigating this and the good news it that you still need a libm.
>>> On the other side the reporter is right he does not need to specify that.
>>> Obviously this depends on the linker script used.
>>>
>>> The math man pages say: "Link with -lm".
>>> Perhaps it is better to say 'You may need to Link with -lm".
>>>
>>> any comments on that ?
>>
>>
>> Thanks for looking at this bug. Could you elaborate a little more on
>> what it/sin't in the linker script that makes the difference?
>>
>
> I have no clue what linker magic is needed.
>
I know what it going on. the is no linker magic required.
The point is gcc build-ins. Some functions are replaced with
build-ins. That happens e.g. with fabs() what the original poster noted.
Disabling the build-ins with gcc -fno-builtin shows that the -lm is still
a requirement.
next problem, who will do the bugzilla-entry ?
re,
wh
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: Bug 60749 - Do not need to link against -lm for fabs*()
[not found] ` <52371C48.7040404-fPG8STNUNVg@public.gmane.org>
@ 2014-03-10 13:25 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-03-10 13:25 UTC (permalink / raw)
To: wharms-fPG8STNUNVg
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Walter,
On 09/16/2013 04:57 PM, walter harms wrote:
>
>
> Am 14.09.2013 14:05, schrieb walter harms:
>>
>>
>> Am 13.09.2013 20:20, schrieb Michael Kerrisk (man-pages):
>>> Walter,
>>>
>>> On Fri, Sep 13, 2013 at 6:46 PM, walter harms <wharms-fPG8STNUNVg@public.gmane.org> wrote:
>>>> hi list,
>>>> i was investigating this and the good news it that you still need a libm.
>>>> On the other side the reporter is right he does not need to specify that.
>>>> Obviously this depends on the linker script used.
>>>>
>>>> The math man pages say: "Link with -lm".
>>>> Perhaps it is better to say 'You may need to Link with -lm".
>>>>
>>>> any comments on that ?
>>>
>>>
>>> Thanks for looking at this bug. Could you elaborate a little more on
>>> what it/sin't in the linker script that makes the difference?
>>>
>>
>> I have no clue what linker magic is needed.
>>
> I know what it going on. the is no linker magic required.
> The point is gcc build-ins. Some functions are replaced with
> build-ins. That happens e.g. with fabs() what the original poster noted.
> Disabling the build-ins with gcc -fno-builtin shows that the -lm is still
> a requirement.
Thanks! I hadn't thought of that. I see there is a list available in
the gcc documentation at http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
> next problem, who will do the bugzilla-entry ?
I will add something to https://bugzilla.kernel.org/show_bug.cgi?id=60749
Fundamentally, this is a gcc feature, and I don't think there's much that
can be sensibly said about it in man-pages.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-10 13:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-13 16:46 RFC: Bug 60749 - Do not need to link against -lm for fabs*() walter harms
[not found] ` <5233415A.90506-fPG8STNUNVg@public.gmane.org>
2013-09-13 18:20 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkiy54SbGEt6KQ2a87SQejoyuzcTvDbVK8aAQXd==yNNvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-14 12:05 ` walter harms
[not found] ` <5234511C.7030500-fPG8STNUNVg@public.gmane.org>
2013-09-16 14:57 ` walter harms
[not found] ` <52371C48.7040404-fPG8STNUNVg@public.gmane.org>
2014-03-10 13:25 ` Michael Kerrisk (man-pages)
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).