build error trying to make image after git reorg

Alan Post alanpost at
Thu Nov 18 13:53:33 EST 2010

On Thu, Nov 18, 2010 at 11:22:01AM -0700, Alan Post wrote:
> On Thu, Nov 18, 2010 at 11:14:25AM -0700, Alan Post wrote:
> > I've got another build error now, alas.  I'm debugging it.
> > 
> I'm beginning to think I'm missing some configuration in my environment,
> Here is my current build error:
> make[3]: Entering directory `/home/a/wa/nanonote/core/tools/yaffs2'
> make -C /home/a/wa/nanonote/core/build_dir/host/yaffs2_android/yaffs2/utils CFLAGS="-O2 -I/home/a/wa/nanonote/core/staging_dir/host/include -include endian.h" mkyaffs2image
> make[4]: Entering directory `/home/a/wa/nanonote/core/build_dir/host/yaffs2_android/yaffs2/utils'
> gcc -c -O2 -I/home/a/wa/nanonote/core/staging_dir/host/include -include endian.h yaffs_ecc.c -o yaffs_ecc.o
> yaffs_ecc.c:36:22: error: yportenv.h: No such file or directory
> yaffs_ecc.c:38:23: error: yaffs_ecc.h: No such file or directory
> yaffs_ecc.c:256: error: expected declaration specifiers or '...' before 'yaffs_ECCOther'
> yaffs_ecc.c: In function 'yaffs_ECCCalculateOther':
> yaffs_ecc.c:277: error: 'eccOther' undeclared (first use in this function)
> yaffs_ecc.c:277: error: (Each undeclared identifier is reported only once
> yaffs_ecc.c:277: error: for each function it appears in.)
> yaffs_ecc.c: At top level:
> yaffs_ecc.c:283: error: expected declaration specifiers or '...' before 'yaffs_ECCOther'
> yaffs_ecc.c:284: error: expected ';', ',' or ')' before '*' token
> make[4]: *** [yaffs_ecc.o] Error 1
> make[4]: Leaving directory `/home/a/wa/nanonote/core/build_dir/host/yaffs2_android/yaffs2/utils'
> make[3]: *** [/home/a/wa/nanonote/core/build_dir/host/yaffs2_android/.built] Error 2
> make[3]: Leaving directory `/home/a/wa/nanonote/core/tools/yaffs2'
> make[2]: *** [tools/yaffs2/compile] Error 2
> make[2]: Leaving directory `/home/a/wa/nanonote/core'
> make[1]: *** [/home/a/wa/nanonote/core/staging_dir/target-mipsel_uClibc-] Error 2
> make[1]: Leaving directory `/home/a/wa/nanonote/core'
> make: *** [world] Error 2
> Those files exist, but not in the .../utils directory.  They are one
> directory lower.  Does anyone see an obvious configuration mistake I've
> made that would result in errors like this?
> -Alan
> -- 
> .i ko djuno fi le do sevzi

I had some testing code in my work area that was causing this
problem.  I thought I'd stashed it before the build, but I had

I was therefor not running any patches for the software I was trying
to build.

.i ko djuno fi le do sevzi

More information about the discussion mailing list