2009-06-15 05:11:19     which toolchain should take to build 2009R1

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

2009-06-15 05:11:19     which toolchain should take to build 2009R1

david wang (CHINA)

Message: 75710   

 

hi,

 

  I svn the 2009R1 from branches, but when I built it with the toolchain of 2008R1.5 release, I got below error,

 

mkdir -p /home/wangyixin/working/2009R1/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/

gcc -I./include   -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /home/wangyixin/working/2009R1/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_zlib.o compr_zlib.c -g -Wp,-MD,/home/wangyixin/working/2009R1/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_zlib.c.dep

make[3]: Entering directory `/home/wangyixin/working/2009R1/user/version'

compr_zlib.c:130: warning: initialization discards qualifiers from pointer target type

compr_zlib.c:102: warning: unused parameter 'model'

compr_zlib.c:54: warning: unused parameter 'model'

mkdir -p /home/wangyixin/working/2009R1/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/

gcc -I./include   -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /home/wangyixin/working/2009R1/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o compr_lzo.c -g -Wp,-MD,/home/wangyixin/working/2009R1/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_lzo.c.dep

compr_lzo.c:29:23: lzo/lzo1x.h: No such file or directory

compr_lzo.c: In function `jffs2_lzo_cmpr':

compr_lzo.c:51: error: `lzo_uint' undeclared (first use in this function)

compr_lzo.c:51: error: (Each undeclared identifier is reported only once

compr_lzo.c:51: error: for each function it appears in.)

compr_lzo.c:51: error: syntax error before "compress_size"

compr_lzo.c:54: warning: implicit declaration of function `lzo1x_999_compress'

compr_lzo.c:54: error: `compress_size' undeclared (first use in this function)

compr_lzo.c:56: error: `LZO_E_OK' undeclared (first use in this function)

compr_lzo.c: In function `jffs2_lzo_decompress':

compr_lzo.c:72: error: `lzo_uint' undeclared (first use in this function)

compr_lzo.c:72: error: syntax error before "dl"

compr_lzo.c:74: warning: implicit declaration of function `lzo1x_decompress_safe'

compr_lzo.c:74: error: `dl' undeclared (first use in this function)

compr_lzo.c:76: error: `LZO_E_OK' undeclared (first use in this function)

compr_lzo.c: At top level:

compr_lzo.c:84: warning: initialization discards qualifiers from pointer target type

compr_lzo.c: In function `jffs2_lzo_init':

compr_lzo.c:95: error: `LZO1X_999_MEM_COMPRESS' undeclared (first use in this function)

compr_lzo.c: At top level:

compr_lzo.c:69: warning: unused parameter 'model'

compr_lzo.c:49: warning: unused parameter 'model'

make[4]: *** [/home/wangyixin/working/2009R1/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o] Error 1

make[4]: Leaving directory `/home/wangyixin/working/2009R1/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'

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

make[3]: Leaving directory `/home/wangyixin/working/2009R1/user/mtd-utils'

make[2]: *** [mtd-utils] Error 2

make[2]: *** Waiting for unfinished jobs....

 

 

 

Did I use the wrong toolchain?

 

Regards!

QuoteReplyEditDelete

 

 

2009-06-15 05:15:08     Re: which toolchain should take to build 2009R1

Mike Frysinger (UNITED STATES)

Message: 75712   

 

please read the FAQ (same versions):

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

 

as for the missing header, please read the install documentation:

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

QuoteReplyEditDelete

 

 

2009-06-15 05:28:40     Re: which toolchain should take to build 2009R1

david wang (CHINA)

Message: 75714   

 

Hi, Mike

 

  I read the document you gave, but still can't find where the problem is. I use this toolchain to bulid the 2008R1.5-RC3 ok. So I think this is the problem of toolchain.

QuoteReplyEditDelete

 

 

2009-06-15 05:32:29     Re: which toolchain should take to build 2009R1

Mike Frysinger (UNITED STATES)

Message: 75715   

 

i dont think you did.  the FAQ clearly states that the toolchain and uclinux-dist versions must match.  2009R1 != 2008R1

 

as for the header error, you didnt read the other document which covers packages you must install on your development system, but you didnt, so you got the lzo error.

QuoteReplyEditDelete

 

 

2009-06-15 05:45:35     Re: which toolchain should take to build 2009R1

david wang (CHINA)

Message: 75716   

 

Yes, I did but the doku is so large, I don't know where the problem exactly is.

 

where is the 2009R1 toolchain? I mean , are there compiled packages for install? I don't want to build the toolchain again if there are.

QuoteReplyEditDelete

 

 

2009-06-15 06:18:30     Re: which toolchain should take to build 2009R1

david wang (CHINA)

Message: 75718    > I've solved this problem by install lzo lib to my host. Thanks!

Attachments

    Outcomes