Cross compiling perf for omap will fail during kernel building

Bryan Wu bryan.wu at canonical.com
Fri Aug 27 04:46:14 UTC 2010


On Fri, Aug 27, 2010 at 9:22 AM, Tim Gardner <tim.gardner at canonical.com> wrote:
> On 08/26/2010 07:17 PM, Bryan Wu wrote:
>>
>> Tim,
>>
>> As I am working on preparing 2.6.35 based omap4 branch, I found a
>> building issue in our master branch.
>>
>> If I am using following cross compiling command to generate kernel
>> packages, it will try to cross compile perf tools. But the building
>> will fail due to some library missing the popular CodeSourcery 2010q1
>> arm toolchain.
>>
>> fdr clean&&  export $(dpkg-architecture -aarmel)&&
>> CROSS_COMPILE=arm-none-linux-gnueabi- fdr binary-arch binary-udebs
>>
>> ----
>> Preparing perarch ...
>> install -d /home/roc/Work/ubuntu-maverick/debian/build/tools-
>> for i in *; do ln -s /home/roc/Work/ubuntu-maverick/$i
>> /home/roc/Work/ubuntu-maverick/debian/build/tools-/; done
>> rm /home/roc/Work/ubuntu-maverick/debian/build/tools-/tools
>> rsync -a tools/ /home/roc/Work/ubuntu-maverick/debian/build/tools-/tools/
>> touch /home/roc/Work/ubuntu-maverick/debian/stamps/stamp-prepare-perarch
>> cd /home/roc/Work/ubuntu-maverick/debian/build/tools-/tools/perf&&  make
>> make[1]: Entering directory
>> `/home/roc/Work/ubuntu-maverick/debian/build/tools-/tools/perf'
>> Makefile:512: No libdw.h found or old libdw.h found or elfutils is
>> older than 0.138, disables dwarf support. Please install new
>> elfutils-devel/libdw-dev
>> Makefile:548: *** No libelf.h/libelf found, please install
>> libelf-dev/elfutils-libelf-devel and glibc-dev[el].  Stop.
>> make[1]: Leaving directory
>> `/home/roc/Work/ubuntu-maverick/debian/build/tools-/tools/perf'
>> make: ***
>> [/home/roc/Work/ubuntu-maverick/debian/stamps/stamp-build-perarch]
>> Error 2
>> ----
>>
>> Do we always build and packaging perf for armel? But I think it is OK
>> in our schroot environment, I will test it soon.
>>
>> And if I just us 'fdr binary-omap' or 'fdr binary-omap4', it works
>> fine and we get the kernel package.
>>
>> Any idea about that?
>>
>> Thanks a lot.
>
> I haven't done much cross compiling since I got the armel schroots working.
> I don't think you should let perf cross compile issues hold you up since I
> will do a full armel schroot build before uploading.
>
> I think I'll let the Linaro folks figure out perf cross compile problems.
>

I just checked the master branch setting, it will build linux-tools
packages if the /tools dir is existed. So it will also try to build
the perf on my ti-omap4 branch.

schroot building works fine with linux-tools, I've just tested on our
building machine. So that's a issue about CodeSourcery's 2010q1
toolchain.

Thanks,
-Bryan




More information about the kernel-team mailing list