Skip to contentSkip to conversation

compiling probs

Xenomai-help [email protected] 2 participants 4 messages Jun 24, 2008 – Jun 25, 2008

lore
Share & tools
lore
#0 lore raw

----- original Nachricht --------

Betreff: Re: [Xenomai-help] compiling probs
Gesendet: Di 24 Jun 2008 13:12:26 CEST
Von: "Wolfgang Grandegger"<[email protected]>

Quoted 36 lines
Quoted 35 lines · Axel Beierlein

Hello,

when i try to compile the module examples from the xenomai source directory i get many <in file included> like this

In file included from /home/xx/linuxppc_2_4_25/include/asm/xenomai/hal.h:50,
from
/home/xx/linuxppc_2_4_25/include/asm-generic/xenomai/system.h:39,
from
/home/xx/linuxppc_2_4_25/include/asm/xenomai/system.h:29,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/types.h:39,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/queue.h:24,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/timer.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/thread.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/pod.h:34,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/xenomai.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/rtdm/rtdm_driver.h:36,

                  from heartbeat-x86.c:21:

also a type qualifier warning.

/home/xx/linuxppc_2_4_25/include/asm/time.h:60: warning: type qualifiers

ignored on function return type

Did anyone know what i make wrong?

Quoted 8 lines
Quoted 6 lines

I use xenomai 2.3.5 and the Kernelsource 2.4.25 from the Denx repository

with the ELDK4.1.

my make to build the modules is like <make XENO=$DESTDIR/root/xenomai CC=ppc_6xx-gcc> where DESTDIR is set to the Path where the rootfs is.

Is your kernel configured and built?

Yes, the kernel is configured and built

Quoted 1 line

Does adding ARCH=ppc help?

No, ARCH=ppc is already set by the eldk_init script

Quoted 1 line

Is module support enabled in the kernel?

Yes, it is enabled

Quoted 2 lines

What ELDK version do you use?

As i said before, i use the ELDK4.1

Quoted 2 lines

It works fine here.

Here not

Quoted 2 lines

Wolfgang.

Any other Ideas?

Quoted 3 lines

--- original Nachricht Ende ----

Unbegrenzter Speicher, Top-Spamschutz, 120 SMS und eigene E-MailDomain inkl.
http://office.freenet.de/dienste/emailoffice/produktuebersicht/power/mail/index.html

#1 lore raw
Quoted 42 lines · [email protected] wrote:

----- original Nachricht --------

Betreff: Re: [Xenomai-help] compiling probs
Gesendet: Di 24 Jun 2008 13:12:26 CEST
Von: "Wolfgang Grandegger"<[email protected]>

Quoted 28 lines
Quoted 27 lines · Axel Beierlein

Hello,

when i try to compile the module examples from the xenomai source directory i get many <in file included> like this

In file included from /home/xx/linuxppc_2_4_25/include/asm/xenomai/hal.h:50,
from
/home/xx/linuxppc_2_4_25/include/asm-generic/xenomai/system.h:39,
from
/home/xx/linuxppc_2_4_25/include/asm/xenomai/system.h:29,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/types.h:39,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/queue.h:24,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/timer.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/thread.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/pod.h:34,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/xenomai.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/rtdm/rtdm_driver.h:36,

                  from heartbeat-x86.c:21:

also a type qualifier warning.

Quoted 8 lines
Quoted 7 lines

/home/xx/linuxppc_2_4_25/include/asm/time.h:60: warning: type qualifiers ignored on function return type

Did anyone know what i make wrong?

I use xenomai 2.3.5 and the Kernelsource 2.4.25 from the Denx repository with the ELDK4.1.

my make to build the modules is like <make XENO=$DESTDIR/root/xenomai CC=ppc_6xx-gcc> where DESTDIR is set to the Path where the rootfs is.

Is your kernel configured and built?

Quoted 8 lines

Yes, the kernel is configured and built

Quoted 1 line

Does adding ARCH=ppc help?

No, ARCH=ppc is already set by the eldk_init script

Quoted 1 line

Is module support enabled in the kernel?

Yes, it is enabled

Quoted 2 lines

What ELDK version do you use?

As i said before, i use the ELDK4.1

For Linux 2.4 you should use ELDK 3.1.1 because the GLIBC uses 2.4 includes.

Quoted 7 lines
Quoted 2 lines

It works fine here.

Here not

Quoted 2 lines

Wolfgang.

Any other Ideas?

See above. I will try if I get the error with ELDK 4.1.

Wolfgang.

#2 lore raw

Am 25.06.2008, 08:33 Uhr, schrieb Wolfgang Grandegger <[email protected]>:

Quoted 57 lines
Quoted 41 lines · [email protected] wrote:

