Re: [arm-gnu] undefined reference to bswapsi2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] undefined reference to bswapsi2



On 7/18/2011 9:09 PM, Shalabh Agarwal wrote:
> Hi
> 
> I'm just trying to build a 2.6.17 Linux kernel for an arm target on a Ubuntu system.
> 
> I get an undefined reference to bswapsi2 even though it is present in libgcc
> that comes with the CodeSourcery package.
> 
> I must be doing something simply wrong. Can anyone help?

The kernel implements all of the compiler helper routines and does not link
against libgcc.a.

> lib/built-in.o: In function `bitreverse':
> deflate_syms.c:(.text+0x86c): undefined reference to `__bswapsi2'
> make: *** [.tmp_vmlinux1] Error 1

You are building an *old* kernel with *new* tools.

You need to patch the kernel to fix this.

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos@xxxxxxxxxxxxxxxx
+1 (613) 963 1026