On 2012-03-29 Thorsten Glaser wrote: > Mike Melanson dixit: > > >gcc -std=gnu89 -I../linux/include/linux -I. -DXZ_DEC_X86 > ^^^^^^^^^^ > You probably want -std=gnu99 here.
gnu89 should work (gnu99 should work too). The Linux kernel is compiled with gnu89 so XZ Embedded needs to conform to that too. > >-DXZ_DEC_IA64 -DXZ_DEC_ARM -DXZ_DEC_ARMTHUMB -DXZ_DEC_SPARC > >-DXZ_DEC_ANY_CHECK -ggdb3 -O2 -pedantic -Wall -Wextra -c -o > >boottest.o boottest.c > >In file included from ../linux/lib/decompress_unxz.c:235:0, > > from boottest.c:22: > >../linux/lib/xz/xz_dec_lzma2.c: In function ‘xz_dec_lzma2_run’: > >/usr/include/bits/string3.h:56:1: sorry, unimplemented: inlining > >failed in call to ‘memmove’: redefined extern inline functions are > >not considered for inlining > > Yes well, that will of course break. It works for me but I'm not sure why. In boottest.c I want to use the memmove() and other functions from decompress_unxz.c instead of libc. Maybe it would be enough to avoid <string.h> in boottest.c and replace strcmp() with something else. -- Lasse Collin | IRC: Larhzu @ IRCnet & Freenode