Hi, I encountered the following error message with latest xen-unstable. My flex version is 2.5.4. make[2]: Entering directory `/xen/xen-unstable.hg/tools'' make -C libxl install make[3]: Entering directory `/xen/xen-unstable.hg/tools/libxl'' gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .xl.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I. -fPIC -I../../tools/libxc -I../../tools/include -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -c xl.c flex --header-file=libxlu_cfg_l.h --outfile=libxlu_cfg_l.c libxlu_cfg_l.l flex: unknown flag ''-''. For usage, try flex --help make[3]: *** [libxlu_cfg_l.c] Error 1 make[3]: Leaving directory `/xen/xen-unstable.hg/tools/libxl'' make[2]: *** [subdir-install-libxl] Error 2 make[2]: Leaving directory `/xen/xen-unstable.hg/tools'' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/xen/xen-unstable.hg/tools'' make: *** [install-tools] Error 2 Best regards, Kan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 04/03/2010 00:53, "Masaki Kanno" <kanno.masaki@jp.fujitsu.com> wrote:> Hi, > > I encountered the following error message with latest xen-unstable. > My flex version is 2.5.4.I''ll leave it to Ian to make a more portable flex invocation, or submit a patch to check the generated files into the repository. -- Keir> make[2]: Entering directory `/xen/xen-unstable.hg/tools'' > make -C libxl install > make[3]: Entering directory `/xen/xen-unstable.hg/tools/libxl'' > gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 -march=i686 > -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value > -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .xl.o.d > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I. -fPIC -I../../tools/libxc > -I../../tools/include -I../../tools/libxc -I../../tools/include > -I../../tools/xenstore -I../../tools/include -c xl.c > flex --header-file=libxlu_cfg_l.h --outfile=libxlu_cfg_l.c libxlu_cfg_l.l > flex: unknown flag ''-''. For usage, try > flex --help > make[3]: *** [libxlu_cfg_l.c] Error 1 > make[3]: Leaving directory `/xen/xen-unstable.hg/tools/libxl'' > make[2]: *** [subdir-install-libxl] Error 2 > make[2]: Leaving directory `/xen/xen-unstable.hg/tools'' > make[1]: *** [subdirs-install] Error 2 > make[1]: Leaving directory `/xen/xen-unstable.hg/tools'' > make: *** [install-tools] Error 2 > > > Best regards, > Kan > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser writes ("Re: [Xen-devel] Build error occurred"):> On 04/03/2010 00:53, "Masaki Kanno" <kanno.masaki@jp.fujitsu.com> wrote: > > I encountered the following error message with latest xen-unstable. > > My flex version is 2.5.4. > > I''ll leave it to Ian to make a more portable flex invocation, or submit a > patch to check the generated files into the repository.I haven''t double-checked exactly which version is needed, but 2.5.4 was released by the FSF in *SEPTEMBER 1996*. The --header-file option was introduced in 2.5.19 released in September 2002. We don''t support Python 2.2 any more and Python 2.2.3, the last release of Python 2.2, was released in May 2003. So to be perfectly honest, I think it''s fair enough to expect people to have a newer version of flex. What on earth is Masaki running ?? However, it''s easy enough to check in the generated files. Patch attached. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Thu, 4 Mar 2010 11:25:30 +0000, Ian Jackson wrote:>Keir Fraser writes ("Re: [Xen-devel] Build error occurred"): >> On 04/03/2010 00:53, "Masaki Kanno" <kanno.masaki@jp.fujitsu.com> wrote: >> > I encountered the following error message with latest xen-unstable. >> > My flex version is 2.5.4. >> >> I''ll leave it to Ian to make a more portable flex invocation, or submit a >> patch to check the generated files into the repository. > >I haven''t double-checked exactly which version is needed, but 2.5.4 >was released by the FSF in *SEPTEMBER 1996*. The --header-file option >was introduced in 2.5.19 released in September 2002. > >We don''t support Python 2.2 any more and Python 2.2.3, the last >release of Python 2.2, was released in May 2003. > >So to be perfectly honest, I think it''s fair enough to expect people >to have a newer version of flex. What on earth is Masaki running ?? > >However, it''s easy enough to check in the generated files. Patch >attached.Hi Ian, Thank you. I succeeded to build xen-unstable by your patch. I''m using them. # cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.1 (Tikanga) # python -V Python 2.4.3 Best regards, Kan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2010-Apr-06 19:07 UTC
Re: [Xen-devel] Build error occurred / python and flex version requirements for Xen 4.0
On Thu, Mar 04, 2010 at 09:21:40PM +0900, Masaki Kanno wrote:> Thu, 4 Mar 2010 11:25:30 +0000, Ian Jackson wrote: > > >Keir Fraser writes ("Re: [Xen-devel] Build error occurred"): > >> On 04/03/2010 00:53, "Masaki Kanno" <kanno.masaki@jp.fujitsu.com> wrote: > >> > I encountered the following error message with latest xen-unstable. > >> > My flex version is 2.5.4. > >> > >> I''ll leave it to Ian to make a more portable flex invocation, or submit a > >> patch to check the generated files into the repository. > > > >I haven''t double-checked exactly which version is needed, but 2.5.4 > >was released by the FSF in *SEPTEMBER 1996*. The --header-file option > >was introduced in 2.5.19 released in September 2002. > > > >We don''t support Python 2.2 any more and Python 2.2.3, the last > >release of Python 2.2, was released in May 2003. > > > >So to be perfectly honest, I think it''s fair enough to expect people > >to have a newer version of flex. What on earth is Masaki running ?? > > > >However, it''s easy enough to check in the generated files. Patch > >attached. > > Hi Ian, > > Thank you. I succeeded to build xen-unstable by your patch. > > I''m using them. > > # cat /etc/redhat-release > Red Hat Enterprise Linux Server release 5.1 (Tikanga) > # python -V > Python 2.4.3 > > Best regards, > Kan >I''m in the process of writing a wiki page for Xen 4.0 release, and I was thinking of adding a note about this. A question: in what cases does one need to re-generate the stuff, and thus have newer flex than in RHEL5/CentOS5? Is newer python required aswell, or only flex? Thanks! -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2010-Apr-06 19:30 UTC
Re: [Xen-devel] Build error occurred / python and flex version requirements for Xen 4.0
On 06/04/2010 20:07, "Pasi Kärkkäinen" <pasik@iki.fi> wrote:> I''m in the process of writing a wiki page for Xen 4.0 release, > and I was thinking of adding a note about this. > > A question: in what cases does one need to re-generate the stuff, > and thus have newer flex than in RHEL5/CentOS5?Only if you modify the source-tree inputs to flex. If only building the tree you do not need flex. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel