All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christoph Müllner" <christoph.muellner@theobroma-systems.com>
To: Jack Lee <jacklee11@foxmail.com>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] Linux 4.1.18 with xenomai 3.0.3, libraries build failed
Date: Tue, 28 Nov 2017 10:13:06 +0100	[thread overview]
Message-ID: <A2057F15-978D-486D-B202-75528DF14A31@theobroma-systems.com> (raw)
In-Reply-To: <07dce87d-955a-fe9e-1230-1f11d143b90c@foxmail.com>


> On 28 Nov 2017, at 10:10, Jack Lee <jacklee11@foxmail.com> wrote:
> 
> On 11/28/2017 04:41 PM, Philippe Gerum wrote:
>> On 11/28/2017 02:05 AM, Jack Lee wrote:
>>> 
>>> On 11/27/2017 05:13 PM, Philippe Gerum wrote:
>>>> On 11/27/2017 05:00 AM, Jack Lee wrote:
>>>>> My board cpu is intel Atom N2800, OS is Lubuntu 17.10, gcc version is
>>>>> 7.2.0.
>>>>> Since the newest 3.0.6 cannot setup on my board, I tried the older
>>>>> version.
>>>>> It works now. But when I build the xenomai libraries, it encounters the
>>>>> following error:
>>>>> 
>>>>> -r and -pie can not be used together.
>>>>> 
>>>>> then I changed the configuration to
>>>>> 
>>>>> ../configure --with-core=cobalt --enable-smp --enable-pshared
>>>>> CFLAGS="-no-pie"
>>>>> 
>>>>> It didn't work with the new error:
>>>>> 
>>>>> In file included from ../../../utils/analogy/calibration_ni_m.h:27:0,
>>>>>                   from ../../../utils/analogy/calibration_ni_m.c:26:
>>>>> ../../../utils/analogy/analogy_calibrate.h: In function ‘__debug’:
>>>>> ../../../utils/analogy/analogy_calibrate.h:95:2: error: implicit
>>>>> declaration of function ‘clock_gettime’
>>>>> [-Werror=implicit-function-declaration]
>>>>>    clock_gettime(CLOCK_MONOTONIC, &now);
>>>>>    ^~~~~~~~~~~~~
>>>>> ../../../utils/analogy/analogy_calibrate.h:95:16: error:
>>>>> ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
>>>>>    clock_gettime(CLOCK_MONOTONIC, &now);
>>>>>                  ^~~~~~~~~~~~~~~
>>>>> ../../../utils/analogy/analogy_calibrate.h:95:16: note: each undeclared
>>>>> identifier is reported only once for each function it appears in
>>>>> 
>>>>> Can anyone help?
>>>> Instead of downgrading to a release with known core issues, you have the
>>>> option to pull fixes for v3.0.6 from the maintenance branch:
>>>> 
>>>> URL: http://git.xenomai.org/xenomai-3.git/
>>>> branch: stable-3.0.x
>>> This one seems to have no configure script.
>>> When I run autoconf in the top directory, I get the following error:
>>> 
>>> configure.ac:51: error: possibly undefined macro: AM_CONDITIONAL
>>>       If this token and others are legitimate, please use m4_pattern_allow.
>>>       See the Autoconf documentation.
>>> configure.ac:88: error: possibly undefined macro: AC_PROG_CC_FOR_BUILD
>>> configure.ac:106: error: possibly undefined macro: AM_INIT_AUTOMAKE
>>> configure.ac:108: error: possibly undefined macro: AM_MAINTAINER_MODE
>>> configure.ac:109: error: possibly undefined macro: AM_PROG_AS
>>> configure.ac:110: error: possibly undefined macro: AM_PROG_LEX
>>> configure.ac:164: error: possibly undefined macro: AC_ENABLE_SHARED
>>> configure.ac:165: error: possibly undefined macro: AC_PROG_LIBTOOL
>>> configure.ac:238: error: possibly undefined macro: AM_CPPFLAGS
>>> 
>>> 
>>> 
>>> 
>> You need to run the bootstrap script first, see
>> 
>> https://xenomai.org/installing-xenomai-3-x/#Installing_the_Xenomai_libraries_and_tools
>> 
> Thanks, but there is something wrong still.
> 
> configure.ac:164: error: possibly undefined macro: AC_ENABLE_SHARED
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> configure.ac:165: error: possibly undefined macro: AC_PROG_LIBTOOL
> autoreconf: /usr/bin/autoconf failed with exit status: 1

You need to install libtool:
apt install libtool

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

  reply	other threads:[~2017-11-28  9:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-27  4:00 [Xenomai] Linux 4.1.18 with xenomai 3.0.3, libraries build failed Jack Lee
2017-11-27  9:13 ` Philippe Gerum
2017-11-28  1:05   ` Jack Lee
2017-11-28  8:41     ` Philippe Gerum
2017-11-28  9:10       ` Jack Lee
2017-11-28  9:13         ` Christoph Müllner [this message]
2017-11-28  9:13         ` Philippe Gerum
2017-11-28 11:38           ` Jack Lee

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=A2057F15-978D-486D-B202-75528DF14A31@theobroma-systems.com \
    --to=christoph.muellner@theobroma-systems.com \
    --cc=jacklee11@foxmail.com \
    --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.