2010-11-23 07:11:31     SVN trunk / mtd-utils does not compile

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

2010-11-23 07:11:31     SVN trunk / mtd-utils does not compile

Andreas Schallenberg (GERMANY)

Message: 96131   

 

Using toolchain 2010R1RC4, uClinux SVN trunk (rev. 9977).

Host is 64 bit openSUSE 11.1.

 

Calling "make single" gives:

 

 

...

bfin-linux-uclibc-gcc -DEMBED -D__uClinux__ -I/home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn  -mcpu=bf537-0.3 -I./include  -I/usr/include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -I../include -D_FILE_OFFSET_BITS=64 -pipe -Wall -g -O2      -mcpu=bf537-0.3 -Wall -Wextra -Wwrite-strings -Wno-sign-compare -ffunction-sections -fdata-sections -Wl,--gc-sections -Wall -Wextra -Wwrite-strings -Wno-sign-compare -ffunction-sections -fdata-sections -Wl,--gc-sections -c -o /home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/lib/libmtd.o libmtd.c -g -Wp,-MD,/home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/lib/.libmtd.c.dep

libmtd.c: In function 'mtd_erase':

libmtd.c:841: error: storage size of 'ei64' isn't known

libmtd.c:848: error: '__u64' undeclared (first use in this function)

libmtd.c:848: error: (Each undeclared identifier is reported only once

libmtd.c:848: error: for each function it appears in.)

libmtd.c:848: error: expected ';' before 'eb'

libmtd.c:853: error: 'MEMERASE64' undeclared (first use in this function)

libmtd.c:841: warning: unused variable 'ei64'

libmtd.c: In function 'do_oob_op':

libmtd.c:1083: error: storage size of 'oob64' isn't known

libmtd.c:1089: error: 'MEMREADOOB64' undeclared (first use in this function)

libmtd.c:1083: warning: unused variable 'oob64'

libmtd.c: In function 'mtd_read_oob':

libmtd.c:1163: error: 'MEMREADOOB64' undeclared (first use in this function)

libmtd.c: In function 'mtd_write_oob':

libmtd.c:1170: error: 'MEMWRITEOOB64' undeclared (first use in this function)

make[7]: *** [/home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/lib/libmtd.o] Error 1

 

#0  /home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/lib/libmtd.o at ??

#1  /home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/lib/libmtd.a at /home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/fec81abd9593fe11ba8577d38e4143e5708e3343/lib/Makefile:15

#2  all (.PHONY target)

make[7]: Leaving directory `/home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/fec81abd9593fe11ba8577d38e4143e5708e3343/lib'

make[6]: *** [subdirs_lib_all] Error 2

...

TranslateQuoteReplyEditDelete

 

 

2010-11-23 07:29:08     Re: SVN trunk / mtd-utils does not compile

Mike Frysinger (UNITED STATES)

Message: 96132   

 

it seems your env has ZLIBCPPFLAGS or LZOCPPFLAGS when they shouldnt be.  check your environment for bugs.

QuoteReplyEditDelete

 

 

2010-11-23 07:41:06     Re: SVN trunk / mtd-utils does not compile

Andreas Schallenberg (GERMANY)

Message: 96133   

 

Yes there was such an environment var. Now goes one step further:

 

bfin-linux-uclibc-gcc -DEMBED -D__uClinux__ -I/home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn  -mcpu=bf537-0.3 -I./include   -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -pipe -Wall -g -O2      -mcpu=bf537-0.3 -Wall -Wextra -Wwrite-strings -Wno-sign-compare -ffunction-sections -fdata-sections -Wl,--gc-sections -c -o /home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/compr_lzo.o compr_lzo.c -g -Wp,-MD,/home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/.compr_lzo.c.dep

compr_lzo.c:29:23: error: 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: expected ';' 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: expected ';' 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: In function 'jffs2_lzo_init':

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

make[4]: *** [/home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/compr_lzo.o] Error 1

 

#0  /home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/compr_lzo.o at ??

#1  /home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/build-fec81abd9593fe11ba8577d38e4143e5708e3343/mkfs.jffs2 at /home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/fec81abd9593fe11ba8577d38e4143e5708e3343/Makefile:45

#2  all at /home/aschallenberg/Repos/RigControl/trunk/SNU/bfin/uClinux/uclinux-dist-trunk-svn/user/mtd-utils/fec81abd9593fe11ba8577d38e4143e5708e3343/common.mk:46

 

I've found this:

  blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=4164

 

On my host:

 

> sudo zypper install liblzo2-2 lzo-devel

Loading repository data...

Reading installed packages...

'liblzo2-2' is already installed.

'lzo-devel' is already installed.

Resolving package dependencies...

Nothing to do.

 

> ll /usr/include/lzo/

total 156

-rw-r--r-- 1 root root  3334 Dec  3  2008 lzo1.h

-rw-r--r-- 1 root root  3338 Dec  3  2008 lzo1a.h

-rw-r--r-- 1 root root  6085 Dec  3  2008 lzo1b.h

-rw-r--r-- 1 root root  6082 Dec  3  2008 lzo1c.h

-rw-r--r-- 1 root root  3773 Dec  3  2008 lzo1f.h

-rw-r--r-- 1 root root  6561 Dec  3  2008 lzo1x.h

-rw-r--r-- 1 root root  5337 Dec  3  2008 lzo1y.h

-rw-r--r-- 1 root root  5414 Dec  3  2008 lzo1z.h

-rw-r--r-- 1 root root  3227 Dec  3  2008 lzo2a.h

-rw-r--r-- 1 root root  5769 Dec  3  2008 lzo_asm.h

-rw-r--r-- 1 root root 14090 Dec  3  2008 lzoconf.h

-rw-r--r-- 1 root root 65826 Dec  3  2008 lzodefs.h

-rw-r--r-- 1 root root  2512 Dec  3  2008 lzoutil.h

 

> uname -a

Linux GWS026Linux 2.6.27.54-0.1-default #1 SMP 2010-10-19 18:40:07 +0200 x86_64 x86_64 x86_64 GNU/Linux

TranslateQuoteReplyEditDelete

 

 

2010-11-23 07:49:38     Re: SVN trunk / mtd-utils does not compile

Mike Frysinger (UNITED STATES)

Message: 96134   

 

host libraries have no bearing when using the cross-compiler.  i have no idea what options you've enabled, but the kconfig should automatically select liblzo for the target and compile/install it as needed.

QuoteReplyEditDelete

 

 

2010-11-23 08:11:57     Re: SVN trunk / mtd-utils does not compile

Andreas Schallenberg (GERMANY)

Message: 96136   

 

I just made sure I got these packages since the docs about linux installation said so.

 

Manually selecting the library in user config made it compile.

 

Thank you. I'll now send a new diff.

Attachments

    Outcomes