[PATCH v3] erofs-utils: introduce fsck.erofs

Gao Xiang hsiangkao at linux.alibaba.com
Wed Nov 10 12:35:42 AEDT 2021


Hi Daeho,

On Tue, Nov 09, 2021 at 04:16:12PM -0800, Daeho Jeong wrote:
> Hi Gao,
> 
> After merging all the latest patches, the build fails now, since we
> don't have the lzma library on the build system now.
> 
> external/erofs-utils/lib/compressor_liblzma.c:8:10: fatal error:
> 'lzma.h' file not found
> #include <lzma.h>
>          ^~~~~~~~
> 1 error generated.
> 16:13:47 ninja failed with: exit status 1
> 
> Can you fix this to make it built without the lzma library?

I think it's mainly due to Android.bp configuration, because in
lib/Makefile.am it wrote as:

...
if ENABLE_LIBLZMA
liberofs_la_CFLAGS += ${liblzma_CFLAGS}
liberofs_la_SOURCES += compressor_liblzma.c
endif

I could add some macro in compressor_liblzma.c as well if needed.

btw, I suggest updating the patches when 1.4 is out (next week),
since I still do some cleanup work.

Thanks,
Gao Xiang



More information about the Linux-erofs mailing list