2008-04-28 17:02:45     Build error when enabling jffs2

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-28 17:02:45     Build error when enabling jffs2

Henrik Holm (UNITED STATES)

Message: 55171    I am trying to enable jffs2, but the build process fails.   It is easily reproducible (for me) -- I unpack a pristine 2008R1-RC8 uClinux tree, do 'make menuconfig' and modify

 

Linux Kernel Configuration

->File systems

  ->Miscellaneous filesystems

    ->Journalling Flash File System v2 (JFFS2) support

 

from <M> to <*>.  Then I do "make", and the build fails.  The last message I see is,

 

LINK    busybox_unstripped

bfin-uclinux-strip: busybox_unstripped: File format not recognized

make[3]: Leaving directory `/home/hholm/uClinux-dist-2008R1-RC8/user/busybox'

make[2]: Leaving directory `/home/hholm/uClinux-dist-2008R1-RC8/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/hholm/uClinux-dist-2008R1-RC8/user'

make: *** [subdirs] Error 1

 

 

I looked through the ouput from the build and found this about 500 lines above:

 

 

gcc -I/usr/include -I. -Dprintk=printf -DKERN_NOTICE= -DKERN_WARNING= -c -o build/compr_zlib.o compr_zlib.c

checking for egrep... grep -E

checking for ANSI C header files... compr_zlib.c:38:18: error: zlib.h: No such file or directory

compr_zlib.c: In function ‘zlib_compress’:

compr_zlib.c:81: error: ‘z_stream’ undeclared (first use in this function)

compr_zlib.c:81: error: (Each undeclared identifier is reported only once

compr_zlib.c:81: error: for each function it appears in.)

compr_zlib.c:81: error: expected ‘;’ before ‘strm’

compr_zlib.c:91: error: ‘strm’ undeclared (first use in this function)

compr_zlib.c:95: error: ‘Z_OK’ undeclared (first use in this function)

compr_zlib.c:110: error: ‘Z_PARTIAL_FLUSH’ undeclared (first use in this function)

compr_zlib.c:121: error: ‘Z_FINISH’ undeclared (first use in this function)

compr_zlib.c:122: error: ‘Z_STREAM_END’ undeclared (first use in this function)

compr_zlib.c: In function ‘zlib_decompress’:

compr_zlib.c:143: error: ‘z_stream’ undeclared (first use in this function)compr_zlib.c:143: error: expected ‘;’ before ‘strm’compr_zlib.c:150: error: ‘strm’ undeclared (first use in this function)compr_zlib.c:154: error: ‘Z_OK’ undeclared (first use in this function)compr_zlib.c:166: error: ‘Z_FINISH’ undeclared (first use in this function)compr_zlib.c:168: error: ‘Z_STREAM_END’ undeclared (first use in this function)make[3]: *** [build/compr_zlib.o] Error 1

make[3]: Leaving directory `/home/hholm/work/wizard_central/Software/Source/TestCode/uClinux/uClinux-dist-2008R1-RC8/user/mtd-utils'make[2]: *** [mtd-utils] Error 2

 

 

My build host is Ubuntu 7.10 -- is this relevant?  Is there something extra I need to install on the build host?  (Note that a pristine 2008R1-RC8 builds without problems.

 

Thanks,

Henrik

QuoteReplyEditDelete

 

 

2008-04-28 18:14:23     Re: Build error when enabling jffs2

Mike Frysinger (UNITED STATES)

Message: 55177    please review the documentation for setting up your development host:

http://docs.blackfin.uclinux.org/doku.php?id=installing_linux

 

you need the development package for zlib

Attachments

    Outcomes