[#5183] liblzma fails to build for both fdpic and flat

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

[#5183] liblzma fails to build for both fdpic and flat

Submitted By: Vivi Li

Open Date

2009-06-01 05:00:11     Close Date

2009-06-10 05:10:55

Priority:

Medium     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Make Errors     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1_rc6

App binary format:

N/A     

Summary: liblzma fails to build for both fdpic and flat

Details:

 

liblzma fails to build for both fdpic and flat.

No such test on regression and find this bug by built kernel manually.

 

Bellow is the log:

--

make[3]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma'

bfin-uclinux-g++ -O1 -s -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX  -pipe -Wall -g -O2      -mcpu=bf537-0.2 -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -DEXCLUDE_COM -DNO_REGISTRY -DFORMAT_7Z -DFORMAT_BZIP2 -DFORMAT_ZIP -DFORMAT_TAR -DFORMAT_GZIP -DCOMPRESS_LZMA -DCOMPRESS_BCJ_X86 -DFORMAT_SPLIT -DFORMAT_Z -DCOMPRESS_BCJ2 -DCOMPRESS_COPY -DCOMPRESS_MF_MT -DCOMPRESS_PPMD -DCOMPRESS_DEFLATE -DCOMPRESS_DEFLATE64 -DCOMPRESS_IMPLODE -DCOMPRESS_BZIP2 -DCRYPTO_ZIP -DCRYPTO_7ZAES -DCRYPTO_AES -c -I/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/myWindows -I/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip -I/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/include_windows  /home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:29:18: error: zlib.h: No such file or directory

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/Common/MyWindows.h:99: warning: ‘struct IUnknown’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../IStream.h:19: warning: ‘struct ISequentialInStream’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../IStream.h:32: warning: ‘struct ISequentialOutStream’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../IStream.h:42: warning: ‘struct IInStream’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../IStream.h:47: warning: ‘struct IOutStream’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../IStream.h:53: warning: ‘struct IStreamGetSize’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../IStream.h:58: warning: ‘struct IOutStreamFlush’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:15: warning: ‘struct ICompressProgressInfo’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:20: warning: ‘struct ICompressCoder’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:29: warning: ‘struct ICompressCoder2’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:59: warning: ‘struct ICompressSetCoderProperties’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:72: warning: ‘struct ICompressSetDecoderProperties2’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:77: warning: ‘struct ICompressWriteCoderProperties’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:82: warning: ‘struct ICompressGetInStreamProcessedSize’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:87: warning: ‘struct ICompressGetSubStreamSize’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:92: warning: ‘struct ICompressSetInStream’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:98: warning: ‘struct ICompressSetOutStream’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:104: warning: ‘struct ICompressSetInStreamSize’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:109: warning: ‘struct ICompressSetOutStreamSize’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:114: warning: ‘struct ICompressFilter’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:125: warning: ‘struct ICryptoProperties’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:131: warning: ‘struct ICryptoSetPassword’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../../ICoder.h:136: warning: ‘struct ICryptoSetCRC’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../LZ/IMatchFinder.h:11: warning: ‘struct IInWindowStream’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../LZ/IMatchFinder.h:26: warning: ‘struct IMatchFinder’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../LZ/IMatchFinder.h:38: warning: ‘struct IMatchFinderCallback’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/user/p7zip/7zip/Compress/LZMA/../LZ/IMatchFinder.h:48: warning: ‘struct IMatchFinderSetCallback’ has virtual functions but non-virtual destructor

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:54: error: expected ‘,’ or ‘...’ before ‘*’ token

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:54: error: ISO C++ forbids declaration of ‘Bytef’ with no type

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:109: error: ISO C++ forbids declaration of ‘Bytef’ with no type

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:109: error: expected ‘;’ before ‘*’ token

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp: In constructor ‘CInMemoryStream::CInMemoryStream(int)’:

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:55: error: class ‘CInMemoryStream’ does not have any field named ‘m_data’

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:55: error: ‘data’ was not declared in this scope

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:55: error: ‘size’ was not declared in this scope

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp: In member function ‘virtual LONG CInMemoryStream::Read(void*, UInt32, UInt32*)’:

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:67: error: ‘m_data’ was not declared in this scope

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp: At global scope:

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:119: error: expected `)' before ‘*’ token

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:178: error: ISO C++ forbids declaration of ‘Bytef’ with no type

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:178: error: expected ‘;’ before ‘*’ token

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp: In member function ‘virtual LONG COutMemoryStream::Write(const void*, UInt32, UInt32*)’:

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:131: error: ‘m_data’ was not declared in this scope

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp: At global scope:

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:184: error: expected constructor, destructor, or type conversion before ‘int’

/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma/ZLib.cpp:256: error: expected constructor, destructor, or type conversion before ‘int’

make[3]: *** [ZLib.o] Error 1

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/liblzma'

make[2]: *** [liblzma] Error 2

make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib'

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

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib'

make: *** [subdirs] Error 1

--

 

Follow-ups

 

--- Robin Getz                                               2009-06-01 20:57:20

Works for me...

 

rgetz@imhotep:~/blackfin/trunk/uClinux-dist> make lib/liblzma_only 

...

bfin-uclinux-ar: creating liblzma.a

make[2]: Leaving directory

`/home/rgetz/blackfin/trunk/uClinux-dist/lib/liblzma'

make[1]: Leaving directory `/home/rgetz/blackfin/trunk/uClinux-dist/lib'

 

How are you building it?

 

--- Mike Frysinger                                           2009-06-01 21:07:26

you probably have ZLIB enabled by default.  LIB_LIBLZMA probably needs a

"select LIB_ZLIB" added to the Kconfig.

 

--- Sonic Zhang                                              2009-06-02 22:04:54

I can't replicate as well.

 

--- Mike Frysinger                                           2009-06-02 22:19:20

i've fixed it then

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.user.lzma    application/octet-stream    45519    Vivi Li

Attachments

Outcomes