* [Xenomai] Compiling issue Xenomai 3.0 rc3
@ 2015-02-19 13:40 Michael Smith
2015-02-19 13:45 ` Gilles Chanteperdrix
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Michael Smith @ 2015-02-19 13:40 UTC (permalink / raw)
To: xenomai
Hi. I'm having trouble compiling the newest release (Xenomai 3.0-rc3).
With the error
autotune.c: In function ‘main’:
autotune.c:298:16: error: ignoring return value of ‘daemon’, declared with
attribute warn_unused_result [-Werror=unused-result]
daemon(0, 0);
Is there an way to override the -Werror flags so it doesn't break on
warnings without editing the make files?
Or is the policy on Xenomai to always compile cleanly without warnings.
Is this maybe my compilation method, but then again I did compile Xenomai
3.0-rc2 without an issue.
But I assume when a release is done it does compile cleanly.
Thanks
Michael
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Xenomai] Compiling issue Xenomai 3.0 rc3
2015-02-19 13:40 [Xenomai] Compiling issue Xenomai 3.0 rc3 Michael Smith
@ 2015-02-19 13:45 ` Gilles Chanteperdrix
2015-02-19 13:46 ` Huy Cong Vu
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2015-02-19 13:45 UTC (permalink / raw)
To: Michael Smith; +Cc: xenomai
On Thu, Feb 19, 2015 at 03:40:35PM +0200, Michael Smith wrote:
> Hi. I'm having trouble compiling the newest release (Xenomai 3.0-rc3).
> With the error
>
> autotune.c: In function ‘main’:
> autotune.c:298:16: error: ignoring return value of ‘daemon’, declared with
> attribute warn_unused_result [-Werror=unused-result]
> daemon(0, 0);
>
> Is there an way to override the -Werror flags so it doesn't break on
> warnings without editing the make files?
> Or is the policy on Xenomai to always compile cleanly without warnings.
> Is this maybe my compilation method, but then again I did compile Xenomai
> 3.0-rc2 without an issue.
> But I assume when a release is done it does compile cleanly.
It compiles cleanly with the maintainer's compiler, which is not
necessarily the same as the one you are using.
Anyway, this is all my fault, this bug has already been signaled. I
said I would fix it, which obviously I did not.
--
Gilles.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Xenomai] Compiling issue Xenomai 3.0 rc3
2015-02-19 13:40 [Xenomai] Compiling issue Xenomai 3.0 rc3 Michael Smith
2015-02-19 13:45 ` Gilles Chanteperdrix
@ 2015-02-19 13:46 ` Huy Cong Vu
2015-02-19 14:16 ` Philippe Gerum
2015-02-19 14:23 ` Gilles Chanteperdrix
3 siblings, 0 replies; 7+ messages in thread
From: Huy Cong Vu @ 2015-02-19 13:46 UTC (permalink / raw)
To: Michael Smith; +Cc: xenomai
----- Mail original -----
> De: "Michael Smith" <2michael.smith@gmail.com>
> À: xenomai@xenomai.org
> Envoyé: Jeudi 19 Février 2015 14:40:35
> Objet: [Xenomai] Compiling issue Xenomai 3.0 rc3
> Hi. I'm having trouble compiling the newest release (Xenomai 3.0-rc3).
> With the error
>
> autotune.c: In function ‘main’:
> autotune.c:298:16: error: ignoring return value of ‘daemon’, declared with
> attribute warn_unused_result [-Werror=unused-result]
> daemon(0, 0);
See:
https://xenomai.org/pipermail/xenomai/2014-December/032690.html
>
> Is there an way to override the -Werror flags so it doesn't break on
> warnings without editing the make files?
> Or is the policy on Xenomai to always compile cleanly without warnings.
> Is this maybe my compilation method, but then again I did compile Xenomai
> 3.0-rc2 without an issue.
> But I assume when a release is done it does compile cleanly.
>
> Thanks
> Michael
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
--
Huy Cong
Wandercraft SAS
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai] Compiling issue Xenomai 3.0 rc3
2015-02-19 13:40 [Xenomai] Compiling issue Xenomai 3.0 rc3 Michael Smith
2015-02-19 13:45 ` Gilles Chanteperdrix
2015-02-19 13:46 ` Huy Cong Vu
@ 2015-02-19 14:16 ` Philippe Gerum
2015-02-19 14:21 ` Philippe Gerum
2015-02-19 14:23 ` Gilles Chanteperdrix
3 siblings, 1 reply; 7+ messages in thread
From: Philippe Gerum @ 2015-02-19 14:16 UTC (permalink / raw)
To: Michael Smith, xenomai
On 02/19/2015 02:40 PM, Michael Smith wrote:
> Hi. I'm having trouble compiling the newest release (Xenomai 3.0-rc3).
> With the error
>
> autotune.c: In function ‘main’:
> autotune.c:298:16: error: ignoring return value of ‘daemon’, declared with
> attribute warn_unused_result [-Werror=unused-result]
> daemon(0, 0);
>
> Is there an way to override the -Werror flags so it doesn't break on
> warnings without editing the make files?
> Or is the policy on Xenomai to always compile cleanly without warnings.
There is a strong policy to always compile without any warning. It
turned out that none of the libc headers I'm building against over 7 CPU
architectures sets the warn_unused_result attribute on the daemon()
routine yet.
--
Philippe.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai] Compiling issue Xenomai 3.0 rc3
2015-02-19 14:16 ` Philippe Gerum
@ 2015-02-19 14:21 ` Philippe Gerum
0 siblings, 0 replies; 7+ messages in thread
From: Philippe Gerum @ 2015-02-19 14:21 UTC (permalink / raw)
To: Michael Smith, xenomai
On 02/19/2015 03:16 PM, Philippe Gerum wrote:
> On 02/19/2015 02:40 PM, Michael Smith wrote:
>> Hi. I'm having trouble compiling the newest release (Xenomai 3.0-rc3).
>> With the error
>>
>> autotune.c: In function ‘main’:
>> autotune.c:298:16: error: ignoring return value of ‘daemon’, declared with
>> attribute warn_unused_result [-Werror=unused-result]
>> daemon(0, 0);
>>
>> Is there an way to override the -Werror flags so it doesn't break on
>> warnings without editing the make files?
>> Or is the policy on Xenomai to always compile cleanly without warnings.
>
> There is a strong policy to always compile without any warning. It
> turned out that none of the libc headers I'm building against over 7 CPU
> architectures sets the warn_unused_result attribute on the daemon()
> routine yet.
>
The reason is due to a weak FORTIFY_LEVEL in some cases, others just
don't even plan for enabling __wur on daemon().
--
Philippe.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai] Compiling issue Xenomai 3.0 rc3
2015-02-19 13:40 [Xenomai] Compiling issue Xenomai 3.0 rc3 Michael Smith
` (2 preceding siblings ...)
2015-02-19 14:16 ` Philippe Gerum
@ 2015-02-19 14:23 ` Gilles Chanteperdrix
2015-02-20 13:16 ` Michael Smith
3 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2015-02-19 14:23 UTC (permalink / raw)
To: Michael Smith; +Cc: xenomai
On Thu, Feb 19, 2015 at 03:40:35PM +0200, Michael Smith wrote:
> Is this maybe my compilation method, but then again I did compile Xenomai
> 3.0-rc2 without an issue.
For the record: 3.0-rc2 had exactly the same issue. You probably did
not use the same toolchain, that is all.
--
Gilles.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Xenomai] Compiling issue Xenomai 3.0 rc3
2015-02-19 14:23 ` Gilles Chanteperdrix
@ 2015-02-20 13:16 ` Michael Smith
0 siblings, 0 replies; 7+ messages in thread
From: Michael Smith @ 2015-02-20 13:16 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
On Thu, Feb 19, 2015 at 4:23 PM, Gilles Chanteperdrix
<gilles.chanteperdrix@xenomai.org> wrote:
> On Thu, Feb 19, 2015 at 03:40:35PM +0200, Michael Smith wrote:
>> Is this maybe my compilation method, but then again I did compile Xenomai
>> 3.0-rc2 without an issue.
>
> For the record: 3.0-rc2 had exactly the same issue. You probably did
> not use the same toolchain, that is all.
>
> --
> Gilles.
No in fact, I did not change my OS or compiler version (Ubuntu 14.04),
but it was compiled on different machines.
Might be that there was differences in default setups.
I updated the code to the newest git release and it compiles without issues.
Thanks all.
Michael
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-02-20 13:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-19 13:40 [Xenomai] Compiling issue Xenomai 3.0 rc3 Michael Smith
2015-02-19 13:45 ` Gilles Chanteperdrix
2015-02-19 13:46 ` Huy Cong Vu
2015-02-19 14:16 ` Philippe Gerum
2015-02-19 14:21 ` Philippe Gerum
2015-02-19 14:23 ` Gilles Chanteperdrix
2015-02-20 13:16 ` Michael Smith
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.