2008-07-29 09:32:58     enable "flashw" tool cause build error

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

2008-07-29 09:32:58     enable "flashw" tool cause build error

everest zhang (CHINA)

Message: 59549   

 

HI,

 

    Under 2008R1-RC8 release uClinux-dist,  choose BF561-ezkit platform, if I enable flashw tool, it can't build successfully. If I deselected flashw option, everything is OK. The error message like belows:

 

make[5]: Leaving directory `/home/everest/uClinux-dist-2008R1-RC8/linux-2.6.x'

make[4]: Leaving directory `/home/everest/uClinux-dist-2008R1-RC8/user/blkfin-apps/corebld'

make[4]: Entering directory `/home/everest/uClinux-dist-2008R1-RC8/user/blkfin-apps/yaffs-utils'

make -C utils all || exit 1

make[5]: Entering directory `/home/everest/uClinux-dist-2008R1-RC8/user/blkfin-apps/yaffs-utils/utils'

make[5]: Nothing to be done for `all'.

make[5]: Leaving directory `/home/everest/uClinux-dist-2008R1-RC8/user/blkfin-apps/yaffs-utils/utils'

make[4]: Leaving directory `/home/everest/uClinux-dist-2008R1-RC8/user/blkfin-apps/yaffs-utils'

make[4]: Entering directory `/home/everest/uClinux-dist-2008R1-RC8/user/blkfin-apps/watchdogd'

make[4]: Nothing to be done for `all'.

make[4]: Leaving directory `/home/everest/uClinux-dist-2008R1-RC8/user/blkfin-apps/watchdogd'

make[3]: Leaving directory `/home/everest/uClinux-dist-2008R1-RC8/user/blkfin-apps'

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

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

make[3]: warning: -jN forced in submake: disabling jobserver mode.

  SPLIT   include/autoconf.h -> include/config/*

  GEN     include/bbconfigopts.h

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

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

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

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

make: *** [subdirs] Error 1

 

 

pls help!  thank you very much.

QuoteReplyEditDelete

 

 

2008-07-29 11:03:41     Re: enable "flashw" tool cause build error

Mike Frysinger (UNITED STATES)

Message: 59556   

 

you didnt post the relevant error message.  with 2008R1 release, you need to run `make NON_SMP_BUILD=1` so that the real error shows up last.

 

QuoteReplyEditDelete

 

 

2008-07-29 21:07:47     Re: enable "flashw" tool cause build error

everest zhang (CHINA)

Message: 59573   

 

Thank your reply.

 

I use "make NON_SMP_BUILD=1" you offered to build, error display:

 

flashw.c:23:28: error: linux/autoconf.h: No such file or directory

flashw.c:32:26: error: linux/blkmem.h: No such file or directory

flashw.c: In function ‘main’:

flashw.c:238: error: ‘BMGETSIZEB’ undeclared (first use in this function)

flashw.c:238: error: (Each undeclared identifier is reported only once

flashw.c:238: error: for each function it appears in.)

flashw.c:243: error: ‘BMSGSIZE’ undeclared (first use in this function)

flashw.c:296: warning: implicit declaration of function ‘strnlen’

flashw.c:347: error: ‘BMSERASE’ undeclared (first use in this function)

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

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

make[2]: *** [flashw] Error 2

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

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

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

make: *** [subdirs] Error 1

 

 

but autoconf.h file exsited actually. Why ?

QuoteReplyEditDelete

 

 

2008-07-30 01:09:26     Re: enable "flashw" tool cause build error

Mike Frysinger (UNITED STATES)

Message: 59576   

 

flashw is not a tool you actually need.  just use normal mtd utils/interfaces.

Attachments

    Outcomes