* [U-Boot] input in flex scanner failed (for rpi_0_w_defconfig)
@ 2019-01-29 20:37 Belisko Marek
2019-01-30 0:20 ` Philipp Tomsich
0 siblings, 1 reply; 2+ messages in thread
From: Belisko Marek @ 2019-01-29 20:37 UTC (permalink / raw)
To: u-boot
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)?
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
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] input in flex scanner failed (for rpi_0_w_defconfig)
2019-01-29 20:37 [U-Boot] input in flex scanner failed (for rpi_0_w_defconfig) Belisko Marek
@ 2019-01-30 0:20 ` Philipp Tomsich
0 siblings, 0 replies; 2+ messages in thread
From: Philipp Tomsich @ 2019-01-30 0:20 UTC (permalink / raw)
To: u-boot
> On 29.01.2019, at 21:37, Belisko Marek <marek.belisko@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-30 0:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-29 20:37 [U-Boot] input in flex scanner failed (for rpi_0_w_defconfig) Belisko Marek
2019-01-30 0:20 ` Philipp Tomsich
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.