From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4B7447AD.5050401@domain.hid> Date: Thu, 11 Feb 2010 19:08:45 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <8b216e9e1002100327h3aa332ddl13ec590fcb81f0b7@domain.hid> <4B729B04.9010909@domain.hid> <8b216e9e1002100349y71f40d9ct9cbf496846f33f2e@domain.hid> <8b216e9e1002100358u71d73d36xb851e59e23e069d1@domain.hid> <4B72C18F.20903@domain.hid> <8b216e9e1002101128t1246a5deh28ca13229f1d688d@domain.hid> <8b216e9e1002111005h6b432bcby17d4127d3b9d385a@domain.hid> In-Reply-To: <8b216e9e1002111005h6b432bcby17d4127d3b9d385a@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] Problems when cross-compiling Xenomai List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?RmVsaXBlIEJyYW5kw6NvIENhdmFsY2FudGk=?= Cc: Xenomai help Felipe Brand=C3=A3o Cavalcanti wrote: > 2010/2/10 Felipe Brand=C3=A3o Cavalcanti >=20 >> >> 2010/2/10 Gilles Chanteperdrix >> >>> Felipe Brand=C3=A3o Cavalcanti wrote: >>>> 2010/2/10 Felipe Brand=C3=A3o Cavalcanti >>>> >>>>> 2010/2/10 Gilles Chanteperdrix < >>> gilles.chanteperdrix@xenomai.org> >>>>> Felipe Brand=C3=A3o Cavalcanti wrote: >>>>>>> Hello, >>>>>>> >>>>>>> I am having some problems when trying to cross-compile the usersp= ace >>>>>> portion >>>>>>> of the latest Xenomai (2.5.1) for ARM. I am attempting to get Xen= omai >>>>>>> running on a IGEPv2 OMAP board (Beagleboard based), so I am >>>>>> cross-compiling >>>>>>> with bitbake on top of a poky Linux distribution. >>>>>> Do you have the same problem if you build Xenomai user-space porti= on >>>>>> running the standard build procedure without additional CFLAGS and= >>>>>> LDFLAGS? >>>>>> >>>>>> >>>>> I have not tried this - the cross compiler automatically adds them,= and >>> I >>>>> am not sure what I can remove. However, I will try removing them to= see >>> what >>>>> works. One thing that I noticed using the -k option in the make com= mand >>> is >>>>> that compiling fails only in the testsuite. >>>>> >>>>> I found an old thread with a similar problem: >>>>> https://mail.gna.org/public/xenomai-help/2008-07/msg00141.html >>>>> >>>>> >>>> Just tried removing the LDFLAGS and CFLAGS, same error. I've attache= d >>> the >>>> configure and make logs. >>> Ok. Made a diff between your configure log and mine. It seems the >>> problem is at some point configure does not find a compiler named >>> "arm-linux-gcc" and decides to use "gcc". So, your host compiler is >>> probably used to test whether shm_open/shm_unlink and a few other >>> functions exist for your target, and finds them whereas they are >>> probably not available. >>> >>> So, the cure is to pass --host=3Darm-none-linux-gnueabi instead of >>> --host=3Darm-linux. >>> >>> This looks a bit like a bug. Did you (or bit-bake, or poky, whatever)= >>> re-run autoconf or are you using the original configure script? >>> >>> >> I am running the standard configure script, but I am not sure if bitba= ke >> runs autoconf again - probably not. >> >> However, I did get it to compile - I just havent had the chance the te= st it >> yet. In the end, I removed the -Wl,--as-needed, as well as a couple of= other >> flags. >> >> I am attaching the logs of the latest compilation, in case you want to= take >> a look. I will send in the final results as soon as I get a chance to = test >> it. >> >> Gilles, thanks very much for the help! >> -Felipe Brandao Cavalcanti >> >> > OK, so I did test it - the programs seem to run, but Xenomai doesn't se= em to > be working. >=20 > When I run the latency test, I get the following output: >=20 > =3D=3D Sampling period: 1000 us > =3D=3D Test mode: periodic user-mode task > =3D=3D All results in microseconds > warming up... > latency: failed to set periodic, code -110 >=20 > Anyone has a clue on what's going on? I am tweaking the kernel options > hoping to make it work. Show us the boot logs. --=20 Gilles Chanteperdrix, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com