crosstool-ng-1.15.2: broken with older flex versions
Thomas De Schampheleire
patrickdepinguin+buildroot@gmail.com
Fri Jun 8 08:56:00 GMT 2012
[Please keep me in copy]
Hi,
In flex 2.5.4 (unfortunately still shipped with CentOS 5.8) and
possibly newer versions as well, the -o and -P (and possibly other)
options require that there is no whitespace between the option and its
argument.
This causes the following line from kconfig/Makefile to break:
lex.zconf.c: zconf.l
@echo " LEX '$@'"
@flex -L -P zconf -o $@ $<
changing this to:
lex.zconf.c: zconf.l
@echo " LEX '$@'"
@flex -L -Pzconf -o$@ $<
fixes the problem.
Here are the errors otherwise shown:
GEN 'config/configure.in'
GEN 'paths.mk'
GEN 'paths.sh'
LEX 'lex.zconf.c'
flex: can't open zconf
make[2]: *** [build-lib-kconfig] Error 2
make[1]: *** [build] Error 2
make[1]: Leaving directory
`/repo/central/jenkins/workspace/buildroot-eglibc-toolchain/output/build/host-crosstool-ng-1.15.2'
make: *** [/repo/central/jenkins/workspace/buildroot-eglibc-toolchain/output/build/host-crosstool-ng-1.15.2/.stamp_built]
Error 2
and after fixing the -P problem first;
GEN 'config/configure.in'
GEN 'paths.mk'
GEN 'paths.sh'
LEX 'lex.zconf.c'
flex: can't open lex.zconf.c
make[2]: *** [build-lib-kconfig] Error 2
make[1]: *** [build] Error 2
make[1]: Leaving directory
`/repo/central/jenkins/workspace/buildroot-eglibc-toolchain/output/build/host-crosstool-ng-1.15.2'
make: *** [/repo/central/jenkins/workspace/buildroot-eglibc-toolchain/output/build/host-crosstool-ng-1.15.2/.stamp_built]
Error 2
This was apparently reported on IRC:
http://crosstool-ng.org/download/ibot-logs/2012-02-18.html
but without reply.
Although the mentioned flex version is very old, I think the change is
not large nor messy so that it can be applied anyway. Especially since
it is still used in CentOS 5 (not sure about version 6, don't have
it).
Best regards,
Thomas
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list