[Yocto-builds] buildbot failure in Yocto on nightly-mips

Richard Purdie richard.purdie at linuxfoundation.org
Fri Feb 3 04:34:44 PST 2012


On Fri, 2012-02-03 at 11:23 +0000, Richard Purdie wrote:
> On Fri, 2012-02-03 at 05:53 +0000, Zhang, Jessica wrote:
> > Mips nightly build failed for master with the following errors, please
> > take a look.  Thx - Jessica
> 
> This looks like a total nightmare of an error. Its caused by bitbake
> seeing shell code which it can't parse.
> 
> > Traceback (most recent call last):
> > 
> >   File
> > "/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/bitbake/lib/bb/codeparser.py", line 268, in ShellParser.parse_shell(value='\techo "[INFO] doing kernel configme"\n\n\tif [ -n ${KCONFIG_MODE} ]; then\n\t\tconfigmeflags=${KCONFIG_MODE}\n\telse\n\t\t# If a defconfig was passed, use =n as the baseline, which is achieved\n\t\t# via --allnoconfig\n\t\tif [ -f /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/work/routerstationpro-poky-linux/linux-yocto-3.2.2+git1+138bf5b502607fe40315c0d76822318d77d97e01_1+e015d29f374cd986e15f636b6b84b514d95d76ed-r0/defconfig ]; then\n\t\t\tconfigmeflags="--allnoconfig"\n\t\tfi\n\tfi\n\n\tcd /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/work/routerstationpro-poky-linux/linux-yocto-3.2.2+git1+138bf5b502607fe40315c0d76822318d77d97e01_1+e015d29f374cd986e15f636b6b84b514d95d76ed-r0/linux\n\tPATH=/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/sysroots/x!
 86_
>  64-linux/usr/bin/mips-poky-linux:/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/sysroots/routerstationpro/usr/bin/crossscripts:/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/sysroots/x86_64-linux/usr/bin:/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/sysroots/x86_64-linux/sbin:/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/sysroots/x86_64-linux//bin:/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/bitbake/bin/:/srv/home/pokybuild/yocto-autobuilder/bin:/srv/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/usr/lib64/mpi/gcc/openmpi/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/srv/home/pokybuild/yocto-autobuilder!
 /yo
>  cto-slave/nightly-mips/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/work/routerstationpro-poky-linux/linux-yocto-3.2.2+git1+138bf5b502607fe40315c0d76822318d77d97e01_1+e015d29f374cd986e15f636b6b84b514d95d76ed-r0/linux/scripts/util\n\tconfigme ${configmeflags} --reconfig --output /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/work/routerstationpro-poky-linux/linux-yocto-3.2.2+git1+138bf5b502607fe40315c0d76822318d77d97e01_1+e015d29f374cd986e15f636b6b84b514d95d76ed-r0/linux-routerstationpro-standard-build standard/default/routerstationpro routerstationpro"\n\tif [ $? -ne 0 ]; then\n\t\techo "ERROR. Could not configure routerstationpro"-standard"\n\t\texit 1\n\tfi\n\n\techo "# Global settings from linux recipe" >> /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/work/routerstationpro-poky-linux/linux-yocto-3.2.2+git1+138bf5b502607fe40315c0d76822318d77d97e01_1+e015d29f374cd986e15f6!
 36b
>  6b84b514d95d76ed-r0/linux-routerstationpro-standard-build/.config\n\techo "CONFIG_LOCALVERSION="\\"-yocto-standard\\" >> /home/pokybuild/yocto-autobuilder/yocto-slave/nightly-mips/build/build/tmp/work/routerstationpro-poky-linux/linux-yocto-3.2.2+git1+138bf5b502607fe40315c0d76822318d77d97e01_1+e015d29f374cd986e15f636b6b84b514d95d76ed-r0/linux-routerstationpro-standard-build/.config\n'):
> > 
> [...]
> >      
> > ShellSyntaxError: LexToken(Fi,'fi',0,0)
> > followed by:
> >   LexToken(NEWLINE,'\n',0,0)
> >   LexToken(NEWLINE,'\n',0,0)
> >   LexToken(TOKEN,'echo',0,0)
> >   LexToken(TOKEN,'"# Global settings from linux recipe"',0,0)
> >   LexToken(DGREAT,'>>',0,0)
> > 
> So taking the above and putting the newlines/tabs back, then using the
> lexer stack as a hint, we find:
> 
> 	if [ $? -ne 0 ]; then
> 		echo "ERROR. Could not configure routerstationpro"-standard"
> 		exit 1
> 	fi
>  
> in other words we have a stray quote somewhere. The easy command to
> reproduce is:
> 
> MACHINE=routerstationpro bitbake linux-yocto

I spotted the error and pushed a fix (KMACHINE missing a quote in
meta-yocto).

Cheers,

Richard




More information about the yocto-builds mailing list