----- original Nachricht --------
Betreff: Re: [Xenomai-help] compiling probs
Gesendet: Di 24 Jun 2008 13:12:26 CEST
Von: "Wolfgang Grandegger"<[email protected]>

Quoted 28 lines
Quoted 27 lines · Axel Beierlein

Hello,

when i try to compile the module examples from the xenomai source directory i get many <in file included> like this

In file included from /home/xx/linuxppc_2_4_25/include/asm/xenomai/hal.h:50,
from
/home/xx/linuxppc_2_4_25/include/asm-generic/xenomai/system.h:39,
from
/home/xx/linuxppc_2_4_25/include/asm/xenomai/system.h:29,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/types.h:39,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/queue.h:24,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/timer.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/thread.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/pod.h:34,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/xenomai.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/rtdm/rtdm_driver.h:36,

                  from heartbeat-x86.c:21:

also a type qualifier warning.

Quoted 8 lines
Quoted 7 lines

/home/xx/linuxppc_2_4_25/include/asm/time.h:60: warning: type qualifiers ignored on function return type

Did anyone know what i make wrong?

I use xenomai 2.3.5 and the Kernelsource 2.4.25 from the Denx repository with the ELDK4.1.

my make to build the modules is like <make XENO=$DESTDIR/root/xenomai CC=ppc_6xx-gcc> where DESTDIR is set to the Path where the rootfs is.

Is your kernel configured and built?

Quoted 8 lines

Yes, the kernel is configured and built

Quoted 1 line

Does adding ARCH=ppc help?

No, ARCH=ppc is already set by the eldk_init script

Quoted 1 line

Is module support enabled in the kernel?

Yes, it is enabled

Quoted 2 lines

What ELDK version do you use?

As i said before, i use the ELDK4.1

For Linux 2.4 you should use ELDK 3.1.1 because the GLIBC uses 2.4 includes.

Quoted 4 lines
Quoted 2 lines

It works fine here.

Here not

Quoted 7 lines
Quoted 3 lines
Quoted 2 lines

Wolfgang.

Any other Ideas?

See above. I will try if I get the error with ELDK 4.1.

Wolfgang.

Thats it! With ELDK 3.1.1 it works already fine by me.

Thank you.

Axel

#3 lore raw
Quoted 58 lines · Axel Beierlein

Am 25.06.2008, 08:33 Uhr, schrieb Wolfgang Grandegger <[email protected]>:

Quoted 56 lines
Quoted 41 lines · [email protected] wrote:

----- original Nachricht --------
Betreff: Re: [Xenomai-help] compiling probs
Gesendet: Di 24 Jun 2008 13:12:26 CEST
Von: "Wolfgang Grandegger"<[email protected]>

Quoted 28 lines
Quoted 27 lines · Axel Beierlein

Hello,

when i try to compile the module examples from the xenomai source directory i get many <in file included> like this

In file included from /home/xx/linuxppc_2_4_25/include/asm/xenomai/hal.h:50,
from
/home/xx/linuxppc_2_4_25/include/asm-generic/xenomai/system.h:39,
from
/home/xx/linuxppc_2_4_25/include/asm/xenomai/system.h:29,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/types.h:39,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/queue.h:24,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/timer.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/thread.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/pod.h:34,
from
/home/xx/linuxppc_2_4_25/include/xenomai/nucleus/xenomai.h:23,
from
/home/xx/linuxppc_2_4_25/include/xenomai/rtdm/rtdm_driver.h:36,

                  from heartbeat-x86.c:21:

also a type qualifier warning.

Quoted 8 lines
Quoted 7 lines

/home/xx/linuxppc_2_4_25/include/asm/time.h:60: warning: type qualifiers ignored on function return type

Did anyone know what i make wrong?

I use xenomai 2.3.5 and the Kernelsource 2.4.25 from the Denx repository with the ELDK4.1.

my make to build the modules is like <make XENO=$DESTDIR/root/xenomai CC=ppc_6xx-gcc> where DESTDIR is set to the Path where the rootfs is.

Is your kernel configured and built?

Quoted 8 lines

Yes, the kernel is configured and built

Quoted 1 line

Does adding ARCH=ppc help?

No, ARCH=ppc is already set by the eldk_init script

Quoted 1 line

Is module support enabled in the kernel?

Yes, it is enabled

Quoted 2 lines

What ELDK version do you use?

As i said before, i use the ELDK4.1

For Linux 2.4 you should use ELDK 3.1.1 because the GLIBC uses 2.4 includes.

Quoted 4 lines
Quoted 2 lines

It works fine here.

Here not

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

Wolfgang.

Any other Ideas?

See above. I will try if I get the error with ELDK 4.1.

Wolfgang.

Thats it! With ELDK 3.1.1 it works already fine by me.

OK, with 4.1 I was also not able to compile it properly.

Wolfgang.