From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhihao wang Subject: fatal error if Flex and Bison is not configured Date: Thu, 12 Apr 2012 19:12:39 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6056161867552999244==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org --===============6056161867552999244== Content-Type: multipart/alternative; boundary=00235429d05020ee0e04bd796f4c --00235429d05020ee0e04bd796f4c Content-Type: text/plain; charset=ISO-8859-1 Hi all, I try to build xen 4.2( revision number: 25161) on Ubuntu 11.10_amd64, Mac pro. After running ./configure and make. I got the following fatal error: *libxlu_cfg_y.y:22:26: fatal error: libxlu_cfg_l.h: No such file or directory compilation terminated.* So the original libxlu_cfg_l.h is deleted when making, and should be regenerated but it is not. I find the path of flex and bison is not set. When I add the correct path of flex and bison in tools.mk manually, This error is fixed. So, Is there anything in build scripts to modify to avoid this error ? Regards Wangzhihao --00235429d05020ee0e04bd796f4c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,

I try to build xen 4.2( revision number: 25161) =09 =09 =09 on Ubuntu 11.10_amd64, Mac pro. After running ./configure and make. I got = the following fatal error:

libxl= u_cfg_y.y:22:26: fatal error: libxlu_cfg_l.h: No such file or directory com= pilation terminated.

So the original libxlu_cfg_l.h is deleted when making, and should= be regenerated but it is not.=A0 I find the path of flex and bison is not = set.=A0 When I add the correct path of flex and bison in tools.mk manually, This error is fixed.
So, Is there anything in build scripts to modify to avoid this error ? =

Regards

Wangzhihao




--00235429d05020ee0e04bd796f4c-- --===============6056161867552999244== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============6056161867552999244==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: fatal error if Flex and Bison is not configured Date: Thu, 12 Apr 2012 12:24:31 +0100 Message-ID: <1334229871.16387.81.camel@zakaz.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: zhihao wang Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2012-04-12 at 12:12 +0100, zhihao wang wrote: > Hi all, > > I try to build xen 4.2( revision number: 25161) on Ubuntu 11.10_amd64, > Mac pro. After running ./configure and make. I got the following fatal > error: > > libxlu_cfg_y.y:22:26: fatal error: libxlu_cfg_l.h: No such file or > directory compilation terminated. > > > So the original libxlu_cfg_l.h is deleted when making, and should be > regenerated but it is not. Actually it should never have been deleted in the first place, unless you have been modifying the flex source. Please can you enumerate the exact steps you took, starting from the initial clone of the repo, which caused the file to be deleted? > I find the path of flex and bison is not set. When I add the correct > path of flex and bison in tools.mk manually, This error is fixed. Those tools should be optional since the generated files are checked in. However perhaps configure should detect and provide the paths but behave in a non-fatal manner if they aren't available? Roger, what do you think? Ian. From mboxrd@z Thu Jan 1 00:00:00 1970 From: David TECHER Subject: Re : fatal error if Flex and Bison is not configured Date: Thu, 12 Apr 2012 12:29:07 +0100 (BST) Message-ID: <1334230147.25009.YahooMailNeo@web29805.mail.ird.yahoo.com> References: Reply-To: David TECHER Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0432555564010299714==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: zhihao wang , "xen-devel@lists.xen.org" Cc: "Ian.Campbell@citrix.com" List-Id: xen-devel@lists.xenproject.org --===============0432555564010299714== Content-Type: multipart/alternative; boundary="62747910-797829268-1334230147=:25009" --62747910-797829268-1334230147=:25009 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable BISON=3D$(which bison) FLEX=3D$(which flex) CURL=3D$(which curl-config) XML= =3D$(which xml2-config) ./configure=0A=0A=0A_______________________________= _=0A De=A0: zhihao wang =0A=C0=A0: xen-devel@lists.xe= n.org =0ACc=A0: Ian.Campbell@citrix.com =0AEnvoy=E9 le : Jeudi 12 avril 201= 2 13h12=0AObjet=A0: [Xen-devel] fatal error if Flex and Bison is not config= ured=0A =0A=0AHi all,=0A=0AI try to build xen 4.2( revision number: =092516= 1)=0A=0A=0A=09=0A=09=0A=09=0A=09on Ubuntu 11.10_amd64, Mac pro. After runni= ng ./configure and make. I got the following fatal error:=0A=0A=0Alibxlu_cf= g_y.y:22:26: fatal error: libxlu_cfg_l.h: No such file or directory compila= tion terminated.=0A=0ASo the original libxlu_cfg_l.h is deleted when making= , and should be regenerated but it is not.=A0 I find the path of flex and b= ison is not set.=A0 When I add the correct path of flex and bison in tools.= mk manually, This error is fixed. =0A=0ASo, Is there anything in build scri= pts to modify to avoid this error ? =0A=0ARegards=0A=0AWangzhihao=0A=0A=0A= =0A=0A=0A_______________________________________________=0AXen-devel mailin= g list=0AXen-devel@lists.xen.org=0Ahttp://lists.xen.org/xen-devel --62747910-797829268-1334230147=:25009 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
BISON=3D$(which =
bison) FLEX=3D$(which flex) CURL=3D$(which curl-config) XML=3D$(which xml2-=
config) ./configure


