All of lore.kernel.org
 help / color / mirror / Atom feed
* Xenomai ipipe x86 64 bits with 32 bits librairies
@ 2021-06-02 22:15 MONTET Julien
  2021-06-05 11:53 ` MONTET Julien
  0 siblings, 1 reply; 4+ messages in thread
From: MONTET Julien @ 2021-06-02 22:15 UTC (permalink / raw)
  To: Xenomai

Hello the Xenomai team,

First of all I thank you for all your previous answers.
Xenomai 3.1 (skins included) is working fine on arm 32bits !
Now I am trying to find a way to do the same thing on x86 - ipipe 4.19.177+

My current code is supposed to work on 32bits and I can't upgrade it to 64bits.
I know x86_32 is officially no more supported for ipipe patch since February, that is why my idea was to get an ipipe x86_64 (I already installed it on the machine) and compile Xenomai librairies in 32bits.


My commands - I try to cross compile:
./configure --host=i686-linux-gnu CFLAGS="-m32 -O2" LDFLAGS="-m32" --with-core=cobalt --enable-smp --enable-pshared
https://paste.ubuntu.com/p/h74GSvMjP9/
(I also tried to add -march=i686 in CFLAGS without success

The two lines below produce the same errors :
make ARCH=i686 CROSS_COMPILE=i686-linux-gnu-
make install DESTDIR="[PATH]/xenomai-3.1/tmp_xenomai"
https://paste.ubuntu.com/p/M39PJgTM9X/


A similar thread on the Xenomai forum :
https://xenomai.org/pipermail/xenomai/2020-May/043000.html
The strange thing with the link above is the method should be working for -m32 (and not for -mx32). I tried with old librairies (3.0+), and I had the same issues


What I found :
The macro  #ifdef CONFIG_X86_X32 may not be defined because I have errors on __COBALT_X32_BASE :
https://xenomai.org/documentation/xenomai-3/html/xeno3prm/arch_2x86_2include_2asm_2xenomai_2syscall32_8h_source.html

What I have installed on my host :
sudo apt-get install linux-libc-dev:i386
sudo apt install gcc-i686-linux-gnu


Is there a way to use i686 (x86_32) code with Xenomai ?
Do you have any advices on this subject ?

Best regards,
Julien
<mailto:xenomai@xenomai.org>

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

end of thread, other threads:[~2021-06-05 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-02 22:15 Xenomai ipipe x86 64 bits with 32 bits librairies MONTET Julien
2021-06-05 11:53 ` MONTET Julien
2021-06-05 13:15   ` Philippe Gerum
2021-06-05 14:25     ` MONTET Julien

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.