Re: [xz-devel] The right data for Embedded XZ?

2012-03-29 Thread Thorsten Glaser
Mike Melanson dixit:

gcc -std=gnu89 -I../linux/include/linux -I. -DXZ_DEC_X86 -DXZ_DEC_POWERPC
 ^^
You probably want -std=gnu99 here.

-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. (Huh. So there i̲s̲ a
legitimate case for that error message. I usually only see
it when compiling mksh with -fwhole-program --combine on
about three differently broken GCC versions. Luckily there
is now LTO which usually works.)

bye,
//mirabilos
-- 
 Hi, does anyone sell openbsd stickers by themselves and not packaged
 with other products?
No, the only way I've seen them sold is for $40 with a free OpenBSD CD.
-- Haroon Khalid and Steve Shockley in gmane.os.openbsd.misc



Re: [xz-devel] The right data for Embedded XZ?

2012-03-29 Thread g . esp


- Mail original -
 De: Mike Melanson m...@multimedia.cx
 À: xz-devel@tukaani.org
 Envoyé: Jeudi 29 Mars 2012 01:52:42
 Objet: Re: [xz-devel] The right data for Embedded XZ?
 
  Yes, using
  cd userspace  make
  should compile xzminidec for you.
 
  I hacked the makefile a bit more to compile against klibc.
 
 Ah, I hadn't seen this sample app before. Unfortunately, building on
 my
 Ubuntu Linux system failed with:
 
 gcc -std=gnu89 -I../linux/include/linux -I. -DXZ_DEC_X86
 -DXZ_DEC_POWERPC
 -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
 ../linux/lib/xz/xz_dec_lzma2.c:884:11: sorry, unimplemented: called
 from here
 make: *** [boottest.o] Error 1
 

Before to compile xzminidec, I used
sed -i  -e 's/^CC.*$$/CC = klcc -std=gnu99/' userspace/Makefile

klcc is to compile against klibc

Gilles