[U-Boot] input in flex scanner failed (for rpi_0_w_defconfig)

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Wed Jan 30 00:20:15 UTC 2019


> On 29.01.2019, at 21:37, Belisko Marek <marek.belisko at gmail.com> wrote:
> 
> Hi,
> 
> I'm trying to build u-boot in docker on osx (installed build-essentials +
> gcc-arm) but hit this issue (with verbose make) during config phase. I
> tried same on linux and it works fine. Any ideas what can cause this (or
> how to debug)?

‘grep’ would have been a good start...

> make ARCH=arm rpi_0_w_defconfig V=1
> 
> make -f ./scripts/Makefile.build obj=scripts/basic
> 
>  cc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer      -o scripts/basic/fixdep scripts/basic/fixdep.c
> 
> rm -f .tmp_quiet_recordmcount
> 
> make -f ./scripts/Makefile.build obj=scripts/kconfig rpi_0_w_defconfig
> 
>  cc -Wp,-MD,scripts/kconfig/.conf.o.d -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer    -DCURSES_LOC="<curses.h>" -DLOCALE   -c -o
> scripts/kconfig/conf.o scripts/kconfig/conf.c
> 
>  cc -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer    -DCURSES_LOC="<curses.h>" -DLOCALE  -Iscripts/kconfig
> -c -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c
> 
>  cc  -o scripts/kconfig/conf scripts/kconfig/conf.o
> scripts/kconfig/zconf.tab.o
> 
> scripts/kconfig/conf  --defconfig=arch/../configs/rpi_0_w_defconfig Kconfig
> 
> input in flex scanner failed

Huh. I haven’t seen that error message in a looooong time.
This will be printed by a flex-generated lexer, if the input file can’t
be read.

Case in point (from scripts/kconfig/zconf.lex.c_shipped):

/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
 * is returned in "result".
 */
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
        errno=0; \
        while ( (result = read( fileno(zconfin), (char *) buf, max_size )) < 0 )
 \
        { \
                if( errno != EINTR) \
                { \
                        YY_FATAL_ERROR( "input in flex scanner failed" ); \
                        break; \
                } \
                errno=0; \
                clearerr(zconfin); \
        }\
\


> 
> scripts/kconfig/Makefile:121: recipe for target 'rpi_0_w_defconfig' failed
> 
> make[1]: *** [rpi_0_w_defconfig] Error 2
> 
> Makefile:478: recipe for target 'rpi_0_w_defconfig' failed
> 
> make: *** [rpi_0_w_defconfig] Error 2
> 
> BR,
> 
> marek
> 
> -- 
> as simple and primitive as possible
> -------------------------------------------------
> Marek Belisko - OPEN-NANDRA
> Freelance Developer
> 
> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
> Tel: +421 915 052 184
> skype: marekwhite
> twitter: #opennandra
> web: http://open-nandra.com
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot



More information about the U-Boot mailing list