Skip to contentSkip to conversation

xenomai-3.git next branch build failure

Xenomai Jeff Webb 2 participants 3 messages Dec 11, 2014 – Dec 12, 2014

lore
Share & tools
lore

Jeff Webb

author
#0 lore raw

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.

-Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtnet.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20141211/ceb75098/attachment.bin>

#1 lore raw
Quoted 9 lines · Jeff Webb

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);
         ^
Quoted 8 lines

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 ?

Signature · 1 line
					    Gilles.
author
#2 lore raw
Quoted 17 lines · Gilles Chanteperdrix
Quoted 16 lines · Jeff Webb

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

Quoted 6 lines
Quoted 1 line

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