Skip to contentSkip to conversation

Linux 4.1.18 with xenomai 3.0.3, libraries build failed

Xenomai Jack Lee 3 participants 8 messages Nov 27, 2017 – Nov 28, 2017

lore
Share & tools
lore

Jack Lee

author
#0 lore raw

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?
Thanks.

#1 lore raw
Quoted 30 lines · Jack Lee

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

Quoted 1 line

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

Signature · 1 line
Philippe.
author
#2 lore raw
Quoted 31 lines · Philippe Gerum
Quoted 30 lines · Jack Lee

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

Quoted 6 lines
Quoted 1 line

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

#3 lore raw
Quoted 44 lines · Jack Lee
Quoted 32 lines · Philippe Gerum
Quoted 31 lines · Jack Lee

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

Quoted 6 lines
Quoted 1 line

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:

Quoted 15 lines

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

Signature · 1 line
Philippe.
author
#4 lore raw
Quoted 59 lines · Philippe Gerum
Quoted 43 lines · Jack Lee
Quoted 32 lines · Philippe Gerum
Quoted 31 lines · Jack Lee

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

Quoted 6 lines
Quoted 1 line

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:

Quoted 15 lines

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

Quoted 4 lines

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

#5 lore raw
Quoted 67 lines · Jack Lee
Quoted 59 lines · Philippe Gerum
Quoted 43 lines · Jack Lee
Quoted 32 lines · Philippe Gerum
Quoted 31 lines · Jack Lee

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

Quoted 6 lines
Quoted 1 line

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:

Quoted 15 lines

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

Quoted 4 lines

You need to run the bootstrap script first, see

https://xenomai.org/installing-xenomai-3-x/#Installing_the_Xenomai_libraries_and_tools

Quoted 7 lines

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>

#6 lore raw
In reply to Jack Lee
Quoted 69 lines · Jack Lee
Quoted 63 lines · Philippe Gerum
Quoted 46 lines · Jack Lee
Quoted 34 lines · Philippe Gerum
Quoted 33 lines · Jack Lee

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

Quoted 7 lines
Quoted 1 line

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:

Quoted 16 lines

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

Quoted 5 lines

You need to run the bootstrap script first, see

https://xenomai.org/installing-xenomai-3-x/#Installing_the_Xenomai_libraries_and_tools

Quoted 11 lines

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

The doc I pointed out also mentions:

"If you plan to build from the sources available from the Xenomai GIT tree (git.xenomai.org), the autoconf (>= 2.62), automake and libtool packages must be available on your build system."

Signature · 1 line
Philippe.
author
#7 lore raw
Quoted 80 lines · Philippe Gerum
Quoted 68 lines · Jack Lee
Quoted 62 lines · Philippe Gerum
Quoted 45 lines · Jack Lee
Quoted 34 lines · Philippe Gerum
Quoted 33 lines · Jack Lee

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

Quoted 7 lines
Quoted 1 line

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:

Quoted 16 lines

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

Quoted 5 lines

You need to run the bootstrap script first, see

https://xenomai.org/installing-xenomai-3-x/#Installing_the_Xenomai_libraries_and_tools

Quoted 11 lines

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

Quoted 6 lines

The doc I pointed out also mentions:

"If you plan to build from the sources available from the Xenomai GIT tree (git.xenomai.org), the autoconf (>= 2.62), automake and libtool packages must be available on your build system."

Thanks for your patience. But my board can not boot with linux 4.9.51 and this xenomai edition. It stuck here:

[0.027172]..TIMER:vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
[1.014837]random: fast init done

my cpu is intel atom N2800.

4.1.18 with xenomai 3.0.3 works fine, but the libraries can't be built.