All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Webb <jeff.webb@nta-inc.net>
To: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] xenomai-3.git next branch build failure
Date: Fri, 12 Dec 2014 13:52:31 -0600	[thread overview]
Message-ID: <548B477F.1020500@nta-inc.net> (raw)
In-Reply-To: <20141211213710.GH27793@hermes.click-hack.org>

On 12/11/2014 03:37 PM, Gilles Chanteperdrix wrote:
> On Thu, Dec 11, 2014 at 12:45:51PM -0600, Jeff Webb wrote:
>> When trying to compile the 'next' branch of xenomai-3.git under Ubuntu 14.04, I get this error:
>>
>> Making all in autotune
>> make[2]: Entering directory `/home/webb-ja/deb/xenomai-3.git.test/utils/autotune'
>> gcc -DHAVE_CONFIG_H -I. -I../../include  -I/home/webb-ja/deb/xenomai-3.git.test/lib/cobalt/arch/x86/include -I/home/webb-ja/deb/xenomai-3.git.test/kernel/cobalt/arch/x86/include -DNDEBUG -O2 -D_GNU_SOURCE -D_REENTRANT -pipe -fstrict-aliasing -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wno-unused-parameter -Werror -D__XENO__ -D__IN_XENO__ -I/home/webb-ja/deb/xenomai-3.git.test/include/cobalt -I../../include    -MT autotune-autotune.o -MD -MP -MF .deps/autotune-autotune.Tpo -c -o autotune-autotune.o `test -f 'autotune.c' || echo './'`autotune.c
>> autotune.c: In function ‘main’:
>> autotune.c:298:9: error: ignoring return value of ‘daemon’, declared with attribute warn_unused_result [-Werror=unused-result]
>>     daemon(0, 0);
>>           ^
>> cc1: all warnings being treated as errors
>> make[2]: *** [autotune-autotune.o] Error 1
>> make[2]: Leaving directory `/home/webb-ja/deb/xenomai-3.git.test/utils/autotune'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/webb-ja/deb/xenomai-3.git.test/utils'
>> make: *** [all-recursive] Error 1
>>
>> I see this sort of thing often due to Ubuntu's default compiler flags settings.  I applied the attached patch to fix it.
>
> Yes, thanks. I think Jorge already proposed a similar fix, but I can
> not find where I put it. So, I will take your patch. Just a note, is
> the "error" function defined for uclibc ?
>

Thans, Gilles.  I haven't used uclibc, but it looks like it is defined:

   http://git.uclibc.org/uClibc/tree/include/error.h

I just assumed that error() was okay, since it was used elsewhere in the file.

-Jeff



      reply	other threads:[~2014-12-12 19:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-11 18:45 [Xenomai] xenomai-3.git next branch build failure Jeff Webb
2014-12-11 21:37 ` Gilles Chanteperdrix
2014-12-12 19:52   ` Jeff Webb [this message]

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=548B477F.1020500@nta-inc.net \
    --to=jeff.webb@nta-inc.net \
    --cc=xenomai@xenomai.org \
    /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 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.