delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/31/08:46:40

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <COL101-W35C5A439251E42E9AA1D05E67C0@phx.gbl>
From: Jay <jayk123 AT hotmail DOT com>
To: <cygwin AT sourceware DOT org>
Subject: RE: flex: exec failed?
Date: Thu, 31 Jul 2008 12:45:45 +0000
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m6VCkdZB030968

 Ok, it works the same on Cygwin and Linux/x86, but Python/NTAMD64 works. 
 Somehow Python/Posix related, portably.

 For anyone interested: 
 
  $ echo %%> conftest.l    
  $ echo %%>> conftest.l    
  $ rm lex.yy.c   
  $ export M4=foo    
  $ flex conftest.l   
  flex: fatal internal error, exec failed  
  lex.yy.c exists  

  $ rm lex.yy.c 
  $ python -c "import os; os.system(\"flex conftest.l\")"  
   flex: fatal internal error, exec failed    
   flex: 2 error writing output file lex.yy.c  (I added the "2" to disambiguate 4 identical error messages)  
  lex.yy.c does not exists -- make configure-gmp fails   

  relevant code in flex:  

  filter_tee_header:  
  	if ((to_cfd = dup (1)) == -1) 
  		flexfatal (_("dup(1) failed"));  
  	to_c = fdopen (to_cfd, "w");  
...
	fflush (to_c);  
	if (ferror (to_c))  
		lerrsf (_("2 error writing output file %s"),  
			outfilename ? outfilename : "");  

	else if (fclose (to_c))  
		lerrsf (_("error closing output file %s"),  
			outfilename ? outfilename : "");  

	while (wait (0)> 0) ;  


  again, I added the "2".  

  Digging deeper...

 - Jay


 [snip snip snip] 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019