De : zhihao wang <accept.acm@gmai= l.com>
=C0 : x= en-devel@lists.xen.org
Cc :<= /span> Ian.Campbell@citrix.com
Envoy=E9 le : Jeudi 12 avril 2012 13h12
Objet : [Xen-devel] fatal error if Fle= x and Bison is not configured

Hi all,

= I try to build xen 4.2( revision number: =0925161)=0A=0A=0A=09=0A=09=0A=09= =0A=09on Ubuntu 11.10_amd64, Mac pro. After running ./configure and make. I= got the following fatal error:

libxlu_cfg_y.y:22:26: fatal error: libxlu_cfg_l.h: No such file or directo= ry compilation terminated.
=0A

So the original libxlu_cfg_l= .h is deleted when making, and should be regenerated but it is not.  I= find the path of flex and bison is not set.  When I add the correct p= ath of flex and bison in tools.mk manually, This error is fixed.
=0A
So, Is = there anything in build scripts to modify to avoid this error ?

Reg= ards

Wangzhihao



=0A
=0A=0A

_______________________________________________Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.or= g/xen-devel


--62747910-797829268-1334230147=:25009-- --===============0432555564010299714== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============0432555564010299714==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: fatal error if Flex and Bison is not configured Date: Thu, 12 Apr 2012 14:28:18 +0100 Message-ID: References: <1334229871.16387.81.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1334229871.16387.81.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: zhihao wang , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, Apr 12, 2012 at 12:24 PM, Ian Campbell wr= ote: > On Thu, 2012-04-12 at 12:12 +0100, zhihao wang wrote: >> Hi all, >> >> I try to build xen 4.2( revision number: 25161) on Ubuntu 11.10_amd64, >> Mac pro. After running ./configure and make. I got the following fatal >> error: >> >> libxlu_cfg_y.y:22:26: fatal error: libxlu_cfg_l.h: No such file or >> directory compilation terminated. >> >> >> So the original libxlu_cfg_l.h is deleted when making, and should be >> regenerated but it is not. > > Actually it should never have been deleted in the first place, unless > you have been modifying the flex source. > > Please can you enumerate the exact steps you took, starting from the > initial clone of the repo, which caused the file to be deleted? > >> I find the path of flex and bison is not set. =A0When I add the correct >> path of flex and bison in tools.mk manually, This error is fixed. > > Those tools should be optional since the generated files are checked in. > However perhaps configure should detect and provide the paths but behave > in a non-fatal manner if they aren't available? Roger, what do you > think? FWIW, I managed to get into a state where I ran into this error too; after a sequence of fairly random steps, it went away, and I wasn't able to reproduce it again. I have no idea what I did to get there in the first place, nor what I did to fix it. Zhihao: I think if you make a clean copy of the repo and run ./configure again, the problem will probably go away. -George From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: fatal error if Flex and Bison is not configured Date: Thu, 12 Apr 2012 15:05:45 +0100 Message-ID: <1334239545.16387.108.camel@zakaz.uk.xensource.com> References: <1334229871.16387.81.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap , Ian Jackson Cc: zhihao wang , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2012-04-12 at 14:28 +0100, George Dunlap wrote: > On Thu, Apr 12, 2012 at 12:24 PM, Ian Campbell wrote: > > On Thu, 2012-04-12 at 12:12 +0100, zhihao wang wrote: > >> Hi all, > >> > >> I try to build xen 4.2( revision number: 25161) on Ubuntu 11.10_amd64, > >> Mac pro. After running ./configure and make. I got the following fatal > >> error: > >> > >> libxlu_cfg_y.y:22:26: fatal error: libxlu_cfg_l.h: No such file or > >> directory compilation terminated. > >> > >> > >> So the original libxlu_cfg_l.h is deleted when making, and should be > >> regenerated but it is not. > > > > Actually it should never have been deleted in the first place, unless > > you have been modifying the flex source. > > > > Please can you enumerate the exact steps you took, starting from the > > initial clone of the repo, which caused the file to be deleted? > > > >> I find the path of flex and bison is not set. When I add the correct > >> path of flex and bison in tools.mk manually, This error is fixed. > > > > Those tools should be optional since the generated files are checked in. > > However perhaps configure should detect and provide the paths but behave > > in a non-fatal manner if they aren't available? Roger, what do you > > think? > > FWIW, I managed to get into a state where I ran into this error too; > after a sequence of fairly random steps, it went away, and I wasn't > able to reproduce it again. I have no idea what I did to get there in > the first place, nor what I did to fix it. I wonder if this is to do with timestamp skew or something like that cause false reruns of bison? Those would then fail (no bison) which in turn would cause make to delete the target. Perhaps we need to disable the flex and bison rules unless some magic flag is set (by those who are modifying the relevant sources)? CCing IanJ on the assumption he knows what's going on here.. > Zhihao: I think if you make a clean copy of the repo and run > ./configure again, the problem will probably go away. "hg revert " would probably do the job too. Ian. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: Re: fatal error if Flex and Bison is not configured Date: Thu, 12 Apr 2012 15:10:28 +0100 Message-ID: <20358.57940.702696.586660@mariner.uk.xensource.com> References: <1334229871.16387.81.camel@zakaz.uk.xensource.com> <1334239545.16387.108.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1334239545.16387.108.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: zhihao wang , George Dunlap , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] fatal error if Flex and Bison is not configured"): > I wonder if this is to do with timestamp skew or something like that > cause false reruns of bison? Those would then fail (no bison) which in > turn would cause make to delete the target. Timestamp skew could certainly cause this. Is NFS involved ? Does the computer you're using have a stable, synchronised, clock ? Are you copying working trees about ? Are you using a tree actually cloned with hg ? It's also possible, I guess, that hg takes no special care with mtimes, in which case just "hg pull" might, if you were unlucky, update the files in different seconds and in the wrong order. > Perhaps we need to disable the flex and bison rules unless some magic > flag is set (by those who are modifying the relevant sources)? Well, we have configure now. We could enable those rules iff (suitably recent[1]) bison and flex were found. [1] The original reason why we checked these files into the tree was that shipped versions of Centos and RHEL had truly prehistoric versions which didn't support making properly reentrant scanners/parsers. Ian. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: fatal error if Flex and Bison is not configured Date: Thu, 12 Apr 2012 16:15:18 +0200 Message-ID: <1334240118.3866.1.camel@Abyss.lan> References: <1334229871.16387.81.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5691538777540145147==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: zhihao wang , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============5691538777540145147== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-6KnqePJShaoZ/qnBjRNA" --=-6KnqePJShaoZ/qnBjRNA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2012-04-12 at 14:28 +0100, George Dunlap wrote:=20 > > Those tools should be optional since the generated files are checked in= . > > However perhaps configure should detect and provide the paths but behav= e > > in a non-fatal manner if they aren't available? Roger, what do you > > think? >=20 > FWIW, I managed to get into a state where I ran into this error too; > after a sequence of fairly random steps, it went away, and I wasn't > able to reproduce it again. =20 > Same here, it occurred to me last week or something like that. > I have no idea what I did to get there in > the first place, nor what I did to fix it. >=20 Me neither... AFAICR (as I was on an `hg clone'-ed repo) I checked out the original files that went missing by hand. :-( Sorry of not being able to help more. Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-6KnqePJShaoZ/qnBjRNA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAk+G43cACgkQk4XaBE3IOsSdNwCglwGHI84OizUJSFcujnHuCqon UPIAnjKGcQ/FPWgD6RwwaQTtKiQ+65sa =4HVc -----END PGP SIGNATURE----- --=-6KnqePJShaoZ/qnBjRNA-- --===============5691538777540145147== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============5691538777540145147==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Pau Monne Subject: Re: fatal error if Flex and Bison is not configured Date: Fri, 13 Apr 2012 11:04:25 +0100 Message-ID: <4356F40F-0962-4F75-B29A-88A67F00A7CB@citrix.com> References: <1334229871.16387.81.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1334229871.16387.81.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: zhihao wang , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org El 12/04/2012, a las 12:24, Ian Campbell escribi=F3: > On Thu, 2012-04-12 at 12:12 +0100, zhihao wang wrote: >> Hi all, >> = >> I try to build xen 4.2( revision number: 25161) on Ubuntu 11.10_amd64, >> Mac pro. After running ./configure and make. I got the following fatal >> error: >> = >> libxlu_cfg_y.y:22:26: fatal error: libxlu_cfg_l.h: No such file or >> directory compilation terminated. >> = >> = >> So the original libxlu_cfg_l.h is deleted when making, and should be >> regenerated but it is not. > = > Actually it should never have been deleted in the first place, unless > you have been modifying the flex source. > = > Please can you enumerate the exact steps you took, starting from the > initial clone of the repo, which caused the file to be deleted? > = >> I find the path of flex and bison is not set. When I add the correct >> path of flex and bison in tools.mk manually, This error is fixed. = > = > Those tools should be optional since the generated files are checked in. > However perhaps configure should detect and provide the paths but behave > in a non-fatal manner if they aren't available? Roger, what do you > think? We stopped checking for bison and flex, but we left the variables, so if th= e user sets BISON and FLEX in their environment everything should be ok. Si= nce this seems to be a common problem one possible solution is to check for= BISON and FLEX on the libxl Makefile when needed (and in configure in a no= n fatal manner), and if not found, print an error message telling the user = to rerun configure, instead of just failing ungracefully. I've just send a = patch that I think fixes this issue. > = > Ian. > = > = > = > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel