All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] [Patch] Add missing header file to analogy_calibrate.h
@ 2017-10-06  7:55 Christoph Müllner
  2017-10-06  8:29 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Müllner @ 2017-10-06  7:55 UTC (permalink / raw)
  To: xenomai

Hi Xenomai-List,

attached is a patch, which solved a compilation issue when building Xenomai next (c4baa9a84).
Note, that I am building Xenomai in Buildroot with aarch64 as target architecture.
I'm using GCC 6, glibc 2.25 and Linux headers from 4.12.

The complete error message is:

>   ke[3]: Entering directory '/home/cmuellner/rk3399/buildroot/buildroot-2017.08/output/build/xenomai-next/utils/analogy'
> [...]
>   CCLD     insn_read
> In file included from calibration_ni_m.h:27:0,
>                  from calibration_ni_m.c:26:
> analogy_calibrate.h: In function ‘__debug’:
> analogy_calibrate.h:95:2: error: implicit declaration of function ‘clock_gettime’ [-Werror=implicit-function-declaration]
>   clock_gettime(CLOCK_MONOTONIC, &now);
>   ^~~~~~~~~~~~~
> analogy_calibrate.h:95:16: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
>   clock_gettime(CLOCK_MONOTONIC, &now);
>                 ^~~~~~~~~~~~~~~
> analogy_calibrate.h:95:16: note: each undeclared identifier is reported only once for each function it appears in
> cc1: all warnings being treated as errors
> Makefile:693: recipe for target 'calibration_ni_m.o' failed

Thanks,
Christoph

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-utils-analogy-Add-missing-header-file.patch
Type: application/octet-stream
Size: 1021 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20171006/81211415/attachment.obj>
-------------- next part --------------


--
Christoph Müllner
Theobroma Systems Design und Consulting GmbH
Seestadtstraße 27 (Aspern IQ), 1220 Wien, Austria
Phone: +43 1 236 98 93-409, Fax: +43 1 236 98 93-9
http://www.theobroma-systems.com




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP
URL: <http://xenomai.org/pipermail/xenomai/attachments/20171006/81211415/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai] [Patch] Add missing header file to analogy_calibrate.h
  2017-10-06  7:55 [Xenomai] [Patch] Add missing header file to analogy_calibrate.h Christoph Müllner
@ 2017-10-06  8:29 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2017-10-06  8:29 UTC (permalink / raw)
  To: Christoph Müllner, xenomai

On 10/06/2017 09:55 AM, Christoph Müllner wrote:
> Hi Xenomai-List,
> 
> attached is a patch, which solved a compilation issue when building Xenomai next (c4baa9a84).
> Note, that I am building Xenomai in Buildroot with aarch64 as target architecture.
> I'm using GCC 6, glibc 2.25 and Linux headers from 4.12.
> 
> The complete error message is:
> 
>>   ke[3]: Entering directory '/home/cmuellner/rk3399/buildroot/buildroot-2017.08/output/build/xenomai-next/utils/analogy'
>> [...]
>>   CCLD     insn_read
>> In file included from calibration_ni_m.h:27:0,
>>                  from calibration_ni_m.c:26:
>> analogy_calibrate.h: In function ‘__debug’:
>> analogy_calibrate.h:95:2: error: implicit declaration of function ‘clock_gettime’ [-Werror=implicit-function-declaration]
>>   clock_gettime(CLOCK_MONOTONIC, &now);
>>   ^~~~~~~~~~~~~
>> analogy_calibrate.h:95:16: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
>>   clock_gettime(CLOCK_MONOTONIC, &now);
>>                 ^~~~~~~~~~~~~~~
>> analogy_calibrate.h:95:16: note: each undeclared identifier is reported only once for each function it appears in
>> cc1: all warnings being treated as errors
>> Makefile:693: recipe for target 'calibration_ni_m.o' failed
> 

Merged, thanks.

-- 
Philippe.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-06  8:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-06  7:55 [Xenomai] [Patch] Add missing header file to analogy_calibrate.h Christoph Müllner
2017-10-06  8:29 ` Philippe Gerum

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.